clean up text

This commit is contained in:
hathach 2019-03-30 15:03:35 +07:00
parent b28cc6ddb1
commit ee6ed084f4
No known key found for this signature in database
GPG Key ID: 2FA891220FBFD581
2 changed files with 7 additions and 5 deletions

View File

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

View File

@ -76,16 +76,16 @@ bool tud_remote_wakeup(void);
// Application Callbacks (WEAK is optional)
//--------------------------------------------------------------------+
// Callback invoked when device is mounted (configured)
// Invoked when device is mounted (configured)
ATTR_WEAK void tud_mount_cb(void);
// Callback invoked when device is unmounted
// Invoked when device is unmounted
ATTR_WEAK void tud_umount_cb(void);
// Callback invoked when device is suspended
// Invoked when usb bus is suspended, max bus current draw is 2.5 mA
ATTR_WEAK void tud_suspend_cb(bool remote_wakeup_en);
// Callback invoked when device is resumed
// Invoked when usb bus is resumed
ATTR_WEAK void tud_resume_cb(void);
#ifdef __cplusplus