mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-14 18:38:55 +00:00
V1.0.5
This commit is contained in:
@@ -948,12 +948,14 @@ int usbd_npinep_rewrite(const uint8_t ep)
|
||||
/* (1.4) Clear Global In NP NAK in Shared FIFO for non periodic ep */
|
||||
AIC_UDC_REG->usbdevfunc |= USBDEVFUNC_CGNPINNAK;
|
||||
|
||||
/* (2) reopen current ep */
|
||||
usbd_ep_open(&g_aic_udc.in_ep_desc[ep]);
|
||||
if (pending_map & (1 << ep)) {
|
||||
/* (2) reopen current ep */
|
||||
usbd_ep_open(&g_aic_udc.in_ep_desc[ep]);
|
||||
|
||||
/* (3) rewrite current ep */
|
||||
usbd_ep_start_write(ep, g_aic_udc.in_ep[ep].xfer_buf,
|
||||
g_aic_udc.in_ep[ep].xfer_len);
|
||||
/* (3) rewrite current ep */
|
||||
usbd_ep_start_write(ep, g_aic_udc.in_ep[ep].xfer_buf,
|
||||
g_aic_udc.in_ep[ep].xfer_len);
|
||||
}
|
||||
|
||||
/* (4) reopen & rewrite other ep, let's receive ep mismtach interrupt */
|
||||
for (i = 0U; i < USB_NUM_BIDIR_ENDPOINTS; i++) {
|
||||
|
||||
Reference in New Issue
Block a user