diff options
author | Damien George <damien.p.george@gmail.com> | 2014-08-04 11:09:51 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-08-04 11:09:51 +0100 |
commit | ccacdf44b6c5241ce05769e777008767a7ed8939 (patch) | |
tree | 30dfaa47c94ad4cc321750169830a2d0cd603305 /stmhal/pin.c | |
parent | 8dbbbbc793554f920cf352b0e67da46abe3974cf (diff) | |
download | micropython-ccacdf44b6c5241ce05769e777008767a7ed8939.tar.gz micropython-ccacdf44b6c5241ce05769e777008767a7ed8939.zip |
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/pin.c')
-rw-r--r-- | stmhal/pin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/pin.c b/stmhal/pin.c index 20661cfceb..2d7466d3cb 100644 --- a/stmhal/pin.c +++ b/stmhal/pin.c @@ -98,7 +98,7 @@ STATIC mp_obj_t pin_class_mapper; STATIC mp_obj_t pin_class_map_dict; STATIC bool pin_class_debug; -void pin_init(void) { +void pin_init0(void) { pin_class_mapper = mp_const_none; pin_class_map_dict = mp_const_none; pin_class_debug = false; |