From 9921c9db409ad5b00fe4a43a2459e2fd2de6b0cf Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sat, 16 Jan 2021 01:20:58 +0100 Subject: usb: Generate instances from platform spec. --- templates/periph_instances.h.j2 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 templates/periph_instances.h.j2 (limited to 'templates') 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 %} -- cgit v1.2.3