summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2021-01-16 01:20:58 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2021-01-16 01:20:58 +0100
commit9921c9db409ad5b00fe4a43a2459e2fd2de6b0cf (patch)
treeb0f3bc73144d87112f746d04b3bc7a69cc3e0953 /templates
parentd834303f5e642266874b1c99be04dcb9149fefb1 (diff)
usb: Generate instances from platform spec.
Diffstat (limited to 'templates')
-rw-r--r--templates/periph_instances.h.j211
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/periph_instances.h.j2 b/templates/periph_instances.h.j2
new file mode 100644
index 0000000..d4b682f
--- /dev/null
+++ b/templates/periph_instances.h.j2
@@ -0,0 +1,11 @@
+#pragma once
+
+{% for header in headers %}#include "{{ header }}"{% endfor %}
+
+{% for instance in instances %}
+static {{ instance.type }} {{ instance.name }}{
+ {% for arg in instance.args %}
+ {{ arg | hex }},
+ {% endfor %}
+};
+{% endfor %}