Home
last modified time | relevance | path

Searched refs:rtc_counter (Results 1 – 2 of 2) sorted by relevance

/Zephyr-Core-3.5.0/drivers/timer/
Dsam0_rtc_timer.c79 static volatile uint32_t rtc_counter; variable
173 if (++rtc_counter == rtc_timeout) { in rtc_isr()
174 sys_clock_announce(rtc_counter - rtc_last); in rtc_isr()
175 rtc_last = rtc_counter; in rtc_isr()
214 rtc_timeout = rtc_counter; in sys_clock_set_timeout()
227 rtc_timeout = rtc_counter + ticks; in sys_clock_set_timeout()
238 return rtc_counter - rtc_last; in sys_clock_elapsed()
310 rtc_counter = 0U; in sys_clock_driver_init()
/Zephyr-Core-3.5.0/soc/arm/nordic_nrf/nrf53/
Dsoc.c243 uint32_t rtc_counter = 0U; in z_arm_on_enter_cpu_idle_prepare() local
248 rtc_counter_synchronized_get(NRF_RTC1, NRF_RTC0, &rtc_counter, &rtc0_counter); in z_arm_on_enter_cpu_idle_prepare()
251 rtc_counter, &rtc_ticks_to_next_event); in z_arm_on_enter_cpu_idle_prepare()
271 uint32_t rtc_pretick_cc_val = (rtc_counter + rtc_ticks_to_next_event - 1U) in z_arm_on_enter_cpu_idle_prepare()
287 rtc_counter = nrf_rtc_counter_get(NRF_RTC1); in z_arm_on_enter_cpu_idle_prepare()
289 rtc_counter_sub(rtc_pretick_cc_val, rtc_counter); in z_arm_on_enter_cpu_idle_prepare()