diff --git a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/common/usb_hc.h b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/common/usb_hc.h index a7f09f8a3..6791945a7 100644 --- a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/common/usb_hc.h +++ b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/common/usb_hc.h @@ -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. *