summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-09-08 17:56:22 +0700
committerhathach <[email protected]>2021-09-08 17:56:22 +0700
commitd077574097e4ab992f8b7c732341250797acef4f (patch)
tree998896f713bc9bef0866b6b9e4575f70527b5258 /src
parentc5e6e87d1384d1b544a3091b27f8e040dd64fb09 (diff)
reset PID to DATA0 when open endpoint
Diffstat (limited to 'src')
-rw-r--r--src/portable/renesas/usba/dcd_usba.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portable/renesas/usba/dcd_usba.c b/src/portable/renesas/usba/dcd_usba.c
index 8e2e3dc26..92e29f9bf 100644
--- a/src/portable/renesas/usba/dcd_usba.c
+++ b/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) {