/** * @brief Reset callback. * @param hpcd: PCD handle * @retval None */ void HAL_PCD_ResetCallback(PCD_HandleTypeDef *hpcd) { USBD_SpeedTypeDef speed = USBD_SPEED_FULL; /* Set USB Current Speed */ switch(hpcd->Init.speed) { case PCD_SPEED_HIGH: speed = USBD_SPEED_HIGH; break; case PCD_SPEED_FULL: speed = USBD_SPEED_FULL; break; default: speed = USBD_SPEED_FULL; break; } /* Reset Device */ USBD_LL_Reset(hpcd->pData); USBD_LL_SetSpeed(hpcd->pData, speed); }
void HAL_PCD_ResetCallback( PCD_HandleTypeDef *hpcd ) { USBD_SpeedTypeDef speed = USBD_SPEED_FULL; // atu: only full USBD_LL_SetSpeed( (USBD_HandleTypeDef*)hpcd->pData, speed ); USBD_LL_Reset( (USBD_HandleTypeDef*)hpcd->pData ); }
/** * @brief Reset callback. * @param hpcd: PCD handle * @retval None */ void HAL_PCD_ResetCallback(PCD_HandleTypeDef *hpcd) { USBD_LL_SetSpeed(hpcd->pData, USBD_SPEED_FULL); /* Reset Device */ USBD_LL_Reset(hpcd->pData); }
void HAL_PCD_ResetCallback(PCD_HandleTypeDef *hpcd) { USBD_LL_SetSpeed((USBD_HandleTypeDef*)hpcd->pData, USBD_SPEED_FULL); USBD_LL_Reset((USBD_HandleTypeDef*)hpcd->pData); }