summaryrefslogtreecommitdiff
path: root/ports/stm32/modmachine.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-07-20 12:37:58 +1000
committerDamien George <damien.p.george@gmail.com>2019-09-04 15:40:24 +1000
commitebacdfabb6e2ac695d6660f2a6420ab84db76d39 (patch)
treebd219ff069f6c80685bd0a40a8b16782860d1154 /ports/stm32/modmachine.c
parente509da22df8cd337c1cc8dd531c6150e6fdb4ee0 (diff)
stm32/machine_adc: Add machine.ADC class.
Diffstat (limited to 'ports/stm32/modmachine.c')
-rw-r--r--ports/stm32/modmachine.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ports/stm32/modmachine.c b/ports/stm32/modmachine.c
index e45f81479..eaa536a1d 100644
--- a/ports/stm32/modmachine.c
+++ b/ports/stm32/modmachine.c
@@ -392,9 +392,7 @@ STATIC const mp_rom_map_elem_t machine_module_globals_table[] = {
{ MP_ROM_QSTR(MP_QSTR_Signal), MP_ROM_PTR(&machine_signal_type) },
{ 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
+ { MP_ROM_QSTR(MP_QSTR_ADC), MP_ROM_PTR(&machine_adc_type) },
#if MICROPY_PY_MACHINE_I2C
{ MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&machine_i2c_type) },
#endif