Merge pull request #1009 from openmv/ep0_fix

Fix ep0_mps on the M4.
This commit is contained in:
Ibrahim Abd Elkader 2020-11-28 23:14:34 +02:00 committed by GitHub
commit bfd6c4a222
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -281,7 +281,7 @@ USBD_StatusTypeDef USBD_LL_Init (USBD_HandleTypeDef *pdev)
hpcd.Instance = USB_OTG_FS;
hpcd.Init.dev_endpoints = 3;
hpcd.Init.use_dedicated_ep1 = 0;
hpcd.Init.ep0_mps = DEP0CTL_MPS_64;
hpcd.Init.ep0_mps = 0x40;
hpcd.Init.dma_enable = 0;
hpcd.Init.low_power_enable = 0;
hpcd.Init.phy_itface = PCD_PHY_EMBEDDED;