Added PCD Start so that connection is established when a host is

connected in non blocking mode (cinnect_blocking = false)
pull/14970/head
Mohammed Mubeen 2021-07-30 10:52:00 +05:30
parent d147abc3e5
commit b429aeb5f7
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)