summaryrefslogtreecommitdiff
path: root/tools/python-semver
diff options
context:
space:
mode:
authorSean Cross <sean@xobs.io>2020-05-18 11:48:23 +0800
committerSean Cross <sean@xobs.io>2020-05-18 11:52:27 +0800
commit83680c41db821672ff006b96151c6daeca6280e3 (patch)
treeaa14c58fb965acdc157f0538a383f13cd3215252 /tools/python-semver
parent3b5f5ddaa6232a8d3ac868c703e8a511abe045e0 (diff)
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>
Diffstat (limited to 'tools/python-semver')
0 files changed, 0 insertions, 0 deletions