summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/gpio.h
diff options
context:
space:
mode:
authorDave Hylands <dhylands@gmail.com>2014-03-14 23:41:28 -0700
committerDave Hylands <dhylands@gmail.com>2014-03-14 23:41:28 -0700
commitca5444e6cd8b566bd4ad78e84162e03ec18e01b6 (patch)
tree64369de8ac0ef6214112340da70c78c474567dc7 /stmhal/gpio.h
parent0a64c92a9c3bd7d648c8a0d087fa7e739a5eeaa3 (diff)
downloadmicropython-ca5444e6cd8b566bd4ad78e84162e03ec18e01b6.tar.gz
micropython-ca5444e6cd8b566bd4ad78e84162e03ec18e01b6.zip
stmhal - add pin mapping, gpio, exti, usrsw
Diffstat (limited to 'stmhal/gpio.h')
-rw-r--r--stmhal/gpio.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/stmhal/gpio.h b/stmhal/gpio.h
new file mode 100644
index 0000000000..f43adfdac0
--- /dev/null
+++ b/stmhal/gpio.h
@@ -0,0 +1,7 @@
+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);