8000 nrf5/modules: Added RTC into the machine module globals dict. · ladyada/circuitpython@1ef7c73 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1ef7c73

Browse files
committed
nrf5/modules: Added RTC into the machine module globals dict.
1 parent 7144696 commit 1ef7c73

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

nrf5/modules/machine/modmachine.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@
4949
#if MICROPY_PY_MACHINE_TEMP
5050
#include "temp.h"
5151
#endif
52-
52+
#if MICROPY_PY_MACHINE_RTC
53+
#include "rtc.h"
54+
#endif
5355

5456
#define PYB_RESET_HARD (0)
5557
#define PYB_RESET_WDT (1)
@@ -181,6 +183,9 @@ STATIC const mp_map_elem_t machine_module_globals_table[] = {
181183
#if MICROPY_PY_MACHINE_ADC
182184
{ MP_OBJ_NEW_QSTR(MP_QSTR_ADC), (mp_obj_t)&machine_adc_type },
183185
#endif
186+
#if MICROPY_PY_MACHINE_RTC
187+
{ MP_OBJ_NEW_QSTR(MP_QSTR_RTC), (mp_obj_t)&machine_rtc_type },
188+
#endif
184189
#if MICROPY_PY_MACHINE_PWM
185190
{ MP_OBJ_NEW_QSTR(MP_QSTR_PWM), (mp_obj_t)&machine_hard_pwm_type },
186191
#endif

0 commit comments

Comments
 (0)
0