We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b0c1c8 commit 9d43a25Copy full SHA for 9d43a25
lib/tinyusb
supervisor/shared/usb/usb.c
@@ -92,13 +92,15 @@ void tud_mount_cb(void) {
92
void tud_umount_cb(void) {
93
}
94
95
-uint32_t tusb_hal_millis(void) {
96
- uint64_t ms;
97
- uint32_t us;
98
- current_tick(&ms, &us);
99
- 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) {
100
101
+// Invoked when usb bus is resumed
102
+void tud_resume_cb(void) {
103
+}
104
105
// Invoked when cdc when line state changed e.g connected/disconnected
106
// Use to reset to DFU when disconnect with 1200 bps
0 commit comments