Home
last modified time | relevance | path

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

/Zephyr-latest/tests/kernel/timer/timer_api/src/
Dmain.c17 #define DURATION 100 macro
120 TIMER_ASSERT(interval_check(interval, DURATION), timer); in duration_expire()
190 k_timer_start(&duration_timer, K_MSEC(DURATION), K_MSEC(PERIOD)); in ZTEST_USER()
191 busy_wait_ms(DURATION + PERIOD * EXPIRE_TIMES + PERIOD / 2); in ZTEST_USER()
219 k_timer_start(&status_anytime_timer, K_MSEC(DURATION), in ZTEST_USER()
221 busy_wait_ms(DURATION + PERIOD * (EXPIRE_TIMES - 1) + PERIOD / 2); in ZTEST_USER()
224 k_timer_start(&status_anytime_timer, K_MSEC(DURATION), in ZTEST_USER()
255 K_TICKS(k_ms_to_ticks_floor32(DURATION) in ZTEST_USER()
256 - BUSY_SLEW_THRESHOLD_TICKS(DURATION in ZTEST_USER()
260 busy_wait_ms(2 * DURATION + 1); in ZTEST_USER()
[all …]
/Zephyr-latest/tests/benchmarks/footprints/src/
Dtimer.c12 #define DURATION 100 macro
60 k_timer_start(&timer0, K_MSEC(DURATION), K_MSEC(PERIOD)); in thread_fn()
62 busy_wait_ms(DURATION + PERIOD * EXPIRE_TIMES + PERIOD / 2); in thread_fn()
66 k_timer_start(&timer0, K_MSEC(DURATION), K_MSEC(PERIOD)); in thread_fn()
72 busy_wait_ms(DURATION / 2); in thread_fn()
73 k_timer_start(&timer0, K_MSEC(DURATION), K_MSEC(PERIOD)); in thread_fn()
75 busy_wait_ms(DURATION + PERIOD * EXPIRE_TIMES + PERIOD / 2); in thread_fn()
/Zephyr-latest/tests/kernel/interrupt/src/
Dnested_irq.c19 #define DURATION 5 macro
115 k_busy_wait(MS_TO_US(DURATION)); in isr0()
163 k_busy_wait(MS_TO_US(DURATION)); in ZTEST()
Dprevent_irq.c10 #define DURATION 5 macro
51 k_timer_start(&irqlock_timer, K_MSEC(DURATION), K_NO_WAIT); in ZTEST()
/Zephyr-latest/tests/kernel/common/src/
Dclock.c28 #define DURATION 100 macro
211 k_timer_start(&ktimer, K_MSEC(DURATION), K_NO_WAIT); in ZTEST()
224 k_busy_wait((DURATION + 1) * 1000); in ZTEST()
/Zephyr-latest/tests/kernel/timer/timer_error_case/src/
Dmain.c17 #define DURATION 100 macro
30 k_timer_start(NULL, K_MSEC(DURATION), K_NO_WAIT); in thread_timer_start_null()
/Zephyr-latest/tests/kernel/sched/schedule_api/src/
Dtest_sched_timeslice_and_lock.c9 #define DURATION K_MSEC(1) macro
84 k_timer_start(&th_wakeup_timer, DURATION, K_NO_WAIT); in thread_handler()
/Zephyr-latest/tests/subsys/edac/ibecc/src/
Dibecc.c22 #define DURATION 100 macro
218 k_busy_wait(USEC_PER_MSEC * DURATION); in test_inject()