drivers: uart: nrf_uart: Generate RX_RDY after rx_disable
So far, when rx_disable was called then received data was discarded. This is currently not according to the API but it is needed if rx_disabled is called due to out of band information about end of packet. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
62087be265
commit
6cb9199dfc
1 changed files with 5 additions and 0 deletions
|
@ -693,6 +693,11 @@ static void rxto_isr(void)
|
|||
{
|
||||
nrf_uart_event_clear(uart0_addr, NRF_UART_EVENT_RXTO);
|
||||
|
||||
/* Send rxrdy if there is any data pending. */
|
||||
if (uart0_cb.rx_counter - uart0_cb.rx_offset) {
|
||||
rx_rdy_evt();
|
||||
}
|
||||
|
||||
buf_released_evt();
|
||||
if (uart0_cb.rx_secondary_buffer_length) {
|
||||
uart0_cb.rx_buffer = uart0_cb.rx_secondary_buffer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue