diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2021-01-16 01:20:58 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2021-01-16 01:20:58 +0100 |
commit | 9921c9db409ad5b00fe4a43a2459e2fd2de6b0cf (patch) | |
tree | b0f3bc73144d87112f746d04b3bc7a69cc3e0953 /templates | |
parent | d834303f5e642266874b1c99be04dcb9149fefb1 (diff) |
usb: Generate instances from platform spec.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/periph_instances.h.j2 | 11 |
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 %} |