update tinyusb to fix disconnect/suspend issue with #1681

crypto-aes
hathach 4 years ago committed by Dan Halbert
parent 5b0c1c8df9
commit 9d43a25d6e
  1. 2
      lib/tinyusb
  2. 12
      supervisor/shared/usb/usb.c

@ -1 +1 @@
Subproject commit 547cc045fa1d8862e7e00c1d7b4a0026531d0098
Subproject commit 0848c462b3e431a9da42e96537d2b597a4579636

@ -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

Loading…
Cancel
Save