-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drivers: uart: atmel_sam: Added reset after error check #59818
drivers: uart: atmel_sam: Added reset after error check #59818
Conversation
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 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on SAM4S custom board, @nandojve any objections?
I need check all SoC before accept. If there is no regression it is fine for me. |
@nandojve I've checked datasheets for Also the zephyr/drivers/serial/uart_sam.c Lines 179 to 181 in 5876cc5
|
It is missing sam4l on your list. |
It does not have a |
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.