aboutsummaryrefslogtreecommitdiff
path: root/stmhal/gpio.h
diff options
context:
space:
mode:
authorDamien George2014-04-18 22:38:09 +0100
committerDamien George2014-04-18 22:38:09 +0100
commitc66d86c5ce068e860ceb550ad75bf4da5211276b (patch)
tree2292f0d3cba5886550a7d989aae926664319ae62 /stmhal/gpio.h
parent738bdeb73a6ef802ed0c39fb88a733a1ad04d9a1 (diff)
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/gpio.h')
-rw-r--r--stmhal/gpio.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/stmhal/gpio.h b/stmhal/gpio.h
deleted file mode 100644
index f43adfdac..000000000
--- a/stmhal/gpio.h
+++ /dev/null
@@ -1,7 +0,0 @@
-mp_obj_t pyb_gpio(uint n_args, mp_obj_t *args);
-mp_obj_t pyb_gpio_output(uint n_args, mp_obj_t *args);
-mp_obj_t pyb_gpio_input(uint n_args, mp_obj_t *args);
-
-MP_DECLARE_CONST_FUN_OBJ(pyb_gpio_obj);
-MP_DECLARE_CONST_FUN_OBJ(pyb_gpio_input_obj);
-MP_DECLARE_CONST_FUN_OBJ(pyb_gpio_output_obj);