remove device mount and unmount callback
This commit is contained in:
@@ -511,7 +511,6 @@ static void usbh_hub_events(struct usbh_hub *hub)
|
||||
}
|
||||
|
||||
USB_LOG_INFO("Device on Hub %u, Port %u disconnected\r\n", hub->index, port + 1);
|
||||
usbh_device_unmount_done_callback(child);
|
||||
child->config.config_desc.bNumInterfaces = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -623,7 +623,6 @@ int usbh_enumerate(struct usbh_hubport *hport)
|
||||
}
|
||||
}
|
||||
|
||||
usbh_device_mount_done_callback(hport);
|
||||
errout:
|
||||
if (ret < 0) {
|
||||
usbh_hport_deactivate_ep0(hport);
|
||||
@@ -795,11 +794,3 @@ int lsusb(int argc, char **argv)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
__WEAK void usbh_device_mount_done_callback(struct usbh_hubport *hport)
|
||||
{
|
||||
}
|
||||
|
||||
__WEAK void usbh_device_unmount_done_callback(struct usbh_hubport *hport)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -181,9 +181,6 @@ int usbh_initialize(void);
|
||||
struct usbh_hubport *usbh_find_hubport(uint8_t dev_addr);
|
||||
void *usbh_find_class_instance(const char *devname);
|
||||
|
||||
void usbh_device_mount_done_callback(struct usbh_hubport *hport);
|
||||
void usbh_device_unmount_done_callback(struct usbh_hubport *hport);
|
||||
|
||||
int lsusb(int argc, char **argv);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -241,14 +241,6 @@ int video_test(void)
|
||||
return ret;
|
||||
}
|
||||
|
||||
void usbh_device_mount_done_callback(struct usbh_hubport *hport)
|
||||
{
|
||||
}
|
||||
|
||||
void usbh_device_unmount_done_callback(struct usbh_hubport *hport)
|
||||
{
|
||||
}
|
||||
|
||||
static void usbh_class_test_thread(void *argument)
|
||||
{
|
||||
while (1) {
|
||||
|
||||
Reference in New Issue
Block a user