Skip to content

Commit 54bde38

Browse files
nika-nordiccarlescufi
authored andcommitted
nrfx: drivers: nrfx_uarte: skip flush workaround for BSIM target
Workaround is not needed on this target. Signed-off-by: Nikodem Kastelik <[email protected]> Signed-off-by: Carles Cufi <[email protected]>
1 parent 2591a2b commit 54bde38

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nrfx/drivers/src/nrfx_uarte.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@
6666
#define MIN_RX_CACHE_SIZE 8
6767
// There is a HW bug which results in RX amount value not being updated when FIFO was empty.
6868
// It is then hard to determine if FIFO contained anything or not.
69+
#if defined(CONFIG_SOC_SERIES_BSIM_NRFXX)
70+
#define USE_WORKAROUND_FOR_FLUSHRX_ANOMALY 0
71+
#else
6972
#define USE_WORKAROUND_FOR_FLUSHRX_ANOMALY 1
73+
#endif
7074

7175
// Size of the RX HW FIFO
7276
#define UARTE_HW_RX_FIFO_SIZE 5

0 commit comments

Comments
 (0)