Home
last modified time | relevance | path

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

/Zephyr-latest/tests/boards/native_sim/cpu_wait/src/
Dmain.c56 #define ONE_TICK_TIME (1000000ul / CONFIG_SYS_CLOCK_TICKS_PER_SEC) macro
58 #define ONE_AND_HALF_TICKS (ONE_TICK_TIME + (ONE_TICK_TIME>>1))
59 #define TWO_AND_HALF_TICKS ((ONE_TICK_TIME<<1) + (ONE_TICK_TIME>>1))
61 #if (WASTED_TIME > ONE_TICK_TIME/2)
229 k_busy_wait(ONE_TICK_TIME + 1); in ZTEST()
236 zassert_true(time2 - time1 == ONE_TICK_TIME + WASTED_TIME, in ZTEST()
239 time2, time1, ONE_TICK_TIME); in ZTEST()
255 time2, time1, ONE_TICK_TIME); in ZTEST()
262 posix_cpu_hold(ONE_TICK_TIME + 1); in ZTEST()
269 zassert_true(time2 - time1 == ONE_TICK_TIME + 1 + WASTED_TIME, in ZTEST()
[all …]