From 446eb86b3c51095a9e13f0d7a633bcc819b156cc Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Thu, 6 Jan 2022 23:33:46 +0000 Subject: stm32wb: exti: initial registers Basic registers to start with, a lot of commonality, but extra registers on the WB. Signed-off-by --- exti/SConscript | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 exti/SConscript (limited to 'exti/SConscript') diff --git a/exti/SConscript b/exti/SConscript new file mode 100644 index 0000000..b620818 --- /dev/null +++ b/exti/SConscript @@ -0,0 +1,21 @@ +Import('env') + +headers = [] +instances = [] +sources = [] +aliases = {} + +periph = env['PLATFORM_SPEC'].get('periph', {}) + +if 'stm32_exti' in periph: + headers.append('stm32_exti.h') + for name, data in periph['stm32_exti'].items(): + instances.append({ + 'type': 'STM32_EXTI_t' % data['type'], + 'name': name, + 'args': [data['offset']], + }) + +env.Jinja2('exti.h', '../templates/periph_instances.h.j2', headers = headers, instances = instances, aliases = aliases) + +Return('sources') -- cgit v1.2.3