mirror of https://github.com/ARMmbed/mbed-os.git
4fe068834c
On some boards without SYSTICK support lp ticker is used to trace system ticks. Event queue uses system ticker to count delay when callback is to be fired. New ticker implementation for NRF51_DK provides fast and accurate counter for us ticker which shows inaccuracy of the system ticker(which is based on slow and inaccurate lp ticker). This is why measured error grows linearly and percentage form needs to be used. Currently we use constant tolerance value equal to: 5 [ms]. This patch modifies tolerance to the following form: 5% of measured time [ms]. In this test the lowest delay is equal to 100 [ms], so 5% corresponds to 5 [ms] tolerance - original value. This means that min tolerance is 5 [ms] so this change should not have negative impact on other targets. |
||
---|---|---|
.. | ||
queue | ||
timing |