nrf: port: call common_hal_rtc_init() during init

Call the new function to set the RTC, or reset it if the offset is not
valid.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2020-05-18 11:50:04 +08:00
parent 83680c41db
commit 9f7c26c60d
1 changed files with 4 additions and 0 deletions

View File

@ -120,6 +120,10 @@ safe_mode_t port_init(void) {
// Configure millisecond timer initialization.
tick_init();
#if CIRCUITPY_RTC
common_hal_rtc_init();
#endif
#if CIRCUITPY_ANALOGIO
analogin_init();
#endif