Merge pull request #14970 from MubeenHCLite/USBSerial_connect_blocking_resolution

USB connect problem in non blocking mode
pull/14978/head
Martin Kojtal 2021-08-02 09:52:30 +01:00 committed by GitHub
commit 7214fe9c99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -318,6 +318,7 @@ void USBPhyHw::init(USBPhyEvents *events)
HAL_StatusTypeDef ret = HAL_PCD_Init(&hpcd);
MBED_ASSERT(ret == HAL_OK);
__HAL_PCD_ENABLE(&hpcd);
HAL_PCD_Start(&hpcd);
// Configure FIFOs
#if (MBED_CONF_TARGET_USB_SPEED == USE_USB_NO_OTG)