diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-08-30 10:11:38 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-08-30 12:15:32 -0400 |
commit | 7229680227e1b8f06177f3f3085c81e50d8665da (patch) | |
tree | 09879ae4bbaf0fc9b2ed537b49d2d4a15792987f /src/stm32/usbotg.c | |
parent | f21f66a31f985813aa5e1bd9e6aac296f996e291 (diff) | |
download | kutter-7229680227e1b8f06177f3f3085c81e50d8665da.tar.gz kutter-7229680227e1b8f06177f3f3085c81e50d8665da.tar.xz kutter-7229680227e1b8f06177f3f3085c81e50d8665da.zip |
stm32: Enable usbotg bulk reads during endpoint configuration
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stm32/usbotg.c')
-rw-r--r-- | src/stm32/usbotg.c | 1 |
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 |