summaryrefslogtreecommitdiff
path: root/py/compile.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-01-27 13:17:22 +1100
committerDamien George <damien.p.george@gmail.com>2019-01-27 13:21:31 +1100
commitc2886868b9ccbe8580f57135bb29779a5d36c1e8 (patch)
treede07cd1c0d2990a4c8e7cbdd3aa2353beb3509e0 /py/compile.c
parent42863830be2d19c7dcdf7ccf1fa66168b1bdc13a (diff)
stm32/rtc: Check RTCEN=1 when testing if RTC is already running on boot.
It can be that LSEON and LSERDY are set yet the RTC is not enabled (this can happen for example when coming out of the ST DFU mode on an F405 with the RTC not previously initialised). In such a case the RTC is never started because the code thinks it's already running. This patch fixes this case by always checking if RTCEN is set when booting up (and also testing for a valid RTCSEL value in the case of using an LSE).
Diffstat (limited to 'py/compile.c')
0 files changed, 0 insertions, 0 deletions