Lines Matching refs:DURATION

17 #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()
293 K_TICKS(k_ms_to_ticks_floor32(DURATION) - in ZTEST_USER()
294 BUSY_SLEW_THRESHOLD_TICKS(DURATION * USEC_PER_MSEC)), in ZTEST_USER()
299 busy_wait_ms(2 * DURATION + 1); in ZTEST_USER()
330 k_timer_start(&expire_timer, K_MSEC(DURATION), K_MSEC(PERIOD)); in ZTEST_USER()
331 busy_wait_ms(DURATION + PERIOD * EXPIRE_TIMES + PERIOD / 2); in ZTEST_USER()
441 k_timer_start(&status_timer, K_MSEC(DURATION), K_MSEC(PERIOD)); in ZTEST_USER()
445 TIMER_ASSERT(k_timer_remaining_get(&status_timer) >= DURATION / 2, in ZTEST_USER()
470 k_timer_start(&status_anytime_timer, K_MSEC(DURATION), in ZTEST_USER()
472 busy_wait_ms(DURATION + PERIOD * (EXPIRE_TIMES - 1) + PERIOD / 2); in ZTEST_USER()
504 k_timer_start(&status_sync_timer, K_MSEC(DURATION), K_MSEC(PERIOD)); in ZTEST_USER()
517 k_timer_start(&status_sync_timer, K_MSEC(DURATION), K_MSEC(PERIOD)); in ZTEST_USER()
545 k_timer_start(&ktimer, K_MSEC(DURATION), K_MSEC(PERIOD)); in ZTEST_USER()
546 busy_wait_ms(DURATION + PERIOD * EXPIRE_TIMES + PERIOD / 2); in ZTEST_USER()
557 k_timer_start(&ktimer, K_MSEC(DURATION), K_MSEC(PERIOD)); in ZTEST_USER()
563 busy_wait_ms(DURATION / 2); in ZTEST_USER()
564 k_timer_start(&ktimer, K_MSEC(DURATION), K_MSEC(PERIOD)); in ZTEST_USER()
566 busy_wait_ms(DURATION + PERIOD * EXPIRE_TIMES + PERIOD / 2); in ZTEST_USER()
680 uint32_t dur_ticks = k_ms_to_ticks_ceil32(DURATION); in ZTEST_USER()
681 uint32_t target_rem_ticks = k_ms_to_ticks_ceil32(DURATION / 2); in ZTEST_USER()
689 k_timer_start(&remain_timer, K_MSEC(DURATION), K_NO_WAIT); in ZTEST_USER()
690 busy_wait_ms(DURATION / 2); in ZTEST_USER()
705 zassert_true(rem_ms <= (DURATION / 2) + k_ticks_to_ms_floor64(1), in ZTEST_USER()
715 slew_ticks = BUSY_SLEW_THRESHOLD_TICKS(DURATION * USEC_PER_MSEC / 2U); in ZTEST_USER()