← index #7362PR #8074
Related · high · value 1.686
QUERY · ISSUE

support for UART rx interrupt

openby embhobbbopened 2021-06-07updated 2021-06-07

I am using raspberry pi pico for my new project.
I was checking for example for UART receive interrupt. Do we have support for the same?
How can we achieve the UART RX interrupt?
I checked the micropython documentation but I didn't see support for RPi pico.

CANDIDATE · PULL REQUEST

rp2/machine_uart.c: Handle UART RX timeout IRQ.

closedby iabdalkaderopened 2021-12-09updated 2021-12-14
port-rp2

The pico-sdk 1.3.0 update in #8031 introduced a change that broke RP2 Bluetooth UART, and possibly machine_uart.c in general, which stops working right after UART is initialized. This commit https://github.com/raspberrypi/pico-sdk/commit/2622e9bc292a26cb576a80c3c7c30481dda04181 enables the UART receive timeout (RTIM) IRQ, which is asserted when the receive FIFO is not empty, and no more characters are received for a period of time. This PR makes sure the RTIM IRQ is handled and cleared in uart_service_interrupt.

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