summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/pybmodule.c
diff options
context:
space:
mode:
authorDave Hylands <dhylands@gmail.com>2014-03-24 10:49:23 -0700
committerDave Hylands <dhylands@gmail.com>2014-03-24 11:16:35 -0700
commit1403298a653fdb1ed3604bab71ce17200e5017f7 (patch)
tree77ce4ff7acd51385b0baadae98035dda89989198 /stmhal/pybmodule.c
parent6609d636d042fb02bdd07ea578cc3dbf6a311273 (diff)
downloadmicropython-1403298a653fdb1ed3604bab71ce17200e5017f7.tar.gz
micropython-1403298a653fdb1ed3604bab71ce17200e5017f7.zip
stmhal - fixed up adc stuff
Added support for the ADC channels and mappings to make_pins.py I'm not sure if the hal properly deals with the channel 16/18 differences between the 40x and 42x. It seems to deal with it partially. This particular aspect will need testing on a 42x or 43x.
Diffstat (limited to 'stmhal/pybmodule.c')
-rw-r--r--stmhal/pybmodule.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/stmhal/pybmodule.c b/stmhal/pybmodule.c
index f67b1c03a5..7a4408bc21 100644
--- a/stmhal/pybmodule.c
+++ b/stmhal/pybmodule.c
@@ -20,6 +20,7 @@
#include "rng.h"
#include "rtc.h"
#include "usart.h"
+#include "adc.h"
#include "storage.h"
#include "sdcard.h"
#include "accel.h"
@@ -28,7 +29,6 @@
#if 0
#include "usb.h"
#include "i2c.h"
-#include "adc.h"
#endif
#include "pybmodule.h"
#include "ff.h"
@@ -265,10 +265,8 @@ STATIC const mp_map_elem_t pyb_module_globals_table[] = {
{ MP_OBJ_NEW_QSTR(MP_QSTR_I2C), (mp_obj_t)&pyb_I2C_obj },
#endif
{ MP_OBJ_NEW_QSTR(MP_QSTR_Usart), (mp_obj_t)&pyb_Usart_obj },
-#if 0
{ MP_OBJ_NEW_QSTR(MP_QSTR_ADC_all), (mp_obj_t)&pyb_ADC_all_obj },
{ MP_OBJ_NEW_QSTR(MP_QSTR_ADC), (mp_obj_t)&pyb_ADC_obj },
-#endif
#if MICROPY_HW_ENABLE_DAC
{ MP_OBJ_NEW_QSTR(MP_QSTR_DAC), (mp_obj_t)&pyb_dac_type },