Skip to content

Commit af63f91

Browse files
[nrf noup] drivers: timer: nrf_grtc: Add GRTC fix for app and rad
Currently function `z_nrf_grtc_wakeup_prepare()` should be available only for the entity which is starting the peripheral. Signed-off-by: Adam Kondraciuk <[email protected]>
1 parent fc514cd commit af63f91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/timer/nrf_grtc_timer.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ int z_nrf_grtc_timer_capture_read(int32_t chan, uint64_t *captured_time)
352352
return 0;
353353
}
354354

355-
#if defined(CONFIG_NRF_GRTC_SLEEP_ALLOWED)
355+
#if defined(CONFIG_NRF_GRTC_SLEEP_ALLOWED) && defined(CONFIG_NRF_GRTC_START_SYSCOUNTER)
356356
int z_nrf_grtc_wakeup_prepare(uint64_t wake_time_us)
357357
{
358358
nrfx_err_t err_code;

0 commit comments

Comments
 (0)