From d5fbedc24fdd41e7c30b2f9239f666f33893e065 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Thu, 16 Sep 2021 23:50:26 +0200 Subject: gpio: Generate instances from platform spec. --- templates/periph_instances.h.j2 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'templates') 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 %} -- cgit v1.2.3