8000 stmhal: Consistently enable USB SOF Irqs for all USB modes (FS and HS). · kevincon/circuitpython@8a8e775 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8a8e775

Browse files
hoihudpgeorge
authored andcommitted
stmhal: Consistently enable USB SOF Irqs for all USB modes (FS and HS).
SOF irqs are now standard for rx/tx USB transfers, so enable them for both FS and HS modes. Fixes adafruit#1944.
1 parent 04d5e64 commit 8a8e775

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stmhal/usbd_conf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ if (pdev->id == USB_PHY_HS_ID)
429429
pcd_hs_handle.Init.dma_enable = 0;
430430
pcd_hs_handle.Init.low_power_enable = 0;
431431
pcd_hs_handle.Init.phy_itface = PCD_PHY_EMBEDDED;
432-
pcd_hs_handle.Init.Sof_enable = 0;
432+
pcd_hs_handle.Init.Sof_enable = 1;
433433
pcd_hs_handle.Init.speed = PCD_SPEED_HIGH_IN_FULL;
434434
#if !defined(MICROPY_HW_USB_VBUS_DETECT_PIN)
435435
pcd_hs_handle.Init.vbus_sensing_enable = 0; // No VBUS Sensing on USB0
@@ -463,7 +463,7 @@ if (pdev->id == USB_PHY_HS_ID)
463463

464464
pcd_hs_handle.Init.low_power_enable = 0;
465465
pcd_hs_handle.Init.phy_itface = PCD_PHY_ULPI;
466-
pcd_hs_handle.Init.Sof_enable = 0;
466+
pcd_hs_handle.Init.Sof_enable = 1;
467467
pcd_hs_handle.Init.speed = PCD_SPEED_HIGH;
468468
pcd_hs_handle.Init.vbus_sensing_enable = 1;
469469
/* Link The driver to the stack */

0 commit comments

Comments
 (0)
0