diff options
| author | hathach <thach@tinyusb.org> | 2019-04-02 13:04:02 +0700 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2019-04-04 17:59:20 -0400 |
| commit | 9d43a25d6e9336646aa8cf62cad6ae53f232d324 (patch) | |
| tree | 10ff4fbe555af59dcc3ad02e6f239d60d297d24e /supervisor | |
| parent | 5b0c1c8df9b205221b50c588abf4106dced0ca1c (diff) | |
update tinyusb to fix disconnect/suspend issue with #1681
Diffstat (limited to 'supervisor')
| -rw-r--r-- | supervisor/shared/usb/usb.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/supervisor/shared/usb/usb.c b/supervisor/shared/usb/usb.c index c77f1e417..02a5da6c5 100644 --- a/supervisor/shared/usb/usb.c +++ b/supervisor/shared/usb/usb.c @@ -92,13 +92,15 @@ void tud_mount_cb(void) { void tud_umount_cb(void) { } -uint32_t tusb_hal_millis(void) { - uint64_t ms; - uint32_t us; - current_tick(&ms, &us); - return (uint32_t) ms; +// Invoked when usb bus is suspended +// remote_wakeup_en : if host allows us to perform remote wakeup +// USB Specs: Within 7ms, device must draw an average current less than 2.5 mA from bus +void tud_suspend_cb(bool remote_wakeup_en) { } +// Invoked when usb bus is resumed +void tud_resume_cb(void) { +} // Invoked when cdc when line state changed e.g connected/disconnected // Use to reset to DFU when disconnect with 1200 bps |
