blob: 6d6022857d4826fa260281c26808f0e5e852aa82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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()
|