diff --git a/drivers/timer/Kconfig.nrf_grtc b/drivers/timer/Kconfig.nrf_grtc index 082c15333dcb..a09243d7a78f 100644 --- a/drivers/timer/Kconfig.nrf_grtc +++ b/drivers/timer/Kconfig.nrf_grtc @@ -20,6 +20,11 @@ config NRF_GRTC_ALWAYS_ON help Always keep the SYSCOUNTER active even if the CPU is in sleep mode. +config NRF_GRTC_CLEAR_AT_INIT + bool "Clear the GRTC on driver init." + help + Clear the GRTC counter on initialization. + config NRF_GRTC_TIMER_APP_DEFINED_INIT bool "Application defines GRTC initialization" help diff --git a/modules/hal_nordic/nrfx/nrfx_kconfig.h b/modules/hal_nordic/nrfx/nrfx_kconfig.h index ef870a568b2b..3967864c88f1 100644 --- a/modules/hal_nordic/nrfx/nrfx_kconfig.h +++ b/modules/hal_nordic/nrfx/nrfx_kconfig.h @@ -182,6 +182,9 @@ #ifdef CONFIG_NRF_GRTC_START_SYSCOUNTER #define NRFX_GRTC_CONFIG_AUTOSTART 1 #endif +#ifdef CONFIG_NRF_GRTC_CLEAR_AT_INIT +#define NRFX_GRTC_CONFIG_CLEAR_AT_INIT 1 +#endif #ifdef CONFIG_NRFX_GPIOTE #define NRFX_GPIOTE_ENABLED 1