approved-by: Daniele Basile <asterix@develer.com>
Reset error flag in serial status register every time we read it.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1250
38d2e660-2303-0410-9eaa-
f027e97ec537
/* 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;
/* 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;