From 7229680227e1b8f06177f3f3085c81e50d8665da Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 30 Aug 2019 10:11:38 -0400 Subject: [PATCH] stm32: Enable usbotg bulk reads during endpoint configuration Signed-off-by: Kevin O'Connor --- src/stm32/usbotg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stm32/usbotg.c b/src/stm32/usbotg.c index 397a2863..35689afa 100644 --- a/src/stm32/usbotg.c +++ b/src/stm32/usbotg.c @@ -298,6 +298,7 @@ usb_reset(void) | (USB_CDC_EP_ACM_SIZE << USB_OTG_DIEPCTL_MPSIZ_Pos)); epo = EPOUT(USB_CDC_EP_BULK_OUT); + epo->DOEPTSIZ = 64 | (1 << USB_OTG_DOEPTSIZ_PKTCNT_Pos); epo->DOEPCTL = ( USB_OTG_DOEPCTL_CNAK | USB_OTG_DOEPCTL_USBAEP | USB_OTG_DOEPCTL_EPENA | (0x02 << USB_OTG_DOEPCTL_EPTYP_Pos) | USB_OTG_DOEPCTL_SD0PID_SEVNFRM