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 <grzegorz.swiderski@nordicsemi.no>
This commit is contained in:
Grzegorz Swiderski 2024-04-16 10:49:38 +02:00 committed by Alberto Escolar
parent b94799e051
commit 35e418f469
1 changed files with 1 additions and 1 deletions

View File

@ -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