Skip to content

Commit 169038d

Browse files
Enable proper SOF interrupts for USB-OTG
1 parent 43bdca7 commit 169038d

File tree

4 files changed

+2
-2
lines changed

4 files changed

+2
-2
lines changed
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

system/STM32L4xx/Source/USB/usbd_conf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ USBD_StatusTypeDef USBD_LL_Init(USBD_HandleTypeDef *pdev)
517517
hpcd.Init.lpm_enable = 0;
518518
hpcd.Init.battery_charging_enable = 0;
519519
hpcd.Init.phy_itface = PCD_PHY_EMBEDDED;
520-
hpcd.Init.Sof_enable = 0;
520+
hpcd.Init.Sof_enable = 1;
521521
hpcd.Init.speed = PCD_SPEED_FULL;
522522
hpcd.Init.vbus_sensing_enable = 1;
523523
/* Link The driver to the stack */
@@ -542,7 +542,7 @@ USBD_StatusTypeDef USBD_LL_Init(USBD_HandleTypeDef *pdev)
542542
hpcd.Init.speed = PCD_SPEED_FULL;
543543
hpcd.Init.ep0_mps = DEP0CTL_MPS_64;
544544
hpcd.Init.phy_itface = PCD_PHY_EMBEDDED;
545-
hpcd.Init.Sof_enable = 0;
545+
hpcd.Init.Sof_enable = 1;
546546
hpcd.Init.low_power_enable = 0;
547547
hpcd.Init.lpm_enable = 0;
548548
hpcd.Init.battery_charging_enable = 0;

0 commit comments

Comments
 (0)