Home
last modified time | relevance | path

Searched refs:cyc_per_tick (Results 1 – 6 of 6) sorted by relevance

/Zephyr-latest/drivers/timer/
Dsilabs_sleeptimer_timer.c38 uint32_t cyc_per_tick; /* Number of hw_cycles per 1 kernel tick */ member
57 uint32_t unannounced = pending / timer->cyc_per_tick; in sleeptimer_cb()
59 atomic_set(&timer->last_count, prev + unannounced * timer->cyc_per_tick); in sleeptimer_cb()
78 uint32_t next = ticks * timer->cyc_per_tick; in sleeptimer_clock_set_timeout()
85 next += timer->cyc_per_tick; in sleeptimer_clock_set_timeout()
100 timer->cyc_per_tick; in sleeptimer_clock_elapsed()
137 timer->cyc_per_tick = z_clock_hw_cycles_per_sec / CONFIG_SYS_CLOCK_TICKS_PER_SEC; in sleeptimer_init()
139 __ASSERT(timer->cyc_per_tick >= MIN_DELAY_CYC, in sleeptimer_init()
143 timer->cyc_per_tick, MIN_DELAY_CYC, CONFIG_SYS_CLOCK_TICKS_PER_SEC, in sleeptimer_init()
146 timer->max_timeout_ticks = MAX_TIMEOUT_CYC / timer->cyc_per_tick; in sleeptimer_init()
[all …]
Dhpet.c234 static __pinned_bss unsigned int cyc_per_tick; variable
236 #define cyc_per_tick \ macro
306 uint32_t dticks = (uint32_t)((now - last_count) / cyc_per_tick); in hpet_isr()
308 last_count += (uint64_t)dticks * cyc_per_tick; in hpet_isr()
313 uint64_t next = last_count + cyc_per_tick; in hpet_isr()
370 uint64_t cyc = (last_tick + last_elapsed + ticks) * cyc_per_tick; in sys_clock_set_timeout()
386 uint32_t ret = (uint32_t)((now - last_count) / cyc_per_tick); in sys_clock_elapsed()
441 cyc_per_tick = hz / CONFIG_SYS_CLOCK_TICKS_PER_SEC; in sys_clock_driver_init()
459 last_tick = hpet_counter_get() / cyc_per_tick; in sys_clock_driver_init()
460 last_count = last_tick * cyc_per_tick; in sys_clock_driver_init()
[all …]
Darm_arch_timer.c16 static uint32_t cyc_per_tick; variable
17 #define CYC_PER_TICK cyc_per_tick
236 cyc_per_tick = sys_clock_hw_cycles_per_sec() / CONFIG_SYS_CLOCK_TICKS_PER_SEC; in sys_clock_driver_init()
/Zephyr-latest/samples/kernel/metairq_dispatch/src/
Dmsgdev.c90 uint64_t cyc_per_tick = k_ticks_to_cyc_near64(1); in message_dev_init() local
92 uint64_t avg_cyc_per_event = cyc_per_tick * avg_ticks_per_event; in message_dev_init()
/Zephyr-latest/tests/kernel/timer/timer_behavior/pytest/
Dtest_timer.py28 cyc_per_tick = sys_clock_hw_cycles_per_sec / ticks_per_sec
29 expected_period_drift = ((periods_tick * cyc_per_tick - expected_period) /
/Zephyr-latest/tests/kernel/timer/timer_behavior/src/
Djitter_drift.c230 uint32_t cyc_per_tick = sys_clock_hw_cycles_per_sec() in do_test_using() local
232 double expected_period_drift = ((double)actual_timeout.ticks * cyc_per_tick in do_test_using()