circuitpython/ports/nrf/common-hal/rtc
Sean Cross 83680c41db nrf: rtc: persist rtc offset across reboots
Store the RTC value in the .uninitialized section, but make sure to
flank it with some known values.  That way we can determine if the RTC
value has been initialized, or if it's random uninitialized garbage.

As part of this, add a `common_hal_rtc_init()` routine to determine if
the value is correct, or reset it to 0 if it is not valid.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-18 11:52:27 +08:00
..
RTC.c nrf: rtc: persist rtc offset across reboots 2020-05-18 11:52:27 +08:00
RTC.h nrf: rtc: persist rtc offset across reboots 2020-05-18 11:52:27 +08:00
__init__.c starting on #1046 rtc for nRF 2019-04-02 13:27:00 +11:00