summaryrefslogtreecommitdiff
path: root/templates/periph_instances.h.j2
blob: ddbff3453eb1c7b7a0d8eaa4b4658ad8609285dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// This file is auto-generated from a template!
// You should reconsider editing!
#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 %}