Skip to content

Commit 587eb41

Browse files
authored
Merge pull request #14736 from jeromecoutant/ISSUE_USB_F1
STM32 USB: update init
2 parents a83ec19 + 94794f9 commit 587eb41

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
@@ -317,6 +317,7 @@ void USBPhyHw::init(USBPhyEvents *events)
317317
hpcd.State = HAL_PCD_STATE_RESET;
318318
HAL_StatusTypeDef ret = HAL_PCD_Init(&hpcd);
319319
MBED_ASSERT(ret == HAL_OK);
320+
__HAL_PCD_ENABLE(&hpcd);
320321

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

0 commit comments

Comments
 (0)