Home
last modified time | relevance | path

Searched refs:counter_sub (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/boards/qemu/cortex_m0/
Dnrf_timer_timer.c31 static uint32_t counter_sub(uint32_t a, uint32_t b) in counter_sub() function
85 if (counter_sub(prev_val, now) == 1) { in prevent_false_prev_evt()
121 diff = counter_sub(abs_val, t); in set_absolute_ticks()
151 uint32_t dticks = counter_sub(t, last_count) / CYC_PER_TICK; in timer0_nrf_isr()
177 uint32_t unannounced = counter_sub(counter(), last_count); in sys_clock_set_timeout()
221 uint32_t ret = counter_sub(counter(), last_count) / CYC_PER_TICK; in sys_clock_elapsed()
230 uint32_t ret = counter_sub(counter(), last_count) + last_count; in sys_clock_cycle_get_32()
/Zephyr-latest/drivers/timer/
Dnrf_grtc_timer.c74 static inline uint64_t counter_sub(uint64_t a, uint64_t b) in counter_sub() function
151 dticks = counter_sub(cc_val, last_count) / CYC_PER_TICK; in sys_clock_timeout_handler()
465 return (uint32_t)(counter_sub(counter(), last_count) / CYC_PER_TICK); in sys_clock_elapsed()
Dnrf_rtc_timer.c68 static uint32_t counter_sub(uint32_t a, uint32_t b) in counter_sub() function
302 if (counter_sub(cc_val, now + MIN_CYCLES_FROM_NOW) > in set_alarm()
316 if (counter_sub(now, req_cc) > COUNTER_HALF_SPAN) { in set_alarm()