tinygo-org / pio

Programmable I/O API for RP2040.
BSD 3-Clause "New" or "Revised" License
19 stars 0 forks source link

Using DMA channels outside of piolib #9

Open willgorman opened 4 months ago

willgorman commented 4 months ago

I'm trying to port the pico unicorn library to tinygo now that pio is supported but it uses DMA channels in a way that I'm not sure is currently allowed by the piolib package. I don't see anything exported from piolib that allows channels to be claimed and configured. Is DMA only intended to be used internally in piolib or would it be ok to submit a PR to export it?

soypat commented 2 weeks ago

Yes, for now it is only internal use. Ideally DMA should be in tinygo machine package. Need to consolidate this in future. Tagging @aykevl