Migrate TIM[2-5] to macro tables.

This commit is contained in:
Bob McWhirter
2021-06-03 13:23:21 -04:00
parent c00a85f9a9
commit 75dc0fd542
2 changed files with 14 additions and 6 deletions

View File

@ -136,9 +136,9 @@ with open(output_file, 'w') as f:
if (func := funcs.get(f'{name}_D7')) != None:
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_name == 'TimGp16':
# if re.match('TIM[2345]$', name):
# f.write(f'impl_timer!({name});')
if block_mod == 'exti':
for irq in chip['interrupts']: