diff options
| author | Links0617 <[email protected]> | 2026-09-20 14:52:45 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2026-09-20 16:37:04 +0800 |
| commit | 5fc6eae24e154713af4e471e6e45a9841eb7563f (patch) | |
| tree | 1891a3aff2064e42d2f491184128d76040b56366 | |
| parent | 5964438178c1fc7ec0c224e43ec980d4b612878a (diff) | |
fix(port/wch): fixed a bug
| -rw-r--r-- | port/wch/usbfs/usb_hc_usbfs.c | 1 | ||||
| -rw-r--r-- | port/wch/usbhs/usb_hc_usbhs.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/port/wch/usbfs/usb_hc_usbfs.c b/port/wch/usbfs/usb_hc_usbfs.c index 652474a4..9b5c3feb 100644 --- a/port/wch/usbfs/usb_hc_usbfs.c +++ b/port/wch/usbfs/usb_hc_usbfs.c @@ -88,7 +88,6 @@ static struct usbfs_pipe *usbfs_pipe_alloc(struct usbh_bus *bus, struct usbh_urb g_usbfs_hcd[bus->hcd.hcd_id].pipe_pool[chidx].interval = 0; } - usb_osal_sem_reset(g_usbfs_hcd[bus->hcd.hcd_id].pipe_pool[chidx].waitsem); memset(&g_usbfs_hcd[bus->hcd.hcd_id].pipe_pool[chidx].xfer, 0, sizeof(usbfs_xfer_t)); g_usbfs_hcd[bus->hcd.hcd_id].pipe_pool[chidx].urb = urb; if (g_usbfs_hcd[bus->hcd.hcd_id].pipe_list[type] == NULL) { diff --git a/port/wch/usbhs/usb_hc_usbhs.c b/port/wch/usbhs/usb_hc_usbhs.c index fbff90c7..93c09705 100644 --- a/port/wch/usbhs/usb_hc_usbhs.c +++ b/port/wch/usbhs/usb_hc_usbhs.c @@ -135,7 +135,6 @@ static struct usbhs_pipe *usbhs_pipe_alloc(struct usbh_bus *bus, struct usbh_urb g_usbhs_hcd[bus->hcd.hcd_id].pipe_pool[chidx].interval = 0; } - usb_osal_sem_reset(g_usbhs_hcd[bus->hcd.hcd_id].pipe_pool[chidx].waitsem); memset(&g_usbhs_hcd[bus->hcd.hcd_id].pipe_pool[chidx].xfer, 0, sizeof(usbhs_xfer_t)); g_usbhs_hcd[bus->hcd.hcd_id].pipe_pool[chidx].urb = urb; if (g_usbhs_hcd[bus->hcd.hcd_id].pipe_list[type] == NULL) { |
