summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMasterPhi <[email protected]>2021-09-10 16:04:47 +0200
committerMasterPhi <[email protected]>2021-09-10 16:04:47 +0200
commit22571ec98ef89a76239b27c86cbdac3db3c42f09 (patch)
tree132dd8e9ed1736892d8a3def2ea6b15ced5f0b07 /src
parent8886de0d8a14daa70d1fcf4101e3fdeda12a1b26 (diff)
reset PID to DATA0 on clear_stall.
Diffstat (limited to 'src')
-rw-r--r--src/portable/nuvoton/nuc121/dcd_nuc121.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/portable/nuvoton/nuc121/dcd_nuc121.c b/src/portable/nuvoton/nuc121/dcd_nuc121.c
index d101550b6..5dfc77bb7 100644
--- a/src/portable/nuvoton/nuc121/dcd_nuc121.c
+++ b/src/portable/nuvoton/nuc121/dcd_nuc121.c
@@ -381,6 +381,7 @@ void dcd_edpt_clear_stall(uint8_t rhport, uint8_t ep_addr)
(void) rhport;
USBD_EP_T *ep = ep_entry(ep_addr, false);
ep->CFG |= USBD_CFG_CSTALL_Msk;
+ ep->CFG &=~USBD_CFG_DSQSYNC_Msk;
}
void dcd_int_handler(uint8_t rhport)