|
|
@ -249,7 +249,7 @@ void plat_usb_reconnect(void) |
|
|
|
|
|
|
|
|
|
|
|
USBD_LL_Reset(&hUsbDeviceFS); |
|
|
|
USBD_LL_Reset(&hUsbDeviceFS); |
|
|
|
|
|
|
|
|
|
|
|
#if defined(GEX_PLAT_F072_DISCOVERY) |
|
|
|
#if defined(GEX_PLAT_F072_DISCOVERY) || defined(GEX_PLAT_F303_DISCOVERY) |
|
|
|
HAL_PCD_DevDisconnect(&hpcd_USB_FS); |
|
|
|
HAL_PCD_DevDisconnect(&hpcd_USB_FS); |
|
|
|
osDelay(100); |
|
|
|
osDelay(100); |
|
|
|
HAL_PCD_DevConnect(&hpcd_USB_FS); |
|
|
|
HAL_PCD_DevConnect(&hpcd_USB_FS); |
|
|
|