Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/tests/drivers/timer/nrf_rtc_timer/src/
Dmain.c182 uint64_t exp_ticks = z_nrf_rtc_timer_read() + t.ticks; in ZTEST() local
187 zassert_true((ticks >= exp_ticks) && (ticks <= (exp_ticks + 1)), in ZTEST()
188 "Unexpected result %d (expected: %d)", ticks, exp_ticks); in ZTEST()
192 exp_ticks = z_nrf_rtc_timer_read() - K_MSEC(1).ticks; in ZTEST()
194 zassert_true((ticks >= exp_ticks - 1) && (ticks <= exp_ticks), in ZTEST()
195 "Unexpected result %d (expected: %d)", ticks, exp_ticks); in ZTEST()
199 exp_ticks = z_nrf_rtc_timer_read() + K_MSEC(10).ticks; in ZTEST()
201 zassert_true((ticks >= exp_ticks - 1) && (ticks <= exp_ticks), in ZTEST()
202 "Unexpected result %d (expected: %d)", ticks, exp_ticks); in ZTEST()
/Zephyr-Core-3.5.0/tests/kernel/timer/timer_api/src/
Dmain.c682 uint32_t rem_ms, rem_ticks, exp_ticks; in ZTEST_USER() local
694 exp_ticks = k_timer_expires_ticks(&remain_timer); in ZTEST_USER()
727 zassert_true(((int64_t)exp_ticks - (int64_t)now) <= (dur_ticks / 2) + 1, in ZTEST_USER()
736 uint64_t exp_ticks = k_ms_to_ticks_ceil64(exp_ms); in ZTEST_USER() local
737 k_timeout_t t = K_TIMEOUT_ABS_TICKS(exp_ticks), t2; in ZTEST_USER()
775 zassert_true(t0 + rem_ticks == exp_ticks, in ZTEST_USER()
777 (uint64_t)t0, (uint64_t)rem_ticks, (uint64_t)exp_ticks, in ZTEST_USER()
778 t0+rem_ticks-exp_ticks); in ZTEST_USER()