mirror of https://github.com/Desuuuu/klipper.git
stm32: Enable usbotg bulk reads during endpoint configuration
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
f21f66a31f
commit
7229680227
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue