This commit is contained in:
Dario Nieuwenhuis
2021-05-16 02:57:46 +02:00
parent befc052cba
commit bdc3ada4b2
419 changed files with 13187 additions and 13308 deletions

View File

@ -145,10 +145,11 @@ for chip in chips.values():
if block_mod == 'dma':
custom_singletons = True
dma_num = int(name[3:])-1 # substract 1 because we want DMA1=0, DMA2=1
for ch_num in range(8):
channel = f'{name}_CH{ch_num}'
peripheral_names.append(channel)
f.write(f'impl_dma_channel!({channel}, {name}, {ch_num});')
f.write(f'impl_dma_channel!({channel}, {dma_num}, {ch_num});')
if peri['block'] == 'sdmmc_v2/SDMMC':
f.write(f'impl_sdmmc!({name});')