Lines Matching full:period
18 #define PERIOD 50 macro
97 * late to see a full period elapse before the next period. in interval_check()
122 TIMER_ASSERT(interval_check(interval, PERIOD), timer); in duration_expire()
145 TIMER_ASSERT(k_timer_remaining_get(timer) >= PERIOD, timer); in status_expire()
172 * @brief Test duration and period of Timer
174 * Validates initial duration and period of timer.
177 * using k_timer_start() with specific initial duration and period.
179 * of duration and period.
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()
196 k_timer_start(&duration_timer, K_FOREVER, K_MSEC(PERIOD)); in ZTEST_USER()
206 * @details Validates initial duration and period of timer. Start the timer with
207 * specific duration and period. Then starts the timer again, and check
220 K_MSEC(PERIOD)); in ZTEST_USER()
221 busy_wait_ms(DURATION + PERIOD * (EXPIRE_TIMES - 1) + PERIOD / 2); in ZTEST_USER()
225 K_MSEC(PERIOD)); in ZTEST_USER()
236 * @brief Test Timer with zero period value
238 * Validates initial timer duration, keeping timer period to zero.
241 * using k_timer_start() with specific initial duration and period as
253 /** TESTPOINT: set period 0 */ in ZTEST_USER()
273 * @brief Test Timer with K_FOREVER period value
275 * Validates initial timer duration, keeping timer period to K_FOREVER.
278 * using k_timer_start() with specific initial duration and period as
290 /** TESTPOINT: set period 0 */ 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()
357 * expires depending on the period configured.
360 * using k_timer_start() with specific period. It resets the timer’s
362 * between each timer expiry to check for the timer expiration period
372 uint64_t period_ms = k_ticks_to_ms_floor64(k_ms_to_ticks_ceil32(PERIOD)); in ZTEST_USER()
383 k_timer_start(&periodicity_timer, K_NO_WAIT, K_MSEC(PERIOD)); in ZTEST_USER()
403 * expected period (firing time). in ZTEST_USER()
407 * time. The actual period will be equal to [tick time] in ZTEST_USER()
408 * multiplied by k_ms_to_ticks_ceil32(PERIOD). in ZTEST_USER()
441 k_timer_start(&status_timer, K_MSEC(DURATION), K_MSEC(PERIOD)); in ZTEST_USER()
458 * using k_timer_start() with specific initial duration and period.
471 K_MSEC(PERIOD)); in ZTEST_USER()
472 busy_wait_ms(DURATION + PERIOD * (EXPIRE_TIMES - 1) + PERIOD / 2); in ZTEST_USER()
477 busy_wait_ms(PERIOD); 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()
518 busy_wait_ms(PERIOD*2); in ZTEST_USER()
533 * duration and period. Stops the timer using k_timer_stop() and checks
534 * for proper completion of duration and period.
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()
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()