← index #8790Issue #6855
Related · high · value 3.297
QUERY · ISSUE

RP2: PIO interrupt API for Raspberry Pi Pico

openby cody82opened 2022-06-20updated 2025-10-03
enhancementport-rp2

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.

CANDIDATE · ISSUE

rp2 API documentation

closedby tjvropened 2021-02-06updated 2022-03-07
docsport-rp2

👋 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!

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied