From 35e418f4690643ed6dddbfe189d36a52dcc04d76 Mon Sep 17 00:00:00 2001 From: Grzegorz Swiderski Date: Tue, 16 Apr 2024 10:49:38 +0200 Subject: [PATCH] modules: hal_nordic: Fix NRF_GRTC_HAS_EXTENDED This definition is used in nrfx header files, so it shouldn't be added using `zephyr_library_compile_definitions()`. This would cause the GRTC driver to fail the build when CONFIG_NRF_GRTC_START_SYSCOUNTER=y. Signed-off-by: Grzegorz Swiderski --- modules/hal_nordic/nrfx/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/hal_nordic/nrfx/CMakeLists.txt b/modules/hal_nordic/nrfx/CMakeLists.txt index 56ba8f95e34..55911170d96 100644 --- a/modules/hal_nordic/nrfx/CMakeLists.txt +++ b/modules/hal_nordic/nrfx/CMakeLists.txt @@ -129,7 +129,7 @@ if(CONFIG_NRFX_TWI OR CONFIG_NRFX_TWIM) endif() if (CONFIG_NRF_GRTC_TIMER AND CONFIG_NRF_GRTC_TIMER_CLOCK_MANAGEMENT) - zephyr_library_compile_definitions(NRF_GRTC_HAS_EXTENDED=1) + zephyr_compile_definitions(NRF_GRTC_HAS_EXTENDED=1) endif() # Inject HAL "CONFIG_NFCT_PINS_AS_GPIOS" definition if user requests to