/* USBH_Alloc_Channel Allocate a new channel for the pipe.  */
uint8_t USBH_Alloc_Channel(USB_OTG_CORE_HANDLE *pdev, uint8_t ep_addr)
/* USBH_Alloc_Channel Allocate a new channel for the pipe.  */
uint8_t USBH_Alloc_Channel(USB_OTG_CORE_HANDLE *pdev, uint8_t ep_addr)
{
  uint16_t hc_num;
  hc_num =  USBH_GetFreeChannel(pdev);
  if (hc_num != HC_ERROR)
  {
	pdev->host.channel[hc_num] = HC_USED | ep_addr;
  }
  return hc_num;
}