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.h | |
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.h')
-rw-r--r-- | stmhal/pin.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/pin.h b/stmhal/pin.h index 8513db109b..51a434f1d0 100644 --- a/stmhal/pin.h +++ b/stmhal/pin.h @@ -78,7 +78,7 @@ typedef struct { extern const pin_named_pins_obj_t pin_board_pins_obj; extern const pin_named_pins_obj_t pin_cpu_pins_obj; -void pin_init(void); +void pin_init0(void); const pin_obj_t *pin_find(mp_obj_t user_obj); const pin_obj_t *pin_find_named_pin(const pin_named_pin_t *pins, const char *name); const pin_af_obj_t *pin_find_af(const pin_obj_t *pin, uint8_t fn, uint8_t unit, uint8_t pin_type); |