mirror of https://github.com/ARMmbed/mbed-os.git
Added PCD Start so that connection is established when a host is
connected in non blocking mode (cinnect_blocking = false)pull/14970/head
parent
d147abc3e5
commit
b429aeb5f7
|
@ -318,6 +318,7 @@ void USBPhyHw::init(USBPhyEvents *events)
|
||||||
HAL_StatusTypeDef ret = HAL_PCD_Init(&hpcd);
|
HAL_StatusTypeDef ret = HAL_PCD_Init(&hpcd);
|
||||||
MBED_ASSERT(ret == HAL_OK);
|
MBED_ASSERT(ret == HAL_OK);
|
||||||
__HAL_PCD_ENABLE(&hpcd);
|
__HAL_PCD_ENABLE(&hpcd);
|
||||||
|
HAL_PCD_Start(&hpcd);
|
||||||
|
|
||||||
// Configure FIFOs
|
// Configure FIFOs
|
||||||
#if (MBED_CONF_TARGET_USB_SPEED == USE_USB_NO_OTG)
|
#if (MBED_CONF_TARGET_USB_SPEED == USE_USB_NO_OTG)
|
||||||
|
|
Loading…
Reference in New Issue