diff options
| author | sakumisu <[email protected]> | 2026-04-16 22:02:56 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2026-04-17 10:56:13 +0800 |
| commit | 3bd79e23648ac522ebfe9b17768bce7ea359b4a5 (patch) | |
| tree | 2a09437f513d0e30dd26c3803758584026ba6d85 /core | |
| parent | 963a01f2ee0807650092f9fed382a0e6aa1306a4 (diff) | |
fix(class/hub): remove bus mutex, replace with mq to exit thread
Signed-off-by: sakumisu <[email protected]>
Diffstat (limited to 'core')
| -rw-r--r-- | core/usbh_core.c | 1 | ||||
| -rw-r--r-- | core/usbh_core.h | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/core/usbh_core.c b/core/usbh_core.c index 966bafa5..34f2ab05 100644 --- a/core/usbh_core.c +++ b/core/usbh_core.c @@ -667,7 +667,6 @@ int usbh_deinitialize(uint8_t busid) bus = &g_usbhost_bus[busid]; usbh_hub_deinitialize(bus); - bus->event_handler(bus->busid, USB_HUB_INDEX_ANY, USB_HUB_PORT_ANY, USB_INTERFACE_ANY, USBH_EVENT_DEINIT); usb_slist_remove(&g_bus_head, &bus->list); diff --git a/core/usbh_core.h b/core/usbh_core.h index bc8eab8f..abd193df 100644 --- a/core/usbh_core.h +++ b/core/usbh_core.h @@ -203,7 +203,7 @@ struct usbh_bus { struct usbh_devaddr_map devgen; usb_osal_thread_t hub_thread; usb_osal_mq_t hub_mq; - usb_osal_mutex_t mutex; + usb_osal_sem_t hub_sem; usbh_event_handler_t event_handler; }; |
