JeremyGrosser / rp2040_hal

Ada drivers for the Raspberry Pi RP2040 SoC
https://pico-doc.synack.me/
BSD 3-Clause "New" or "Revised" License
38 stars 11 forks source link

RP.PWM: add function to get compare register address #35

Closed Fabien-Chouteau closed 2 years ago

Fabien-Chouteau commented 2 years ago

This is useful for DMA transfers.

Fabien-Chouteau commented 2 years ago

Hi @JeremyGrosser ,

I changed this to return the base address of the 32bit CC register. It's now up to the user to: