nrf5: Updating main.c to initialize the rtc module if enabled.

This commit is contained in:
Glenn Ruben Bakke 2017-03-06 00:57:33 +01:00
parent 1ef7c732e8
commit 49b1607bed
1 changed files with 5 additions and 0 deletions

View File

@ -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