Move regs trait implementation into generated pac
This allows handling devices that don't have DMA2
This commit is contained in:
committed by
Dario Nieuwenhuis
parent
0cd3236fa3
commit
9fa5a2920f
@ -151,7 +151,7 @@ for chip in chips.values():
|
||||
for ch_num in range(8):
|
||||
channel = f'{name}_CH{ch_num}'
|
||||
peripheral_names.append(channel)
|
||||
f.write(f'impl_dma_channel!({channel}, {dma_num}, {ch_num});')
|
||||
f.write(f'impl_dma_channel!({name}, {channel}, {dma_num}, {ch_num});')
|
||||
|
||||
if peri['block'] == 'sdmmc_v2/SDMMC':
|
||||
f.write(f'impl_sdmmc!({name});')
|
||||
|
Reference in New Issue
Block a user