Home
last modified time | relevance | path

Searched refs:target_time (Results 1 – 5 of 5) sorted by relevance

/Zephyr-latest/drivers/timer/
Dnrf_rtc_timer.c60 volatile uint64_t target_time; member
340 static int compare_set_nolocks(int32_t chan, uint64_t target_time, in compare_set_nolocks() argument
345 uint32_t cc_value = absolute_time_to_cc(target_time); in compare_set_nolocks()
348 if (curr_time < target_time) { in compare_set_nolocks()
349 if (target_time - curr_time > COUNTER_HALF_SPAN) { in compare_set_nolocks()
354 if (target_time != cc_data[chan].target_time) { in compare_set_nolocks()
368 cc_data[chan].target_time = target_time; in compare_set_nolocks()
376 static int compare_set(int32_t chan, uint64_t target_time, in compare_set() argument
384 int ret = compare_set_nolocks(chan, target_time, handler, user_data, exact); in compare_set()
391 int z_nrf_rtc_timer_set(int32_t chan, uint64_t target_time, in z_nrf_rtc_timer_set() argument
[all …]
Dnrf_grtc_timer.c241 static int compare_set_nolocks(int32_t chan, uint64_t target_time, in compare_set_nolocks() argument
246 __ASSERT_NO_MSG(target_time < COUNTER_SPAN); in compare_set_nolocks()
252 result = nrfx_grtc_syscounter_cc_absolute_set(&user_channel_data, target_time, true); in compare_set_nolocks()
259 static int compare_set(int32_t chan, uint64_t target_time, in compare_set() argument
263 int ret = compare_set_nolocks(chan, target_time, handler, user_data); in compare_set()
270 int z_nrf_grtc_timer_set(int32_t chan, uint64_t target_time, in z_nrf_grtc_timer_set() argument
275 return compare_set(chan, target_time, (nrfx_grtc_cc_handler_t)handler, user_data); in z_nrf_grtc_timer_set()
536 uint64_t target_time = counter() + delta_time; in sys_clock_set_timeout() local
541 target_time = MAX((target_time - last_count)/CYC_PER_TICK, 1)*CYC_PER_TICK + last_count; in sys_clock_set_timeout()
543 system_timeout_set_abs(target_time); in sys_clock_set_timeout()
/Zephyr-latest/tests/drivers/timer/nrf_rtc_timer/src/
Dmain.c13 uint64_t target_time; member
80 now, data->target_time, expire_time); in timeout_handler()
82 if ((expire_time >= data->target_time) && in timeout_handler()
83 (expire_time <= (data->target_time + data->window))) { in timeout_handler()
93 .target_time = ticks, in test_timeout()
152 .target_time = now + t, in ZTEST()
163 z_nrf_rtc_timer_set(chan, data.target_time, timeout_handler, &data); in ZTEST()
322 .target_time = now + 5, in ZTEST()
373 uint64_t target_time; in ZTEST() local
383 target_time = now + 5; in ZTEST()
[all …]
/Zephyr-latest/include/zephyr/drivers/timer/
Dnrf_rtc_timer.h133 int z_nrf_rtc_timer_set(int32_t chan, uint64_t target_time,
162 int z_nrf_rtc_timer_exact_set(int32_t chan, uint64_t target_time,
Dnrf_grtc_timer.h125 int z_nrf_grtc_timer_set(int32_t chan, uint64_t target_time,