Skip to content
Commit 33c64c25 authored by Andy Ross's avatar Andy Ross Committed by Anas Nashif
Browse files

tests/cmsis_rtos_v1: Correct timing assumptions



This test was written to assume that k_busy_wait() and CMSIS
osKernelSysTick() (which is just k_cycle_get_32()) were perfectly
synchronized.  On nRF, they aren't (one is the 32 kHz RTC timer, the
other is a calibrated spin loop using the CPU frequency).

When ticks were being reported at 100 Hz granularity, there wasn't
enough precision to detect the mismatch.  Now there is.  Rework the
test to require that the clocks match to within 1%.

Signed-off-by: default avatarAndy Ross <andrew.j.ross@intel.com>
parent ffb9e097
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment