summaryrefslogtreecommitdiff
path: root/interrupt/interrupt_enums.h.j2
blob: cfca5c75770d284a3b9de8597b194b251288f480 (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

namespace interrupt {
    {% for type, entries in interrupts.items() %}
        enum class {{ type }} {
            {% for num, name in entries.items() %}
                {{ name }} = {{ num }},
            {% endfor %}
        };

        template<{{ type }}>
        void handler();

    {% endfor %}

	typedef void (*vector_t)();
};