mirror of
https://github.com/Dasharo/zephyr.git
synced 2026-03-06 14:57:20 -08:00
SYS_CLOCK_TICKS_PER_SEC of it8xxx2 is 4096 (244us). Running test_sleep_abs item on it8xxx2 and we get k_us_to_ticks_ceil32(250) = 2 and late = 2, so it failed. After we enable the CONFIG_PM, it needs more time to resume from low power mode, so I modify the logic to <= for passing the test. fixes #49605 Signed-off-by: Ruibin Chang <Ruibin.Chang@ite.com.tw>
$ make run [QEMU] CPU: qemu32 Running test suite test_timer_api tc_start() - test_timer_duration_period =================================================================== PASS - test_timer_duration_period. tc_start() - test_timer_period_0 =================================================================== PASS - test_timer_period_0. tc_start() - test_timer_expirefn_null =================================================================== PASS - test_timer_expirefn_null. tc_start() - test_timer_status_get =================================================================== PASS - test_timer_status_get. tc_start() - test_timer_status_get_anytime =================================================================== PASS - test_timer_status_get_anytime. tc_start() - test_timer_status_sync =================================================================== PASS - test_timer_status_sync. tc_start() - test_timer_k_define =================================================================== PASS - test_timer_k_define. =================================================================== PROJECT EXECUTION SUCCESSFUL