Home
last modified time | relevance | path

Searched refs:tick (Results 1 – 25 of 55) sorted by relevance

123

/Zephyr-Core-3.6.0/kernel/
Dtimeout.c297 timepoint.tick = UINT64_MAX; in sys_timepoint_calc()
299 timepoint.tick = 0; in sys_timepoint_calc()
304 timepoint.tick = Z_TICK_ABS(dt); in sys_timepoint_calc()
306 timepoint.tick = sys_clock_tick_get() + MAX(1, dt); in sys_timepoint_calc()
317 if (timepoint.tick == UINT64_MAX) { in sys_timepoint_timeout()
320 if (timepoint.tick == 0) { in sys_timepoint_timeout()
325 remaining = (timepoint.tick > now) ? (timepoint.tick - now) : 0; in sys_timepoint_timeout()
330 void z_impl_sys_clock_tick_set(uint64_t tick) in z_impl_sys_clock_tick_set() argument
332 curr_tick = tick; in z_impl_sys_clock_tick_set()
335 void z_vrfy_sys_clock_tick_set(uint64_t tick) in z_vrfy_sys_clock_tick_set() argument
[all …]
/Zephyr-Core-3.6.0/tests/subsys/portability/cmsis_rtos_v2/src/
Dkernel.c12 uint32_t tick; variable
94 tick = osKernelGetTickCount(); in delay_until()
95 tick += 50U; in delay_until()
97 status_val = osDelayUntil(tick); in delay_until()
103 zassert_true(tick <= osKernelGetTickCount()); in ZTEST()
/Zephyr-Core-3.6.0/include/zephyr/
Dsys_clock.h219 typedef struct { uint64_t tick; } k_timepoint_t; member
266 return tp.tick; in sys_clock_timeout_end_calc()
281 if (a.tick == b.tick) { in sys_timepoint_cmp()
284 return a.tick < b.tick ? -1 : 1; in sys_timepoint_cmp()
/Zephyr-Core-3.6.0/boards/posix/native_posix/
DKconfig.board11 An interrupt controller, timer (system tick), and redirects kernel prints to
23 An interrupt controller, timer (system tick), and redirects kernel prints to
/Zephyr-Core-3.6.0/drivers/lora/
Dhal_common.c102 uint32_t RtcTick2Ms(uint32_t tick) in RtcTick2Ms() argument
104 return tick; in RtcTick2Ms()
/Zephyr-Core-3.6.0/tests/kernel/context/
DREADME.txt35 CPU to be woken up by tick timer. Thus, after each call, the tick count
36 should have advanced by one tick.
39 - 1. Count the number of calls to _tick_get_32() before a tick expires.
41 with interrupts locked. Check that the tick count remains unchanged.
44 - Continuation irq_lock: unlock interrupts, loop and verify the tick
/Zephyr-Core-3.6.0/tests/kernel/context/src/
Dmain.c390 int tick; in _test_kernel_interrupts() local
395 tick = sys_clock_tick_get_32(); in _test_kernel_interrupts()
396 while (sys_clock_tick_get_32() == tick) { in _test_kernel_interrupts()
400 tick++; in _test_kernel_interrupts()
401 while (sys_clock_tick_get_32() == tick) { in _test_kernel_interrupts()
416 tick = sys_clock_tick_get_32(); in _test_kernel_interrupts()
434 zassert_equal(tick2, tick, in _test_kernel_interrupts()
445 zassert_not_equal(tick, tick2, in _test_kernel_interrupts()
/Zephyr-Core-3.6.0/tests/kernel/sleep/src/
Dmain.c79 uint32_t tick; in align_to_tick_boundary() local
81 tick = k_uptime_get_32(); in align_to_tick_boundary()
82 while (k_uptime_get_32() == tick) { in align_to_tick_boundary()
/Zephyr-Core-3.6.0/tests/kernel/timer/timer_behavior/
DKconfig35 # Use 13% on nRF platforms using the RTC timer because one tick there is
36 # ~122 us (see SYS_CLOCK_TICKS_PER_SEC configuration above) and one tick
38 # example if a new tick elapses right after the kernel gets the number
/Zephyr-Core-3.6.0/drivers/counter/
DKconfig.stm32_rtc48 bool "Use the subseconds as a basic tick."
51 Use the subseconds as the basic time tick. It increases resolution
/Zephyr-Core-3.6.0/samples/boards/nrf/nrf53_sync_rtc/
DREADME.rst11 core which can be applied to the system tick for logging timestamping.
14 both cores. Application core periodically reads current system tick and stores it in
17 from shared memory and local system tick updated by the offset. User can observe
20 may be slightly behind (usually 1 tick) due to latency introduced by the
/Zephyr-Core-3.6.0/doc/kernel/services/timing/
Dclocks.rst35 "tick" is the internal count in which the kernel does all its internal
37 delivered on tick boundaries to the extent practical, and no
38 fractional ticks are tracked. The choice of tick rate is configurable
50 "us" (microseconds), "tick", or "cyc" can be converted to any other.
127 being 32 bits. Large uptime counts in non-tick units will experience
156 guaranteed at the tick level no matter how many events exist or how
168 Kernel timing at the tick level is driven by a timer driver with a
176 interrupt latency interactions) that they occur near tick boundaries
177 (i.e. not "halfway through" a tick), and most importantly that they
190 fractional tick gets "reset" incorrectly and causes clock skew.
[all …]
/Zephyr-Core-3.6.0/tests/kernel/timer/starve/
DREADME.txt8 Lack of tick announcement propagates into a monotonic increase in the
13 and the tick rate. By default the test passes if one hour passes
/Zephyr-Core-3.6.0/tests/kernel/timer/timer_behavior/src/
Dtick_timer_train.c78 int64_t tick = k_uptime_ticks(); in ZTEST() local
81 timers[i].last_scheduled = tick + i; in ZTEST()
/Zephyr-Core-3.6.0/drivers/timer/
DKconfig.stm32_lptim50 bool "Override tick to freq ratio check"
53 For LPTIM configuration, a specific tick freq is advised
DKconfig.gecko21 scheduling. Kernel tick duration should be at least 6 BURTC clock
/Zephyr-Core-3.6.0/include/zephyr/net/
Dnet_pkt.h1093 uint32_t tick) in net_pkt_set_stats_tick() argument
1101 pkt->detail.stat[pkt->detail.count++] = tick; in net_pkt_set_stats_tick()
1104 #define net_pkt_set_tx_stats_tick(pkt, tick) net_pkt_set_stats_tick(pkt, tick) argument
1105 #define net_pkt_set_rx_stats_tick(pkt, tick) net_pkt_set_stats_tick(pkt, tick) argument
1126 static inline void net_pkt_set_stats_tick(struct net_pkt *pkt, uint32_t tick) in net_pkt_set_stats_tick() argument
1129 ARG_UNUSED(tick); in net_pkt_set_stats_tick()
1132 #define net_pkt_set_tx_stats_tick(pkt, tick) argument
1133 #define net_pkt_set_rx_stats_tick(pkt, tick) argument
/Zephyr-Core-3.6.0/soc/arm/st_stm32/common/
DKconfig.defconfig.series29 # set the tick per sec as a divider of the LPTIM clock source
/Zephyr-Core-3.6.0/subsys/bluetooth/controller/ll_sw/openisa/hal/RV32M1/radio/
Dradio.h71 uint32_t radio_tmr_start_tick(uint8_t trx, uint32_t tick);
/Zephyr-Core-3.6.0/drivers/watchdog/
Dwdt_rpi_pico.c92 watchdog_hw->tick = (ref_clk / RPI_PICO_CLK_REF_FREQ_WDT_TICK_DIVISOR) | in wdt_rpi_pico_setup()
/Zephyr-Core-3.6.0/tests/kernel/usage/thread_runtime_stats/src/
Dtest_thread_runtime_stats.c43 uint32_t tick = sys_clock_tick_get_32(); in busy_loop() local
45 while (sys_clock_tick_get_32() < (tick + ticks)) { in busy_loop()
/Zephyr-Core-3.6.0/soc/arm/nxp_imx/rt/
DKconfig.defconfig.series40 # set the tick per sec as a divider of the GPT clock source
/Zephyr-Core-3.6.0/boards/arm/qemu_cortex_r5/doc/
Dindex.rst47 This board configuration uses a system timer tick frequency of 1000 Hz.
/Zephyr-Core-3.6.0/soc/arm/nordic_nrf/nrf53/
DKconfig.soc56 bool "Pre-tick workaround for nRF5340 anomaly 165"
62 Indicates that the pre-tick workaround for the anomaly 165 that affects
/Zephyr-Core-3.6.0/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/
Dradio.h140 uint32_t radio_tmr_start_tick(uint8_t trx, uint32_t tick);

123