summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/adc.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-24 19:27:13 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-24 19:27:13 +0000
commitda5e269e51222767775eaac0c0253dbf477b45c1 (patch)
tree26ac5043560248de9ff6fca236efea688c48d28e /stmhal/adc.h
parent1403298a653fdb1ed3604bab71ce17200e5017f7 (diff)
downloadmicropython-da5e269e51222767775eaac0c0253dbf477b45c1.tar.gz
micropython-da5e269e51222767775eaac0c0253dbf477b45c1.zip
stmhal: Make pyb.ADC the ADC class (not a function).
Diffstat (limited to 'stmhal/adc.h')
-rw-r--r--stmhal/adc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/stmhal/adc.h b/stmhal/adc.h
index 502da20dde..c9f16932eb 100644
--- a/stmhal/adc.h
+++ b/stmhal/adc.h
@@ -1,2 +1,3 @@
+extern const mp_obj_type_t pyb_adc_type;
+
MP_DECLARE_CONST_FUN_OBJ(pyb_ADC_all_obj);
-MP_DECLARE_CONST_FUN_OBJ(pyb_ADC_obj);