summaryrefslogtreecommitdiff
path: root/src/device/usbd.h
diff options
context:
space:
mode:
authorFelix "xq" Queißner <[email protected]>2023-01-02 17:09:45 +0100
committerhathach <[email protected]>2024-04-08 19:00:35 +0700
commit47c12a07f2edf927eaa685ee8c32b222271d770f (patch)
tree5b7ad8bd791604f89d188416930baf8364fea459 /src/device/usbd.h
parentbc10394e66f9658a696fee11d15cdc8ff1d66432 (diff)
Implements tuh_deinit() and tud_deinit() to uninitialize host/device mode.
Diffstat (limited to 'src/device/usbd.h')
-rw-r--r--src/device/usbd.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/device/usbd.h b/src/device/usbd.h
index 2e3987b99..a9350192b 100644
--- a/src/device/usbd.h
+++ b/src/device/usbd.h
@@ -37,9 +37,12 @@ extern "C" {
// Application API
//--------------------------------------------------------------------+
-// Init device stack
+// Init device stack on roothub port
bool tud_init (uint8_t rhport);
+// Deinit device stack on roothub port
+void tud_deinit(uint8_t rhport);
+
// Check if device stack is already initialized
bool tud_inited(void);