From 1ddf184af5a633903e81ec07093968d8dec086c8 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Thu, 6 Jan 2022 22:19:16 +0000 Subject: stm32wb: pwr: initial registers No helpers, just the register map. Signed-off-by: Karl Palsson --- pwr/SConscript | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 pwr/SConscript (limited to 'pwr/SConscript') diff --git a/pwr/SConscript b/pwr/SConscript new file mode 100644 index 0000000..d728602 --- /dev/null +++ b/pwr/SConscript @@ -0,0 +1,22 @@ +Import('env') + +headers = [] +instances = [] +sources = [] +aliases = {} + +periph = env['PLATFORM_SPEC'].get('periph', {}) + +if 'stm32_pwr' in periph: + headers.append('stm32_pwr.h') + for name, data in periph['stm32_pwr'].items(): + instances.append({ + 'type': 'STM32_PWR_t' % data['type'], + 'name': name, + 'args': [data['offset']], + }) + +env.Jinja2('pwr.h', '../templates/periph_instances.h.j2', headers = headers, instances = instances, aliases = aliases) + +Return('sources') + -- cgit v1.2.3