summaryrefslogtreecommitdiff
path: root/templates/periph_instances.h.j2
blob: 3d236b7c60e2a7edc95accce812e8ee8323d6432 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

{% for header in (headers if headers else []) %}
#include "{{ header }}"
{% endfor %}

{% for instance in (instances if instances else []) %}
constexpr {{ instance.type }} {{ instance.name }}{
    {% for arg in instance.args %}
        {{ arg | hex }},
    {% endfor %}
};
{% endfor %}

{% for alias, ref in (aliases.items() if aliases else {}) %}
constexpr auto {{ alias }} = {{ ref }};
{% endfor %}