reset PID to DATA0 on clear_stall.

This commit is contained in:
MasterPhi 2021-09-10 16:04:47 +02:00
parent 8886de0d8a
commit 22571ec98e
1 changed files with 1 additions and 0 deletions

View File

@ -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)