nrfx: drivers: nrfx_uarte: Add event clearing after RX disable

Clear RX events after blocking wait for RX disable.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruściński 2024-04-09 08:28:07 +02:00 committed by Nikodem Kastelik
parent 729169433a
commit f8e4d73a78
1 changed files with 4 additions and 0 deletions

View File

@ -1508,6 +1508,10 @@ static void wait_for_rx_completion(NRF_UARTE_Type * p_uarte,
while(nrfy_uarte_event_check(p_uarte, NRF_UARTE_EVENT_RXTO) == false)
{}
nrfy_uarte_event_clear(p_uarte, NRF_UARTE_EVENT_RXSTARTED);
nrfy_uarte_event_clear(p_uarte, NRF_UARTE_EVENT_ENDRX);
nrfy_uarte_event_clear(p_uarte, NRF_UARTE_EVENT_RXTO);
rx_flush(p_uarte, p_cb);
disable_hw_from_rx(p_uarte);