Skip to content

Commit b429aeb

Browse files
committed
Added PCD Start so that connection is established when a host is
connected in non blocking mode (cinnect_blocking = false)
1 parent d147abc commit b429aeb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

targets/TARGET_STM/USBPhy_STM32.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ void USBPhyHw::init(USBPhyEvents *events)
318318
HAL_StatusTypeDef ret = HAL_PCD_Init(&hpcd);
319319
MBED_ASSERT(ret == HAL_OK);
320320
__HAL_PCD_ENABLE(&hpcd);
321+
HAL_PCD_Start(&hpcd);
321322

322323
// Configure FIFOs
323324
#if (MBED_CONF_TARGET_USB_SPEED == USE_USB_NO_OTG)

0 commit comments

Comments
 (0)