summaryrefslogtreecommitdiff
path: root/examples/device
diff options
context:
space:
mode:
Diffstat (limited to 'examples/device')
-rw-r--r--examples/device/cdc_msc_hid/src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/device/cdc_msc_hid/src/main.c b/examples/device/cdc_msc_hid/src/main.c
index 1fa0fead1..a8ef0575c 100644
--- a/examples/device/cdc_msc_hid/src/main.c
+++ b/examples/device/cdc_msc_hid/src/main.c
@@ -210,13 +210,15 @@ void tud_umount_cb(void)
blink_interval_ms = 250;
}
-// Invoked when device is suspended
+// Invoked when usb bus is suspended
+// USB specs: device can only draw up to 2.5 mA from bus
void tud_suspend_cb(bool remote_wakeup_en)
{
(void) remote_wakeup_en;
blink_interval_ms = 2500;
}
+// Invoked when usb bus is resumed
void tud_resume_cb(void)
{
blink_interval_ms = 1000;