add mutex for ep0 urb to avoid multithreading

This commit is contained in:
sakumisu
2023-11-22 21:44:51 +08:00
parent b7d02b7125
commit 50e1cd3471
3 changed files with 8 additions and 0 deletions

View File

@@ -111,6 +111,7 @@ struct usbh_hubport {
#endif
struct usb_endpoint_descriptor ep0;
struct usbh_urb ep0_urb;
usb_osal_mutex_t mutex;
};
struct usbh_hub {