handle clearing both RXIC and RTIC interrupts

This commit is contained in:
Dan Halbert 2022-04-04 23:39:00 -04:00
parent faca1ec3bf
commit 4cccc1a036
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ static void shared_callback(busio_uart_obj_t *self) {
_copy_into_ringbuf(&self->ringbuf, self->uart);
// We always clear the interrupt so it doesn't continue to fire because we
// 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) {