zephyr/tests/kernel/timer/timer_behavior/src
Nicolas Pitre 141299fb80 tests: timer_behavior: better cope with timer wrap-arounds
Commit a1d21ca69b ("tests: timer_behavior: don't fail the test with
timer wrap-arounds") simply ignored the total time validation whenever
any rollover was detected. Let's adjust the end timestamp according
to the number of rollovers instead.

Documentation for sys_clock_cycle_get_32() says it should count up
monotonically through the full 32 bit space, wrapping at 0xffffffff.
Therefore we just need to add 2^32 times the number of rollovers to
the end timestamp.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2023-07-18 21:36:57 +00:00
..
jitter_drift.c tests: timer_behavior: better cope with timer wrap-arounds 2023-07-18 21:36:57 +00:00
main.c
tick_timer_train.c tests: kernel: timer_behavior: improve timer_tick_train output 2023-02-19 20:34:37 -05:00