mirror of
https://github.com/hathach/tinyusb.git
synced 2025-05-08 06:35:49 +08:00
Merge pull request #3084 from joelpmichael/hcd-template-comments
note potential issues using ep_desc in hcd_edpt_open()
This commit is contained in:
commit
ee1a5dbac0
@ -106,6 +106,11 @@ void hcd_device_close(uint8_t rhport, uint8_t dev_addr) {
|
||||
// Open an endpoint
|
||||
bool hcd_edpt_open(uint8_t rhport, uint8_t dev_addr, tusb_desc_endpoint_t const * ep_desc) {
|
||||
(void) rhport; (void) dev_addr; (void) ep_desc;
|
||||
|
||||
// NOTE: ep_desc is allocated on the stack when called from usbh_edpt_control_open()
|
||||
// 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.
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user