/* USBH_LL_Init Initialize the Low Level portion of the Host driver.  */
USBH_StatusTypeDef USBH_LL_Init(USBH_HandleTypeDef *phost)
/* USBH_LL_Init Initialize the Low Level portion of the Host driver.  */
USBH_StatusTypeDef USBH_LL_Init(USBH_HandleTypeDef *phost)
{
  hhcd.Instance = USB_OTG_FS;
  hhcd.Init.Host_channels = 11;
  hhcd.Init.dma_enable = 0;
  hhcd.Init.low_power_enable = 0;
  hhcd.Init.phy_itface = HCD_PHY_EMBEDDED;
  hhcd.Init.Sof_enable = 0;
  hhcd.Init.speed = HCD_SPEED_FULL;
  hhcd.Init.vbus_sensing_enable = 0;
  hhcd.Init.lpm_enable = 0;
  hhcd.pData = phost;
  phost->pData = &hhcd;
  HAL_HCD_Init(&hhcd);
  USBH_LL_SetTimer (phost, HAL_HCD_GetCurrentFrame(&hhcd));
  return USBH_OK;
}