|
|
@@ -152,6 +152,7 @@ static int _usbh_hub_clear_feature(struct usbh_hub *hub, uint8_t port, uint8_t f
|
|
|
return usbh_control_transfer(hub->parent, setup, NULL);
|
|
|
}
|
|
|
|
|
|
+#if CONFIG_USBHOST_MAX_EXTHUBS > 0
|
|
|
static int _usbh_hub_set_depth(struct usbh_hub *hub, uint16_t depth)
|
|
|
{
|
|
|
struct usb_setup_packet *setup;
|
|
|
@@ -167,7 +168,6 @@ static int _usbh_hub_set_depth(struct usbh_hub *hub, uint16_t depth)
|
|
|
return usbh_control_transfer(hub->parent, setup, NULL);
|
|
|
}
|
|
|
|
|
|
-#if CONFIG_USBHOST_MAX_EXTHUBS > 0
|
|
|
static int parse_hub_descriptor(struct usb_hub_descriptor *desc, uint16_t length)
|
|
|
{
|
|
|
(void)length;
|
|
|
@@ -270,6 +270,7 @@ int usbh_hub_clear_feature(struct usbh_hub *hub, uint8_t port, uint8_t feature)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+#if CONFIG_USBHOST_MAX_EXTHUBS > 0
|
|
|
static int usbh_hub_set_depth(struct usbh_hub *hub, uint16_t depth)
|
|
|
{
|
|
|
struct usb_setup_packet roothub_setup;
|
|
|
@@ -288,7 +289,6 @@ static int usbh_hub_set_depth(struct usbh_hub *hub, uint16_t depth)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-#if CONFIG_USBHOST_MAX_EXTHUBS > 0
|
|
|
static void hub_int_complete_callback(void *arg, int nbytes)
|
|
|
{
|
|
|
struct usbh_hub *hub = (struct usbh_hub *)arg;
|