diff options
author | Damien George <damien@micropython.org> | 2020-11-12 14:35:43 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2020-11-13 11:23:52 +1100 |
commit | cc2a35b7b241e7eda031db424bf9b3afb8b6204b (patch) | |
tree | f20dff9634a7bde8a5a1c3a532613b425d59d14a /extmod/uasyncio/task.py | |
parent | a0623a081c0dde50aa8d87b464232f2d7866f951 (diff) | |
download | micropython-cc2a35b7b241e7eda031db424bf9b3afb8b6204b.tar.gz micropython-cc2a35b7b241e7eda031db424bf9b3afb8b6204b.zip |
stm32/rtc: Validate the RTC prescaler on boot and change if incorrect.
Devices with RTC backup-batteries have been shown (very rarely) to have
incorrect RTC prescaler values. Such incorrect values mean the RTC counts
fast or slow, and will be wrong forever if the power/backup-battery is
always present.
This commit detects such a state at start up (hard reset) and corrects it
by reconfiguring the RTC prescaler values.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'extmod/uasyncio/task.py')
0 files changed, 0 insertions, 0 deletions