summaryrefslogtreecommitdiff
path: root/interrupt/interrupt_enums.h.j2
diff options
context:
space:
mode:
Diffstat (limited to 'interrupt/interrupt_enums.h.j2')
-rw-r--r--interrupt/interrupt_enums.h.j213
1 files changed, 13 insertions, 0 deletions
diff --git a/interrupt/interrupt_enums.h.j2 b/interrupt/interrupt_enums.h.j2
new file mode 100644
index 0000000..cc05100
--- /dev/null
+++ b/interrupt/interrupt_enums.h.j2
@@ -0,0 +1,13 @@
+#pragma once
+
+enum class Exception {
+ {% for num, name in exceptions.items() %}
+ {{ name }} = {{ num }},
+ {% endfor %}
+};
+
+enum class IRQ {
+ {% for num, name in irqs.items() %}
+ {{ name }} = {{ num }},
+ {% endfor %}
+};