diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-18 22:38:09 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-18 22:38:09 +0100 |
commit | c66d86c5ce068e860ceb550ad75bf4da5211276b (patch) | |
tree | 2292f0d3cba5886550a7d989aae926664319ae62 /stmhal/adc.h | |
parent | 738bdeb73a6ef802ed0c39fb88a733a1ad04d9a1 (diff) | |
download | micropython-c66d86c5ce068e860ceb550ad75bf4da5211276b.tar.gz micropython-c66d86c5ce068e860ceb550ad75bf4da5211276b.zip |
stmhal: Big cleanup; merge gpio into Pin; make names consistent.
This is an attempt to clean up the Micro Python API on the pyboard.
Gpio functionality is now in the Pin object, which seems more natural.
Constants for MODE and PULL are now in pyb.Pin. Names of some
classes have been adjusted to conform to CamelCase. Other
miscellaneous changes and clean up here and there.
Diffstat (limited to 'stmhal/adc.h')
-rw-r--r-- | stmhal/adc.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/stmhal/adc.h b/stmhal/adc.h index c9f16932eb..deedac0112 100644 --- a/stmhal/adc.h +++ b/stmhal/adc.h @@ -1,3 +1,2 @@ extern const mp_obj_type_t pyb_adc_type; - -MP_DECLARE_CONST_FUN_OBJ(pyb_ADC_all_obj); +extern const mp_obj_type_t pyb_adc_all_type; |