drivers: uart: atmel_sam: Added reset after error check
Following the sam4s datasheet, the OVRE, PARE and FRAME flags should be cleared after a uart error occured. This is done writing a 1 to the RSTSTA bit in the UART_CR. Signed-off-by: Ibe Van de Veire <ibe.vandeveire@basalte.be>
This commit is contained in:
parent
737afd31fe
commit
007dc6d98f
1 changed files with 2 additions and 0 deletions
|
@ -91,6 +91,8 @@ static int uart_sam_err_check(const struct device *dev)
|
|||
errors |= UART_ERROR_FRAMING;
|
||||
}
|
||||
|
||||
uart->UART_CR = UART_CR_RSTSTA;
|
||||
|
||||
return errors;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue