zephyr/tests/kernel/timer
Andy Ross cc0db43426 tests/kernel/timer/timer_api: Correct tick math for odd freq timers
This test sets a timer, busy waits for half the duration, and then
checks the remaining time is correct.  And it correctly does all its
math in tick precision and aligns to a timer interrupt to eliminate
aliasing due to the tick stride.

But it's waiting using k_busy_wait(), not a timer: "half the duration"
in MICROSECONDS (for k_busy_wait()) is not necessarily representable
as an integer number of TICKS on all platforms.  Because k_busy_wait()
always rounds up, we need one extra tick of buffer on those platforms.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2020-04-22 17:35:10 +02:00
..
starve cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
timer_api tests/kernel/timer/timer_api: Correct tick math for odd freq timers 2020-04-22 17:35:10 +02:00
timer_monotonic cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00