diff options
author | Craig Hesling <hesling@chromium.org> | 2021-07-26 19:19:28 -0400 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-07-27 21:59:25 +0000 |
commit | c1d7b514a13a1c794fefdaeac2cc23e2b7be50b4 (patch) | |
tree | 3a45ff14e358153c6def00a5be27c9874c9c1d5d /Makefile | |
parent | c7e06191a4042367afe69293a0650234864ec697 (diff) | |
download | chrome-ec-c1d7b514a13a1c794fefdaeac2cc23e2b7be50b4.tar.gz |
test/stm32f_rtc: Allow real rtc delay to be early
The current check for if the RTC delay is within 1ms, only accounts
for actual delays that exceed 500ms.
This doesn't seem right, since you would rather wake up early than late.
This change allows the RTC delay to be early or late by the tolerance
window.
I have also tightened the tolerance window to +/- 500us.
BRANCH=none
BUG=b:194720920
TEST=# Repeat the following test 10 times
./test/run_device_tests.py --board bloonchipper --tests stm32f_rtc
TEST=# Disable CONFIG_LOW_POWER_IDLE
# Repeat the following test 10 times
./test/run_device_tests.py --board bloonchipper --tests stm32f_rtc
TEST=# Disable CONFIG_LOW_POWER_IDLE and comment out idle loop "wfi"
# instruction.
# Repeat the following test 10 times
./test/run_device_tests.py --board bloonchipper --tests stm32f_rtc
Signed-off-by: Craig Hesling <hesling@chromium.org>
Change-Id: I68505c4011d9e12d54ed2630975a5b3be42ba6f2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3055119
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions