From 49b1607bedb7fa473b2cd2ead93e62f8c0f74988 Mon Sep 17 00:00:00 2001 From: Glenn Ruben Bakke Date: Mon, 6 Mar 2017 00:57:33 +0100 Subject: [PATCH] nrf5: Updating main.c to initialize the rtc module if enabled. --- nrf5/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nrf5/main.c b/nrf5/main.c index 3e81372af8..e5b0f51705 100644 --- a/nrf5/main.c +++ b/nrf5/main.c @@ -48,6 +48,7 @@ #include "pin.h" #include "spi.h" #include "i2c.h" +#include "rtc.h" #if MICROPY_PY_MACHINE_PWM #include "pwm.h" #endif @@ -116,6 +117,10 @@ int main(int argc, char **argv) { pwm_init0(); #endif +#if MICROPY_PY_MACHINE_RTC + rtc_init0(); +#endif + #if MICROPY_PY_MACHINE_TIMER timer_init0(); #endif