Since the 4 DMA channels are identical, it is much more ergonomic if they can have the same type.
I've taken inspiration from the rp2040 SVD file and how the DMA channels are organized there.
Feel free to suggest improvements, like better names for the registers (currently CH_SRC_ADDR, CH_DST_ADDR, CH_LLI, CH_CONTROL and CH_CONFIG)
Since the 4 DMA channels are identical, it is much more ergonomic if they can have the same type. I've taken inspiration from the rp2040 SVD file and how the DMA channels are organized there.
Feel free to suggest improvements, like better names for the registers (currently
CH_SRC_ADDR
,CH_DST_ADDR
,CH_LLI
,CH_CONTROL
andCH_CONFIG
)