summaryrefslogtreecommitdiff
path: root/stmhal/extint.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-08-04 11:09:51 +0100
committerDamien George <damien.p.george@gmail.com>2014-08-04 11:09:51 +0100
commitccacdf44b6c5241ce05769e777008767a7ed8939 (patch)
tree30dfaa47c94ad4cc321750169830a2d0cd603305 /stmhal/extint.c
parent8dbbbbc793554f920cf352b0e67da46abe3974cf (diff)
stmhal: Clean up reset/soft-reset code; fix bug init'ing VCP exc.
Make a clearer distinction between init functions that must be done before any scripts can run (xxx_init0) and those that can be safely deferred (xxx_init). Fix bug initialising USB VCP exception. Addresses issue #788. Re-order some init function to improve reliability of reset/soft-reset.
Diffstat (limited to 'stmhal/extint.c')
-rw-r--r--stmhal/extint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/extint.c b/stmhal/extint.c
index d2eace574..3044e7904 100644
--- a/stmhal/extint.c
+++ b/stmhal/extint.c
@@ -346,7 +346,7 @@ const mp_obj_type_t extint_type = {
.locals_dict = (mp_obj_t)&extint_locals_dict,
};
-void extint_init(void) {
+void extint_init0(void) {
for (extint_vector_t *v = extint_vector; v < &extint_vector[EXTI_NUM_VECTORS]; v++) {
v->callback_obj = mp_const_none;
v->param = NULL;