X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Farm%2Fdrv%2Fser_at91.c;h=19f36df859cc2e6f7e38070f2af318888004a713;hb=f8d7da88791854c7ec53a42543f55678c3a57db6;hp=f42af89de65cc185e05ce26321402607a5a27cf1;hpb=431fce597e801ef85c582084f13236806c5ef55e;p=bertos.git diff --git a/bertos/cpu/arm/drv/ser_at91.c b/bertos/cpu/arm/drv/ser_at91.c index f42af89d..19f36df8 100644 --- a/bertos/cpu/arm/drv/ser_at91.c +++ b/bertos/cpu/arm/drv/ser_at91.c @@ -792,6 +792,7 @@ static void uart0_irq_rx(void) /* Should be read before US_CRS */ ser_uart0->status |= US0_CSR & (SERRF_RXSROVERRUN | SERRF_FRAMEERROR); + US0_CR = BV(US_RSTSTA); char c = US0_RHR; struct FIFOBuffer * const rxfifo = &ser_uart0->rxfifo; @@ -856,6 +857,7 @@ static void uart1_irq_rx(void) /* Should be read before US_CRS */ ser_uart1->status |= US1_CSR & (SERRF_RXSROVERRUN | SERRF_FRAMEERROR); + US1_CR = BV(US_RSTSTA); char c = US1_RHR; struct FIFOBuffer * const rxfifo = &ser_uart1->rxfifo;