summaryrefslogtreecommitdiff
path: root/templates/periph_instances.h.j2
blob: 0761f5d504d2a32a90634e9707d85faced47577e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 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 %}

{% for alias, ref in (type_aliases.items() if type_aliases else {}) %}
using {{ alias }} = {{ ref }};
{% endfor %}