mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-01 10:20:38 +00:00
clean up text
This commit is contained in:
parent
b28cc6ddb1
commit
ee6ed084f4
@ -210,13 +210,15 @@ void tud_umount_cb(void)
|
|||||||
blink_interval_ms = 250;
|
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 tud_suspend_cb(bool remote_wakeup_en)
|
||||||
{
|
{
|
||||||
(void) remote_wakeup_en;
|
(void) remote_wakeup_en;
|
||||||
blink_interval_ms = 2500;
|
blink_interval_ms = 2500;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Invoked when usb bus is resumed
|
||||||
void tud_resume_cb(void)
|
void tud_resume_cb(void)
|
||||||
{
|
{
|
||||||
blink_interval_ms = 1000;
|
blink_interval_ms = 1000;
|
||||||
|
@ -76,16 +76,16 @@ bool tud_remote_wakeup(void);
|
|||||||
// Application Callbacks (WEAK is optional)
|
// 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);
|
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);
|
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);
|
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);
|
ATTR_WEAK void tud_resume_cb(void);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
Loading…
x
Reference in New Issue
Block a user