diff options
author | Damien George <damien@micropython.org> | 2022-02-04 08:30:39 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-02-04 08:35:14 +1100 |
commit | e4f59a00201b31903b11a6d30dddedc1457ed2ff (patch) | |
tree | c2b719ad129c9deb7f8bbd3e61eeda16fc003f66 /docs/esp32/tutorial/intro.rst | |
parent | 26faf74d52e3e953c9ddbcd800a2f9e117477ce7 (diff) |
stm32/rtc: Use LL_RTC functions to simplify some MCU-specific code.
This also fixes a possible race condition when exiting initialisation mode:
reading then writing to ISR (via ISR &= ~RTC_ISR_INIT) will clear any flags
that were set by the hardware between the read and the write. The correct
way to clear just the INIT bit is to just do a single write via ISR =
~RTC_ISR_INIT, which will not clear any other flags (they must be written
to 0 to clear), and that is exactly what LL_RTC_DisableInitMode does.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'docs/esp32/tutorial/intro.rst')
0 files changed, 0 insertions, 0 deletions