diff options
author | Damien George <damien.p.george@gmail.com> | 2014-03-29 01:24:44 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-03-29 01:24:44 +0000 |
commit | bcc9298e5bd2049bbee8c1d00482d2695b8e0b70 (patch) | |
tree | 9d04f2bda26bf044122fcd2c5757ec5e49dc0278 /stmhal/exti.c | |
parent | c63f984647cb69147359440db19d417dfecab2fa (diff) |
stmhal: Add TODO's to exti.c; fix delay in lcd.c.
Diffstat (limited to 'stmhal/exti.c')
-rw-r--r-- | stmhal/exti.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stmhal/exti.c b/stmhal/exti.c index c5378d835..e5e9b53bd 100644 --- a/stmhal/exti.c +++ b/stmhal/exti.c @@ -66,6 +66,8 @@ // There is also a C API, so that drivers which require EXTI interrupt lines // can also use this code. See exti.h for the available functions and // usrsw.h for an example of using this. +// +// TODO Add python method to change callback object. #define EXTI_OFFSET (EXTI_BASE - PERIPH_BASE) @@ -302,6 +304,7 @@ void Handle_EXTI_Irq(uint32_t line) { if (line < EXTI_NUM_VECTORS) { exti_vector_t *v = &exti_vector[line]; if (v->callback_obj != mp_const_none) { + // TODO need to wrap this in an nlr_buf; really need a general function for this rt_call_function_1(v->callback_obj, MP_OBJ_NEW_SMALL_INT(line)); } } |