more update to transaction
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
// Configuration
|
||||
//--------------------------------------------------------------------+
|
||||
|
||||
// Max number of endpoints per device
|
||||
// Max number of endpoints pair per device
|
||||
// TODO optimize memory usage
|
||||
#ifndef CFG_TUH_ENDPOINT_MAX
|
||||
#define CFG_TUH_ENDPOINT_MAX 16
|
||||
@@ -167,7 +167,7 @@ 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);
|
||||
bool hcd_edpt_open(uint8_t rhport, uint8_t daddr, tusb_desc_endpoint_t const * ep_desc);
|
||||
|
||||
// Submit a transfer, when complete hcd_event_xfer_complete() must be invoked
|
||||
bool hcd_edpt_xfer(uint8_t rhport, uint8_t daddr, uint8_t ep_addr, uint8_t * buffer, uint16_t buflen);
|
||||
|
||||
@@ -919,6 +919,7 @@ TU_ATTR_FAST_FUNC void hcd_event_handler(hcd_event_t const* event, bool in_isr)
|
||||
switch (event->event_id)
|
||||
{
|
||||
// case HCD_EVENT_DEVICE_REMOVE:
|
||||
// // FIXME device remove from a hub need an HCD API for hcd to free up endpoint
|
||||
// // mark device as removing to prevent further xfer before the event is processed in usbh task
|
||||
// break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user