mirror of
https://github.com/espressif/openthread.git
synced 2026-08-06 10:47:46 +00:00
[nrf528xx] handle overrun error on high baudrates correctly (#4350)
This commit is contained in:
committed by
Jonathan Hui
parent
14e4538e5b
commit
f756953819
@@ -137,7 +137,7 @@
|
||||
*
|
||||
*/
|
||||
#ifndef UART_RX_BUFFER_SIZE
|
||||
#define UART_RX_BUFFER_SIZE 256
|
||||
#define UART_RX_BUFFER_SIZE 512
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
||||
@@ -137,7 +137,7 @@
|
||||
*
|
||||
*/
|
||||
#ifndef UART_RX_BUFFER_SIZE
|
||||
#define UART_RX_BUFFER_SIZE 256
|
||||
#define UART_RX_BUFFER_SIZE 512
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
||||
@@ -284,9 +284,7 @@ void UARTE0_UART0_IRQHandler(void)
|
||||
// Check if any error has been detected.
|
||||
if (nrf_uart_event_check(UART_INSTANCE, NRF_UART_EVENT_ERROR))
|
||||
{
|
||||
// Clear error event and ignore erronous byte in RXD register.
|
||||
nrf_uart_event_clear(UART_INSTANCE, NRF_UART_EVENT_ERROR);
|
||||
nrf_uart_event_clear(UART_INSTANCE, NRF_UART_EVENT_RXDRDY);
|
||||
}
|
||||
else if (nrf_uart_event_check(UART_INSTANCE, NRF_UART_EVENT_RXDRDY))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user