Merge pull request #14736 from jeromecoutant/ISSUE_USB_F1

STM32 USB: update init
pull/14740/head
Martin Kojtal 2021-06-07 13:32:01 +02:00 committed by GitHub
commit 587eb413d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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