summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2021-09-16 23:50:26 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2021-09-16 23:50:26 +0200
commitd5fbedc24fdd41e7c30b2f9239f666f33893e065 (patch)
treed41c8b118a2c2e5822ee47e130550134458dc02e /templates
parentc7666a7cd83d590a067d8cbbe4a7e4eb93d155d6 (diff)
gpio: Generate instances from platform spec.
Diffstat (limited to 'templates')
-rw-r--r--templates/periph_instances.h.j24
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/periph_instances.h.j2 b/templates/periph_instances.h.j2
index ddbff34..0761f5d 100644
--- a/templates/periph_instances.h.j2
+++ b/templates/periph_instances.h.j2
@@ -17,3 +17,7 @@ constexpr {{ instance.type }} {{ instance.name }}{
{% for alias, ref in (aliases.items() if aliases else {}) %}
constexpr auto {{ alias }} = {{ ref }};
{% endfor %}
+
+{% for alias, ref in (type_aliases.items() if type_aliases else {}) %}
+using {{ alias }} = {{ ref }};
+{% endfor %}