Lines Matching refs:CYCLES_PER_TICK
56 #define CYCLES_PER_TICK (CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC / CONFIG_SYS_CLOCK_TICKS_PER_SEC) macro
68 #define MAX_TICKS (RTIMER_MAX / CYCLES_PER_TICK)
94 static uint32_t cached_icr = CYCLES_PER_TICK;
162 full_cycles = full_ticks * CYCLES_PER_TICK; in sys_clock_set_timeout()
178 partial_cycles = CYCLES_PER_TICK - (total_cycles % CYCLES_PER_TICK); in sys_clock_set_timeout()
213 ticks /= CYCLES_PER_TICK; in sys_clock_elapsed()
233 mec_hal_rtimer_stop_and_load(rtimer, MAX_TICKS * CYCLES_PER_TICK, RTIMER_START_VAL); in mec5_ktimer_isr()
236 cached_icr = MAX_TICKS * CYCLES_PER_TICK; in mec5_ktimer_isr()
244 ticks /= CYCLES_PER_TICK; in mec5_ktimer_isr()
265 uint32_t temp = total_cycles + CYCLES_PER_TICK; in mec5_ktimer_isr()
307 cached_icr = CYCLES_PER_TICK; in sys_clock_idle_exit()