From 9b34bfa763952416c63174790a58a0d67800ff23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Chru=C5=9Bci=C5=84ski?= Date: Wed, 4 Dec 2024 15:37:16 +0100 Subject: [PATCH] modules: hal_nordic: nrfx_config: Customize NRFX_SPIM_EXTENDED_ENABLED MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- modules/hal_nordic/nrfx/nrfx_config.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/hal_nordic/nrfx/nrfx_config.h b/modules/hal_nordic/nrfx/nrfx_config.h index 5a6c8bf01c790d..6aba21be0722a7 100644 --- a/modules/hal_nordic/nrfx/nrfx_config.h +++ b/modules/hal_nordic/nrfx/nrfx_config.h @@ -489,9 +489,12 @@ #define NRFX_SPIM_DT_HAS_RX_DELAY(node) DT_PROP(node, rx_delay_supported) + +#ifndef NRFX_SPIM_EXTENDED_ENABLED #if DT_FOREACH_STATUS_OKAY(nordic_nrf_spim, NRFX_SPIM_DT_HAS_RX_DELAY) 0 #define NRFX_SPIM_EXTENDED_ENABLED 1 #endif +#endif + #ifdef CONFIG_NRFX_SPIM00 #define NRFX_SPIM00_ENABLED 1 #endif