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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 hathach
					hathach