add usbd_get_port_speed api to use different config descriptors

This commit is contained in:
sakimisu
2022-11-18 22:26:09 +08:00
parent 9ef2988f6a
commit cf97d5276e
10 changed files with 91 additions and 2 deletions

View File

@@ -116,6 +116,11 @@ int usbd_set_address(const uint8_t addr)
return 0;
}
uint8_t usbd_get_port_speed(const uint8_t port)
{
return USB_SPEED_FULL;
}
int usbd_ep_open(const struct usbd_endpoint_cfg *ep_cfg)
{
uint8_t ep_idx = USB_EP_GET_IDX(ep_cfg->ep_addr);