Skip to content
Commit 8896da1d authored by Jordan Yates's avatar Jordan Yates Committed by Carles Cufí
Browse files

drivers: serial: uart_nrfx_uarte: init cleanup rx



When `CONFIG_UART_ASYNC_API` is enabled, cleanup any pending synchronous
receptions at initialization time. Pending receptions are present when
this driver is used with the default mcuboot application.

When `CONFIG_UART_ASYNC_API` is not enabled, RX is always enabled by
this driver. As mcuboot does not use the async API, and does not cleanup
the UART driver before jumping to the next application, that application
boots with RX still enabled. This results in a 500uA increase in current
consumption.

Fixes #26555

Signed-off-by: default avatarJordan Yates <jordan.yates@data61.csiro.au>
parent 6b9ea24b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment