Skip to content
Commit 6a79436f authored by Peter Bigot's avatar Peter Bigot Committed by Carles Cufi
Browse files

kernel: document that busy-wait clock may differ from timeout clock



Some tests assumed that a delay with k_busy_wait() could be precisely
timed by a tick or cycle count, and vice versa.  This is not true for
all clock configurations on all Zephyr targets, so highlight the
potential variation.

As an example: on some platforms busy-wait is performed by a loop with
known duration in cycles of a known CPU frequency.  The CPU clock may
be unrelated to the clock that drives the system timer.

Signed-off-by: default avatarPeter Bigot <peter.bigot@nordicsemi.no>
parent ed44f057
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment