Explorar o código

reset PID to DATA0 when open endpoint

hathach %!s(int64=4) %!d(string=hai) anos
pai
achega
d077574097
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/portable/renesas/usba/dcd_usba.c

+ 1 - 1
src/portable/renesas/usba/dcd_usba.c

@@ -711,7 +711,7 @@ bool dcd_edpt_open(uint8_t rhport, tusb_desc_endpoint_t const * ep_desc)
   USB0.PIPESEL.WORD  = num;
   USB0.PIPEMAXP.WORD = mps;
   volatile uint16_t *ctr = get_pipectr(num);
-  *ctr = USB_PIPECTR_ACLRM;
+  *ctr = USB_PIPECTR_ACLRM | USB_PIPECTR_SQCLR;
   *ctr = 0;
   unsigned cfg = (dir << 4) | epn;
   if (xfer == TUSB_XFER_BULK) {