Procházet zdrojové kódy

Merge pull request #1080 from hathach/rx-msc-compliance

Renesas RX reset PID to DATA0 when open endpoint
Ha Thach před 4 roky
rodič
revize
d66d817c38
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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.PIPESEL.WORD  = num;
   USB0.PIPEMAXP.WORD = mps;
   USB0.PIPEMAXP.WORD = mps;
   volatile uint16_t *ctr = get_pipectr(num);
   volatile uint16_t *ctr = get_pipectr(num);
-  *ctr = USB_PIPECTR_ACLRM;
+  *ctr = USB_PIPECTR_ACLRM | USB_PIPECTR_SQCLR;
   *ctr = 0;
   *ctr = 0;
   unsigned cfg = (dir << 4) | epn;
   unsigned cfg = (dir << 4) | epn;
   if (xfer == TUSB_XFER_BULK) {
   if (xfer == TUSB_XFER_BULK) {