Skip to content

Commit

Permalink
stm32/usbd_conf: Set lpm_enable and battery_charging_enable on all MCUs.
Browse files Browse the repository at this point in the history
Signed-off-by: Damien George <damien@micropython.org>
  • Loading branch information
dpgeorge committed Jan 31, 2022
1 parent 517e82e commit 14becd8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ports/stm32/usbd_conf.c
Expand Up @@ -391,10 +391,8 @@ USBD_StatusTypeDef USBD_LL_Init(USBD_HandleTypeDef *pdev, int high_speed, const
pcd_fs_handle.Init.phy_itface = PCD_PHY_EMBEDDED;
pcd_fs_handle.Init.Sof_enable = 0;
pcd_fs_handle.Init.speed = PCD_SPEED_FULL;
#if defined(STM32L4)
pcd_fs_handle.Init.lpm_enable = DISABLE;
pcd_fs_handle.Init.battery_charging_enable = DISABLE;
#endif
#if MICROPY_HW_USB_IS_MULTI_OTG
pcd_fs_handle.Init.use_dedicated_ep1 = 0;
pcd_fs_handle.Init.dma_enable = 0;
Expand Down

0 comments on commit 14becd8

Please sign in to comment.