Przeglądaj źródła

remove device mount and unmount callback

sakimisu 3 lat temu
rodzic
commit
61e82e0eeb
4 zmienionych plików z 1 dodań i 22 usunięć
  1. 0 1
      class/hub/usbh_hub.c
  2. 1 10
      core/usbh_core.c
  3. 0 3
      core/usbh_core.h
  4. 0 8
      demo/usb_host.c

+ 0 - 1
class/hub/usbh_hub.c

@@ -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);
                 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;
                 child->config.config_desc.bNumInterfaces = 0;
             }
             }
         }
         }

+ 1 - 10
core/usbh_core.c

@@ -623,7 +623,6 @@ int usbh_enumerate(struct usbh_hubport *hport)
         }
         }
     }
     }
 
 
-    usbh_device_mount_done_callback(hport);
 errout:
 errout:
     if (ret < 0) {
     if (ret < 0) {
         usbh_hport_deactivate_ep0(hport);
         usbh_hport_deactivate_ep0(hport);
@@ -794,12 +793,4 @@ int lsusb(int argc, char **argv)
     }
     }
 
 
     return 0;
     return 0;
-}
-
-__WEAK void usbh_device_mount_done_callback(struct usbh_hubport *hport)
-{
-}
-
-__WEAK void usbh_device_unmount_done_callback(struct usbh_hubport *hport)
-{
-}
+}

+ 0 - 3
core/usbh_core.h

@@ -181,9 +181,6 @@ int usbh_initialize(void);
 struct usbh_hubport *usbh_find_hubport(uint8_t dev_addr);
 struct usbh_hubport *usbh_find_hubport(uint8_t dev_addr);
 void *usbh_find_class_instance(const char *devname);
 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);
 int lsusb(int argc, char **argv);
 #ifdef __cplusplus
 #ifdef __cplusplus
 }
 }

+ 0 - 8
demo/usb_host.c

@@ -241,14 +241,6 @@ int video_test(void)
     return ret;
     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)
 static void usbh_class_test_thread(void *argument)
 {
 {
     while (1) {
     while (1) {