summaryrefslogtreecommitdiff
path: root/src/host/hcd.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-08-07 18:22:28 +0700
committerhathach <[email protected]>2023-08-07 20:48:07 +0700
commit1f95a417f271e627ec981be3d211eed8c37cb052 (patch)
treeadb765472225597271293028d4676867d0afe3f4 /src/host/hcd.h
parent1b92108bc33bb87a2d7ca11dde739837c9571d4e (diff)
Add tuh_rhport_is_active() and tuh_rhport_reset_bus()
- also improve ehci bus reset - seperate bus reset delay and contact debouncing delay in enumeration
Diffstat (limited to 'src/host/hcd.h')
-rw-r--r--src/host/hcd.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/host/hcd.h b/src/host/hcd.h
index d77dd6e2f..9bcc1c6df 100644
--- a/src/host/hcd.h
+++ b/src/host/hcd.h
@@ -149,10 +149,11 @@ uint32_t hcd_frame_number(uint8_t rhport);
// Get the current connect status of roothub port
bool hcd_port_connect_status(uint8_t rhport);
-// Reset USB bus on the port
+// Reset USB bus on the port. Return immediately, bus reset sequence may not be complete.
+// Some port would require hcd_port_reset_end() to be invoked after 10ms to complete the reset sequence.
void hcd_port_reset(uint8_t rhport);
-// TODO implement later
+// Complete bus reset sequence, may be required by some controllers
void hcd_port_reset_end(uint8_t rhport);
// Get port link speed