rp-rs / rp2040-pac

A Rust PAC for the RP2040 Microcontroller
145 stars 28 forks source link

DMA fixes: Write access, CTRL register alias fields #41

Closed mgottschlag closed 3 years ago

mgottschlag commented 3 years ago

The DMA register aliases in both documentation and SVD are marked as read-only. In practice, they are writeable though, as is required to trigger DMA transfers when specific registers are modified. The official pico SDK writes these registers. The upstream bug report is raspberrypi/pico-feedback#190.

Also, the CTRL register aliases do not have any fields defined, even though code frequently needs to modify them to prevent triggering a DMA operation.

This PR fixes both. It is, however, only mergeable once stm32-rs/svdtools#83 has been fixed and a new version has been released.