support for UART rx interrupt
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.
rp2/machine_uart.c: Handle UART RX timeout IRQ.
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.