Merge pull request #6240 from dhalbert/7.2.x-rp2040-clear-uart-rtic-interrupt

handle clearing both RXIC and RTIC interrupts
This commit is contained in:
Jeff Epler 2022-04-05 08:43:22 -05:00 committed by GitHub
commit 8cd09b1f0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,7 @@ static void shared_callback(busio_uart_obj_t *self) {
_copy_into_ringbuf(&self->ringbuf, self->uart); _copy_into_ringbuf(&self->ringbuf, self->uart);
// We always clear the interrupt so it doesn't continue to fire because we // We always clear the interrupt so it doesn't continue to fire because we
// may not have read everything available. // may not have read everything available.
uart_get_hw(self->uart)->icr = UART_UARTICR_RXIC_BITS; uart_get_hw(self->uart)->icr = UART_UARTICR_RXIC_BITS | UART_UARTICR_RTIC_BITS;
} }
static void uart0_callback(void) { static void uart0_callback(void) {