[nrf528xx] handle overrun error on high baudrates correctly (#4350)

This commit is contained in:
Łukasz Duda
2019-11-26 02:44:22 +08:00
committed by Jonathan Hui
parent 14e4538e5b
commit f756953819
3 changed files with 2 additions and 4 deletions
@@ -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
/**
-2
View File
@@ -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))
{