enum device with disposable thread, do not block hub thread

This commit is contained in:
sakimisu
2023-07-05 22:39:47 +08:00
parent 0d916af297
commit 7574063e94
9 changed files with 44 additions and 40 deletions

View File

@@ -906,17 +906,6 @@ void USBH_IRQHandler(void)
g_musb_hcd.port_csc = 1;
g_musb_hcd.port_pec = 1;
g_musb_hcd.port_pe = 0;
for (uint8_t index = 0; index < CONFIG_USBHOST_PIPE_NUM; index++) {
for (uint8_t j = 0; j < 2; j++) {
struct musb_pipe *pipe = &g_musb_hcd.pipe_pool[index][j];
struct usbh_urb *urb = pipe->urb;
if (pipe->waiter) {
pipe->waiter = false;
urb->errorcode = -ESHUTDOWN;
usb_osal_sem_give(pipe->waitsem);
}
}
}
usbh_roothub_thread_wakeup(1);
}