Skip to content

Commit

Permalink
fix(PL18/PL18EV): Broken USB functionalities post #4207 (#4471)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardclli authored Dec 27, 2023
1 parent fbe06b3 commit 795789a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions radio/src/targets/common/arm/stm32/usbd_conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,11 @@ USBD_StatusTypeDef USBD_LL_Init(USBD_HandleTypeDef *pdev)
hpcd_USB_OTG_FS.Init.Sof_enable = ENABLE;
hpcd_USB_OTG_FS.Init.low_power_enable = DISABLE;
hpcd_USB_OTG_FS.Init.lpm_enable = DISABLE;
#if defined(VBUS_SENSING_ENABLED)
hpcd_USB_OTG_FS.Init.vbus_sensing_enable = ENABLE;
#else
hpcd_USB_OTG_FS.Init.vbus_sensing_enable = DISABLE;
#endif
hpcd_USB_OTG_FS.Init.use_dedicated_ep1 = DISABLE;
if (HAL_PCD_Init(&hpcd_USB_OTG_FS) != HAL_OK)
{
Expand Down

0 comments on commit 795789a

Please sign in to comment.