summaryrefslogtreecommitdiffstatshomepage
path: root/stm/gpio.h
diff options
context:
space:
mode:
authorDave Hylands <dhylands@gmail.com>2014-02-19 22:28:36 -0800
committerDave Hylands <dhylands@gmail.com>2014-02-23 11:26:22 -0800
commitee31f71d39207309b924ac99a7de2d847cb4bbfd (patch)
treea7d5022579bbe988c2dac79c7a99c56557ef8b52 /stm/gpio.h
parent790eed6f93dc12df40715ad1062b5ce01badcbd9 (diff)
downloadmicropython-ee31f71d39207309b924ac99a7de2d847cb4bbfd.tar.gz
micropython-ee31f71d39207309b924ac99a7de2d847cb4bbfd.zip
Add EXTI support
Revamp usrsw to use new exti code. Add user switch callback function.
Diffstat (limited to 'stm/gpio.h')
-rw-r--r--stm/gpio.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/stm/gpio.h b/stm/gpio.h
index 2f81ac6658..1071c9ef01 100644
--- a/stm/gpio.h
+++ b/stm/gpio.h
@@ -1 +1,4 @@
+mp_obj_t pyb_gpio(uint n_args, mp_obj_t *args);
+mp_obj_t pyb_gpio_input(mp_obj_t arg_pin, mp_obj_t arg_mode);
+mp_obj_t pyb_gpio_output(mp_obj_t arg_pin, mp_obj_t arg_mode);
void gpio_init(mp_obj_t mod);