aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/stm32/usbotg.c1
1 files changed, 1 insertions, 0 deletions
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