RP2: PIO interrupt API for Raspberry Pi Pico
In the Micropython port RP2 for the Raspberry Pi Pico it looks like there are some APIs missing.
Especially it seems it is not possible to enable a PIO FIFO interrupt. (Or I did miss something)
In the Raspberry Pico C API there is the function pio_set_irq0_source_enabled that lets you configure FIFO interrupts:
https://raspberrypi.github.io/pico-sdk-doxygen/group__hardware__pio.html
I would like to see support for that in Micropython. Without that API you have to poll the FIFO which is in my case bad for performance.
rp2 API documentation
👋 Is the rp2 port documented anywhere? In particular, the rp2-specific features like PIO.
I realise there are a bunch of examples provided by the Raspberry Pi people; I'm looking specifically for "API reference"-style documentation, e.g. a list of all possible arguments to StateMachine. The only reference I've managed to find so far is the C source code, which while I'm fine with that it's not the most beginner-friendly :)
At docs.micropython.org I see there is port-specific documentation for some of the chips, but not the RP2040/Pi Pico.
Is this documented somewhere and I missed it? Are there already plans to write documentation like this? Or is this an area where we're seeking contributions?
Cheers!