diff options
| author | hathach <[email protected]> | 2019-03-29 16:23:00 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-03-29 16:23:00 +0700 |
| commit | 1c2beba85c223bcf401f877b0c29025490fcdaa4 (patch) | |
| tree | b79e6cb6cfab2139a3894d46e4731ec81ce78318 /src/device/usbd.h | |
| parent | 0bdd4bd55002c4563154214a4d57581433cae668 (diff) | |
working on suspend and resume
change dcd_init signature
Diffstat (limited to 'src/device/usbd.h')
| -rw-r--r-- | src/device/usbd.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/device/usbd.h b/src/device/usbd.h index 614b4f311..6bf7eca02 100644 --- a/src/device/usbd.h +++ b/src/device/usbd.h @@ -60,7 +60,6 @@ typedef struct { }tud_desc_set_t;
-
// Must be defined by application
extern tud_desc_set_t tud_desc_set;
@@ -70,6 +69,8 @@ extern tud_desc_set_t tud_desc_set; bool tud_mounted(void);
void tud_task (void);
+bool tud_remote_wakeup(void);
+
//--------------------------------------------------------------------+
// APPLICATION CALLBACK (WEAK is optional)
//--------------------------------------------------------------------+
@@ -77,10 +78,14 @@ void tud_task (void); // Callback invoked when device is mounted (configured)
ATTR_WEAK void tud_mount_cb(void);
-// Callback invoked when device is unmounted (bus reset/unplugged)
+// Callback invoked when device is unmounted
ATTR_WEAK void tud_umount_cb(void);
-//void tud_device_suspended_cb(void);
+// Callback invoked when device is suspended
+ATTR_WEAK void tud_suspend_cb(bool remote_wakeup_en);
+
+// Callback invoked when device is resumed
+ATTR_WEAK void tud_resume_cb(void);
#ifdef __cplusplus
}
|
