nrf5: Updating main.c to initialize the rtc module if enabled.
This commit is contained in:
parent
1ef7c732e8
commit
49b1607bed
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue