aboutsummaryrefslogtreecommitdiff
path: root/stmhal
diff options
context:
space:
mode:
authorMartin Fischer2016-04-06 21:41:52 +0200
committerDamien George2016-04-07 09:23:33 +0100
commit8a8e7750358b7650bf9f96da9e8f4b797562390e (patch)
treeb1e90c0a2d948a181d696f310b65bf873754ea08 /stmhal
parent04d5e644fcf4e0171383403e69d8fff429bba425 (diff)
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 #1944.
Diffstat (limited to 'stmhal')
-rw-r--r--stmhal/usbd_conf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/usbd_conf.c b/stmhal/usbd_conf.c
index 5ff824071..ad449d9a1 100644
--- a/stmhal/usbd_conf.c
+++ b/stmhal/usbd_conf.c
@@ -429,7 +429,7 @@ if (pdev->id == USB_PHY_HS_ID)
pcd_hs_handle.Init.dma_enable = 0;
pcd_hs_handle.Init.low_power_enable = 0;
pcd_hs_handle.Init.phy_itface = PCD_PHY_EMBEDDED;
- pcd_hs_handle.Init.Sof_enable = 0;
+ pcd_hs_handle.Init.Sof_enable = 1;
pcd_hs_handle.Init.speed = PCD_SPEED_HIGH_IN_FULL;
#if !defined(MICROPY_HW_USB_VBUS_DETECT_PIN)
pcd_hs_handle.Init.vbus_sensing_enable = 0; // No VBUS Sensing on USB0
@@ -463,7 +463,7 @@ if (pdev->id == USB_PHY_HS_ID)
pcd_hs_handle.Init.low_power_enable = 0;
pcd_hs_handle.Init.phy_itface = PCD_PHY_ULPI;
- pcd_hs_handle.Init.Sof_enable = 0;
+ pcd_hs_handle.Init.Sof_enable = 1;
pcd_hs_handle.Init.speed = PCD_SPEED_HIGH;
pcd_hs_handle.Init.vbus_sensing_enable = 1;
/* Link The driver to the stack */