aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George2019-07-03 16:46:07 +1000
committerDamien George2019-07-03 16:46:07 +1000
commitf88cb8a51412d8570e473045adf09699664f553a (patch)
tree7991ec25f47db41fcc4633e3c4b4fbe1657f7ec4
parentc60caf19951c8326be9c3b6f3b016a4d21f69276 (diff)
stm32/modmachine: Make RTC class available in machine module.
This is a start to make a more consistent machine.RTC class across ports. The stm32 pyb.RTC class at least has the datetime() method which behaves the same as esp8266 and esp32, and with this patch the ntptime.py script now works with stm32.
-rw-r--r--ports/stm32/modmachine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/modmachine.c b/ports/stm32/modmachine.c
index a4ee47470..7ea14bdcd 100644
--- a/ports/stm32/modmachine.c
+++ b/ports/stm32/modmachine.c
@@ -384,8 +384,8 @@ STATIC const mp_rom_map_elem_t machine_module_globals_table[] = {
{ MP_ROM_QSTR(MP_QSTR_Pin), MP_ROM_PTR(&pin_type) },
{ MP_ROM_QSTR(MP_QSTR_Signal), MP_ROM_PTR(&machine_signal_type) },
-#if 0
{ MP_ROM_QSTR(MP_QSTR_RTC), MP_ROM_PTR(&pyb_rtc_type) },
+#if 0
{ MP_ROM_QSTR(MP_QSTR_ADC), MP_ROM_PTR(&pyb_adc_type) },
#endif
#if MICROPY_PY_MACHINE_I2C