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/usb.h | |
parent | 8dbbbbc793554f920cf352b0e67da46abe3974cf (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/usb.h')
-rw-r--r-- | stmhal/usb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/stmhal/usb.h b/stmhal/usb.h index 6d2d469fe..594e99e18 100644 --- a/stmhal/usb.h +++ b/stmhal/usb.h @@ -43,6 +43,7 @@ typedef enum { const mp_obj_type_t pyb_usb_vcp_type; +void pyb_usb_init0(void); void pyb_usb_dev_init(usb_device_mode_t mode, usb_storage_medium_t medium); void pyb_usb_dev_stop(void); bool usb_vcp_is_enabled(void); |