summaryrefslogtreecommitdiff
path: root/src/device/dcd.h
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2024-04-08 23:48:52 +0700
committerGitHub <[email protected]>2024-04-08 23:48:52 +0700
commit42decf28f1bf7512a4c3e7402c9daf83ee241191 (patch)
tree1a3ed93956a7d51d592d6ba4de6215725ec43c4c /src/device/dcd.h
parentd33fe38a6257bcdd60f51a57c9fd19ce2ad1f202 (diff)
parentbe25a3fc20339c27803e68cb1363f89ffe7a7c67 (diff)
Merge pull request #1835 from MasterQ32/otg_bringup
Implements deinit functions for host/device mode switch
Diffstat (limited to 'src/device/dcd.h')
-rw-r--r--src/device/dcd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/device/dcd.h b/src/device/dcd.h
index 69c26bcf4..d4f105aa3 100644
--- a/src/device/dcd.h
+++ b/src/device/dcd.h
@@ -122,6 +122,9 @@ void dcd_dcache_clean_invalidate(void const* addr, uint32_t data_size) TU_ATTR_W
// Initialize controller to device mode
void dcd_init(uint8_t rhport);
+// Deinitialize controller, unset device mode.
+bool dcd_deinit(uint8_t rhport);
+
// Interrupt Handler
void dcd_int_handler(uint8_t rhport);