From 38575f89eac61d8c5aecc193f24f10ebec4b1bbd Mon Sep 17 00:00:00 2001 From: Adam Kondraciuk Date: Wed, 24 Apr 2024 18:47:48 +0200 Subject: [PATCH] drivers: timer: nrf_grtc: Add GRTC fix for app and rad cores Currently function `z_nrf_grtc_wakeup_prepare()` should be available only for the GRTC manager (`CONFIG_NRF_GRTC_START_SYSCOUNTER` is active). Signed-off-by: Adam Kondraciuk --- drivers/timer/nrf_grtc_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/timer/nrf_grtc_timer.c b/drivers/timer/nrf_grtc_timer.c index 8c1c927b142..a03c25ec663 100644 --- a/drivers/timer/nrf_grtc_timer.c +++ b/drivers/timer/nrf_grtc_timer.c @@ -367,7 +367,7 @@ int z_nrf_grtc_timer_capture_read(int32_t chan, uint64_t *captured_time) return 0; } -#if defined(CONFIG_NRF_GRTC_SLEEP_ALLOWED) +#if defined(CONFIG_NRF_GRTC_SLEEP_ALLOWED) && defined(CONFIG_NRF_GRTC_START_SYSCOUNTER) int z_nrf_grtc_wakeup_prepare(uint64_t wake_time_us) { nrfx_err_t err_code;