Skip to content

Commit fd0f27a

Browse files
nordic-krchrlubos
authored andcommitted
[nrf fromtree] modules: hal_nordic: nrfx_config: Customize NRFX_SPIM_EXTENDED_ENABLED
nrfx_config is setting NRFX_SPIM_EXTENDED_ENABLED based on presence of a DT property. However, there are test cases when it is expected that extended SPIM features will be disabled on a target that supports extended features. Allow that by not setting the value if it is already defined. Signed-off-by: Krzysztof Chruściński <[email protected]> (cherry picked from commit eebaf81)
1 parent 0d6e8cf commit fd0f27a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/hal_nordic/nrfx/nrfx_config.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,9 +492,12 @@
492492

493493
#define NRFX_SPIM_DT_HAS_RX_DELAY(node) DT_PROP(node, rx_delay_supported) +
494494

495+
#ifndef NRFX_SPIM_EXTENDED_ENABLED
495496
#if DT_FOREACH_STATUS_OKAY(nordic_nrf_spim, NRFX_SPIM_DT_HAS_RX_DELAY) 0
496497
#define NRFX_SPIM_EXTENDED_ENABLED 1
497498
#endif
499+
#endif
500+
498501
#ifdef CONFIG_NRFX_SPIM00
499502
#define NRFX_SPIM00_ENABLED 1
500503
#endif

0 commit comments

Comments
 (0)