nrf5/modules: Added RTC into the machine module globals dict.

This commit is contained in:
Glenn Ruben Bakke 2017-03-06 00:56:58 +01:00
parent 7144696e17
commit 1ef7c732e8
1 changed files with 6 additions and 1 deletions

View File

@ -49,7 +49,9 @@
#if MICROPY_PY_MACHINE_TEMP
#include "temp.h"
#endif
#if MICROPY_PY_MACHINE_RTC
#include "rtc.h"
#endif
#define PYB_RESET_HARD (0)
#define PYB_RESET_WDT (1)
@ -181,6 +183,9 @@ STATIC const mp_map_elem_t machine_module_globals_table[] = {
#if MICROPY_PY_MACHINE_ADC
{ MP_OBJ_NEW_QSTR(MP_QSTR_ADC), (mp_obj_t)&machine_adc_type },
#endif
#if MICROPY_PY_MACHINE_RTC
{ MP_OBJ_NEW_QSTR(MP_QSTR_RTC), (mp_obj_t)&machine_rtc_type },
#endif
#if MICROPY_PY_MACHINE_PWM
{ MP_OBJ_NEW_QSTR(MP_QSTR_PWM), (mp_obj_t)&machine_hard_pwm_type },
#endif