summaryrefslogtreecommitdiff
path: root/interrupt/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'interrupt/SConscript')
-rw-r--r--interrupt/SConscript16
1 files changed, 16 insertions, 0 deletions
diff --git a/interrupt/SConscript b/interrupt/SConscript
index 2380815..4544785 100644
--- a/interrupt/SConscript
+++ b/interrupt/SConscript
@@ -30,6 +30,22 @@ if 'nvic' in periph:
env.Jinja2('vectors_nvic.cpp', 'vectors_nvic.cpp.j2', interrupts = interrupts),
])
+if 'clic' in periph:
+ headers.append('clic.h')
+ for name, data in periph['clic'].items():
+ instances.append({
+ 'type': 'CLIC_t',
+ 'name': name,
+ 'args': [data['offset']],
+ })
+
+ aliases['interrupt_ctl'] = 'CLIC'
+
+ sources.extend([
+ File('dispatch_clic.cpp'),
+ env.Jinja2('vectors_clic.cpp', 'vectors_clic.cpp.j2', interrupts = interrupts),
+ ])
+
env.Jinja2('interrupt.h', '../templates/periph_instances.h.j2', headers = headers, instances = instances, aliases = aliases)
Return('sources')