summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2022-01-31 16:38:32 +1100
committerDamien George <damien@micropython.org>2022-01-31 16:38:32 +1100
commit14becd80c9587e7afed56aebab4bf347971ff6e4 (patch)
tree28c8a81bececda0bd689e4828b5a2e9010032f57
parent517e82eb6b7d93134637b5658132479f4fc260e3 (diff)
stm32/usbd_conf: Set lpm_enable and battery_charging_enable on all MCUs.
Signed-off-by: Damien George <damien@micropython.org>
-rw-r--r--ports/stm32/usbd_conf.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ports/stm32/usbd_conf.c b/ports/stm32/usbd_conf.c
index 50e10ba17..1fb277783 100644
--- a/ports/stm32/usbd_conf.c
+++ b/ports/stm32/usbd_conf.c
@@ -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;