sipeed / bl602-pac

Embedded Rust's Peripheral Access Crate for BL602 microcontrollers
MIT License
19 stars 10 forks source link

Create cluster for DMA channels #21

Closed jspngh closed 1 year ago

jspngh commented 1 year ago

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)