diff options
| author | hathach <[email protected]> | 2019-03-30 14:47:11 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-03-30 14:47:11 +0700 |
| commit | b28cc6ddb11ef233b6e6ee25b4a305b4b76cc03c (patch) | |
| tree | de6623830676a997c9328f8996151537c30f5d6f /src/device/usbd.h | |
| parent | cabf6abb4f49648ad6eb1f9cb54bfad131f457b7 (diff) | |
added dcd_remote_wakeup() stub for all ports
Diffstat (limited to 'src/device/usbd.h')
| -rw-r--r-- | src/device/usbd.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/device/usbd.h b/src/device/usbd.h index ebf166821..27bfe305b 100644 --- a/src/device/usbd.h +++ b/src/device/usbd.h @@ -59,12 +59,19 @@ extern tud_desc_set_t tud_desc_set; //--------------------------------------------------------------------+
// Application API
//--------------------------------------------------------------------+
-bool tud_mounted(void);
+
+// Task function should be called in main/rtos loop
void tud_task (void);
-bool tud_remote_wakeup(void);
+// Check if device is connected and configured
+bool tud_mounted(void);
+
+// Tell stack that device is self or bus powered (default = bus)
void tud_set_self_powered(bool self_powered);
+// Remote wake up host, only if suspended and enabled by host
+bool tud_remote_wakeup(void);
+
//--------------------------------------------------------------------+
// Application Callbacks (WEAK is optional)
//--------------------------------------------------------------------+
|
