diff options
author | Karl Palsson <karlp@tweak.net.au> | 2022-01-07 00:30:28 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2022-01-26 23:40:29 +0100 |
commit | b34efc66f164816d37d47f52efd591555eefdd5c (patch) | |
tree | 476de5ce96cf5dc6bb50b8cf060fb2bff187d8fa /wpan/SConscript | |
parent | 1ddf184af5a633903e81ec07093968d8dec086c8 (diff) |
stm32wb: wpan/ipcc/hsem: initial registers
Not sure if "wpan" is the right directory for them, but they didn't feel
like they warranted their own directory each.
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
Diffstat (limited to 'wpan/SConscript')
-rw-r--r-- | wpan/SConscript | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/wpan/SConscript b/wpan/SConscript new file mode 100644 index 0000000..d9e854a --- /dev/null +++ b/wpan/SConscript @@ -0,0 +1,29 @@ +Import('env') + +periph = env['PLATFORM_SPEC'].get('periph', {}) + +headers, instances, sources, aliases = [], [], [], {} +if 'stm32_hsem' in periph: + headers.append('stm32_hsem.h') + for name, data in periph['stm32_hsem'].items(): + real_type = data.get('type', 'v1') # Default + instances.append({ + 'type': 'STM32_HSEM_t<STM32_HSEM_reg_%s_t>' % real_type, + 'name': name, + 'args': [data['offset']], + }) +env.Jinja2('hsem.h', '../templates/periph_instances.h.j2', headers = headers, instances = instances, aliases = aliases) + +headers, instances, sources, aliases = [], [], [], {} +if 'stm32_ipcc' in periph: + headers.append('stm32_ipcc.h') + for name, data in periph['stm32_ipcc'].items(): + real_type = data.get('type', 'v1') # Default + instances.append({ + 'type': 'STM32_IPCC_t<STM32_IPCC_reg_%s_t>' % real_type, + 'name': name, + 'args': [data['offset']], + }) +env.Jinja2('ipcc.h', '../templates/periph_instances.h.j2', headers = headers, instances = instances, aliases = aliases) + +Return('sources')
\ No newline at end of file |