10000 nrf5: Updating main.c to initialize the rtc module if enabled. · pcurry/circuitpython@49b1607 · GitHub
[go: up one dir, main page]

Skip to content

Commit 49b1607

Browse files
committed
nrf5: Updating main.c to initialize the rtc module if enabled.
1 parent 1ef7c73 commit 49b1607

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nrf5/main.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
#include "pin.h"
4949
#include "spi.h"
5050
#include "i2c.h"
51+
#include "rtc.h"
5152
#if MICROPY_PY_MACHINE_PWM
5253
#include "pwm.h"
5354
#endif
@@ -116,6 +117,10 @@ int main(int argc, char **argv) {
116117
pwm_init0();
117118
#endif
118119

120+
#if MICROPY_PY_MACHINE_RTC
121+
rtc_init0();
122+
#endif
123+
119124
#if MICROPY_PY_MACHINE_TIMER
120125
timer_init0();
121126
#endif

0 commit comments

Comments
 (0)
0