8000 Merge pull request #6240 from dhalbert/7.2.x-rp2040-clear-uart-rtic-i… · adafruit/circuitpython@8cd09b1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8cd09b1

Browse files
authored
Merge pull request #6240 from dhalbert/7.2.x-rp2040-clear-uart-rtic-interrupt
handle clearing both RXIC and RTIC interrupts
2 parents 204a1d3 + 4cccc1a commit 8cd09b1

File tree

1 file changed

+1
-1
lines changed
  • ports/raspberrypi/common-hal/busio

1 file changed

+1
-1
lines changed

ports/raspberrypi/common-hal/busio/UART.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ static void shared_callback(busio_uart_obj_t *self) {
8585
_copy_into_ringbuf(&self->ringbuf, self->uart);
8686
// We always clear the interrupt so it doesn't continue to fire because we
8787
// may not have read everything available.
88-
uart_get_hw(self->uart)->icr = UART_UARTICR_RXIC_BITS;
88+
uart_get_hw(self->uart)->icr = UART_UARTICR_RXIC_BITS | UART_UARTICR_RTIC_BITS;
8989
}
9090

9191
static void uart0_callback(void) {

0 commit comments

Comments
 (0)
0