summaryrefslogtreecommitdiff
path: root/templates/periph_instances.h.j2
diff options
context:
space:
mode:
Diffstat (limited to 'templates/periph_instances.h.j2')
-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 %}