diff options
Diffstat (limited to 'display/SConscript')
-rw-r--r-- | display/SConscript | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/display/SConscript b/display/SConscript new file mode 100644 index 0000000..6d60228 --- /dev/null +++ b/display/SConscript @@ -0,0 +1,19 @@ +Import('env') + +headers = [] +instances = [] + +periph = env['PLATFORM_SPEC'].get('periph', {}) + +if 'stm32_ltdc' in periph: + headers.append('stm32_ltdc.h') + for name, data in periph['stm32_ltdc'].items(): + instances.append({ + 'type': 'STM32_LTDC_t', + 'name': name, + 'args': [data['offset']], + }) + +env.Jinja2('display.h', '../templates/periph_instances.h.j2', headers = headers, instances = instances) + +Return() |