rename usbh_edpt_open() to tuh_edpt_open()
This commit is contained in:
		| @@ -201,7 +201,7 @@ bool hub_open(uint8_t rhport, uint8_t dev_addr, tusb_desc_interface_t const *itf | ||||
|   TU_ASSERT(TUSB_DESC_ENDPOINT  == desc_ep->bDescriptorType && | ||||
|             TUSB_XFER_INTERRUPT == desc_ep->bmAttributes.xfer, 0); | ||||
|    | ||||
|   TU_ASSERT(usbh_edpt_open(dev_addr, desc_ep)); | ||||
|   TU_ASSERT(tuh_edpt_open(dev_addr, desc_ep)); | ||||
|  | ||||
|   hub_interface_t* p_hub = get_itf(dev_addr); | ||||
|  | ||||
|   | ||||
| @@ -806,7 +806,7 @@ static bool usbh_edpt_control_open(uint8_t dev_addr, uint8_t max_packet_size) | ||||
|   return hcd_edpt_open(usbh_get_rhport(dev_addr), dev_addr, &ep0_desc); | ||||
| } | ||||
|  | ||||
| bool usbh_edpt_open(uint8_t dev_addr, tusb_desc_endpoint_t const * desc_ep) | ||||
| bool tuh_edpt_open(uint8_t dev_addr, tusb_desc_endpoint_t const * desc_ep) | ||||
| { | ||||
|   TU_ASSERT( tu_edpt_validate(desc_ep, tuh_speed_get(dev_addr)) ); | ||||
|  | ||||
|   | ||||
| @@ -135,8 +135,8 @@ bool tuh_control_xfer(tuh_xfer_t* xfer); | ||||
| //  - sync : blocking if complete callback is NULL. | ||||
| bool tuh_edpt_xfer(tuh_xfer_t* xfer); | ||||
|  | ||||
| // Open an endpoint | ||||
| bool usbh_edpt_open(uint8_t dev_addr, tusb_desc_endpoint_t const * desc_ep); | ||||
| // Open an non-control endpoint | ||||
| bool tuh_edpt_open(uint8_t dev_addr, tusb_desc_endpoint_t const * desc_ep); | ||||
|  | ||||
| // Set Configuration (control transfer) | ||||
| // config_num = 0 will un-configure device. Note: config_num = config_descriptor_index + 1 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 hathach
					hathach