Modifying functions in usb core is related to xhci.

This commit is contained in:
songyanguang 2024-06-24 14:15:33 +08:00
parent 39620c574e
commit 56b8a29888
1 changed files with 9 additions and 0 deletions

View File

@ -108,6 +108,15 @@ int usbh_roothub_control(struct usbh_bus *usb, struct usb_setup_packet *setup, u
*/
int usbh_get_devaddr(struct usbh_hubport *hport);
/**
* @brief get port speed.
*
* @param hport Hub of USB device
* @param port Port index
* @return On success will return speed, and others indicate fail.
*/
uint8_t usbh_get_port_speed(struct usbh_hub *hub, const uint8_t port);
/**
* @brief reconfig endpoint pipe.
*