fix pipe param type in usbh_hport_activate_epx
This commit is contained in:
@@ -382,7 +382,7 @@ int usbh_hport_deactivate_ep0(struct usbh_hubport *hport)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int usbh_hport_activate_epx(usbh_pipe_t pipe, struct usbh_hubport *hport, struct usb_endpoint_descriptor *ep_desc)
|
int usbh_hport_activate_epx(usbh_pipe_t *pipe, struct usbh_hubport *hport, struct usb_endpoint_descriptor *ep_desc)
|
||||||
{
|
{
|
||||||
struct usbh_endpoint_cfg ep_cfg = { 0 };
|
struct usbh_endpoint_cfg ep_cfg = { 0 };
|
||||||
|
|
||||||
@@ -784,14 +784,20 @@ int lsusb(int argc, char **argv)
|
|||||||
usb_slist_for_each(i, &hub_class_head)
|
usb_slist_for_each(i, &hub_class_head)
|
||||||
{
|
{
|
||||||
struct usbh_hub *hub = usb_slist_entry(i, struct usbh_hub, list);
|
struct usbh_hub *hub = usb_slist_entry(i, struct usbh_hub, list);
|
||||||
|
|
||||||
|
if (hub->is_roothub) {
|
||||||
|
USB_LOG_RAW("/: Hub %02u, ports=%u, is roothub\r\n", hub->index, hub->hub_desc.bNbrPorts);
|
||||||
|
} else {
|
||||||
|
USB_LOG_RAW("/: Hub %02u, ports=%u, mounted on Hub %02u:Port %u\r\n",
|
||||||
|
hub->index,
|
||||||
|
hub->hub_desc.bNbrPorts,
|
||||||
|
hub->parent->parent->index,
|
||||||
|
hub->parent->port);
|
||||||
|
}
|
||||||
|
|
||||||
for (uint8_t port = 0; port < hub->hub_desc.bNbrPorts; port++) {
|
for (uint8_t port = 0; port < hub->hub_desc.bNbrPorts; port++) {
|
||||||
hport = &hub->child[port];
|
hport = &hub->child[port];
|
||||||
if (hport->connected) {
|
if (hport->connected) {
|
||||||
USB_LOG_RAW("/: Hub %02u,VID:PID 0x%04x:0x%04x\r\n",
|
|
||||||
hub->index,
|
|
||||||
hport->device_desc.idVendor,
|
|
||||||
hport->device_desc.idProduct);
|
|
||||||
|
|
||||||
for (uint8_t i = 0; i < hport->config.config_desc.bNumInterfaces; i++) {
|
for (uint8_t i = 0; i < hport->config.config_desc.bNumInterfaces; i++) {
|
||||||
if (hport->config.intf[i].class_driver->driver_name) {
|
if (hport->config.intf[i].class_driver->driver_name) {
|
||||||
USB_LOG_RAW(" |__Port %u,Port addr:0x%02x,If %u,ClassDriver=%s\r\n",
|
USB_LOG_RAW(" |__Port %u,Port addr:0x%02x,If %u,ClassDriver=%s\r\n",
|
||||||
|
|||||||
@@ -163,12 +163,12 @@ struct usbh_hub {
|
|||||||
usb_slist_t hub_event_list;
|
usb_slist_t hub_event_list;
|
||||||
};
|
};
|
||||||
|
|
||||||
int usbh_hport_activate_epx(usbh_pipe_t pipe, struct usbh_hubport *hport, struct usb_endpoint_descriptor *ep_desc);
|
int usbh_hport_activate_epx(usbh_pipe_t *pipe, struct usbh_hubport *hport, struct usb_endpoint_descriptor *ep_desc);
|
||||||
|
|
||||||
/* usb host transfer wrapper */
|
/* usb host transfer wrapper */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Submit an bulk transfer to an endpoint.
|
* @brief Submit an control transfer to an endpoint.
|
||||||
* This is a blocking method; this method will not return until the transfer has completed.
|
* This is a blocking method; this method will not return until the transfer has completed.
|
||||||
* Default timeout is 500ms.
|
* Default timeout is 500ms.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user