Skip to content
Commit 317d0702 authored by Jun Lin's avatar Jun Lin Committed by Fabio Baltieri
Browse files

tests: timer_behavior: increase stdev tolerance for npcx timer



Change the stdev tolerance stdev from 10 to 33 when npcx timer is used.
This is because the clock source of npcx event timer, which is used to
generate the timeout interrupt, is running at 32.768 KHz.
(i.e. 1 count = ~30.5 us.) The conversion from the absolute system timer
to the event timer count might have -30.5 ~ 30.5 deviation.
The tolerance setting is under the assumption that test sampes are
evenly located at 1030.5 and 969.5 for the worst case.

Fixes #59594

Signed-off-by: default avatarJun Lin <CHLin56@nuvoton.com>
parent 4cfd4b53
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment