summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2025-04-18 11:12:14 +0200
committerHiFiPhile <[email protected]>2025-04-18 11:12:14 +0200
commit713410997326269b4072dce906933f8f44fd0efe (patch)
treeefc46eab259d9a9c664c5ec23017d7857a75bb8e /src
parent0d2c08efd7145b160ab0ed373b2cf956699cfb74 (diff)
Update hcd_edpt_open() note.
Signed-off-by: HiFiPhile <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/portable/template/hcd_template.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/portable/template/hcd_template.c b/src/portable/template/hcd_template.c
index 694fa8550..fd870c91e 100644
--- a/src/portable/template/hcd_template.c
+++ b/src/portable/template/hcd_template.c
@@ -118,8 +118,8 @@ bool hcd_edpt_open(uint8_t rhport, uint8_t dev_addr, tusb_desc_endpoint_t const
(void) dev_addr;
// NOTE: ep_desc is allocated on the stack when called from usbh_edpt_control_open()
- // If you need to persist any ep_desc values across HCD calls (eg ep_desc->wMaxPacketSize),
- // then you need to copy the data into another variable inside this function.
+ // You need to copy the data into a local variable who maintains the state of the endpoint and transfer.
+ // Check _hcd_data in hcd_dwc2.c for example.
(void) ep_desc;
return false;