Add timer/rtc impl macro

This commit is contained in:
Thales Fragoso
2021-05-23 15:49:58 -03:00
parent e49e3723a8
commit 13698d58e4
2 changed files with 13 additions and 233 deletions

View File

@ -186,6 +186,10 @@ for chip in chips.values():
if func := funcs.get(f'{name}_D7'):
f.write(f'impl_sdmmc_pin!({name}, D7Pin, {pin}, {func});')
if block_name == 'TimGp16':
if re.match('TIM[2345]$', name):
f.write(f'impl_timer!({name});')
if block_mod == 'exti':
for irq in chip['interrupts']:
if re.match('EXTI', irq):