/* HAL_PCDEx_BCD_Callback : Send BCD message to user layer.  */
void HAL_PCDEx_BCD_Callback(PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg)
/* HAL_PCDEx_BCD_Callback : Send BCD message to user layer.  */
void HAL_PCDEx_BCD_Callback(PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg)
{
  switch(msg)
  {
  case PCD_BCD_STD_DOWNSTREAM_PORT:
    BSP_LED_On(LED3);
    break;
  case PCD_BCD_CHARGING_DOWNSTREAM_PORT:
    BSP_LED_On(LED4);
    break;
  case PCD_BCD_DEDICATED_CHARGING_PORT:
    BSP_LED_On(LED3);
    BSP_LED_On(LED4);
    break;
  case PCD_BCD_DISCOVERY_COMPLETED:
    USBD_Start(&USBD_Device);
    break;
  case PCD_BCD_ERROR:
  default:
    break;
  }
}