remove ununsed code
This commit is contained in:
@@ -1160,21 +1160,18 @@ int usbh_submit_urb(struct usbh_urb *urb)
|
|||||||
if (qh == NULL) {
|
if (qh == NULL) {
|
||||||
return -USB_ERR_NOMEM;
|
return -USB_ERR_NOMEM;
|
||||||
}
|
}
|
||||||
urb->hcpriv = qh;
|
|
||||||
break;
|
break;
|
||||||
case USB_ENDPOINT_TYPE_BULK:
|
case USB_ENDPOINT_TYPE_BULK:
|
||||||
qh = ehci_bulk_urb_init(bus, urb, urb->transfer_buffer, urb->transfer_buffer_length);
|
qh = ehci_bulk_urb_init(bus, urb, urb->transfer_buffer, urb->transfer_buffer_length);
|
||||||
if (qh == NULL) {
|
if (qh == NULL) {
|
||||||
return -USB_ERR_NOMEM;
|
return -USB_ERR_NOMEM;
|
||||||
}
|
}
|
||||||
urb->hcpriv = qh;
|
|
||||||
break;
|
break;
|
||||||
case USB_ENDPOINT_TYPE_INTERRUPT:
|
case USB_ENDPOINT_TYPE_INTERRUPT:
|
||||||
qh = ehci_intr_urb_init(bus, urb, urb->transfer_buffer, urb->transfer_buffer_length);
|
qh = ehci_intr_urb_init(bus, urb, urb->transfer_buffer, urb->transfer_buffer_length);
|
||||||
if (qh == NULL) {
|
if (qh == NULL) {
|
||||||
return -USB_ERR_NOMEM;
|
return -USB_ERR_NOMEM;
|
||||||
}
|
}
|
||||||
urb->hcpriv = qh;
|
|
||||||
break;
|
break;
|
||||||
case USB_ENDPOINT_TYPE_ISOCHRONOUS:
|
case USB_ENDPOINT_TYPE_ISOCHRONOUS:
|
||||||
#ifdef CONFIG_USB_EHCI_ISO
|
#ifdef CONFIG_USB_EHCI_ISO
|
||||||
|
|||||||
@@ -113,7 +113,6 @@ struct musb_udc {
|
|||||||
} g_musb_udc;
|
} g_musb_udc;
|
||||||
|
|
||||||
static volatile uint8_t usb_ep0_state = USB_EP0_STATE_SETUP;
|
static volatile uint8_t usb_ep0_state = USB_EP0_STATE_SETUP;
|
||||||
volatile bool zlp_flag = 0;
|
|
||||||
|
|
||||||
/* get current active ep */
|
/* get current active ep */
|
||||||
static uint8_t musb_get_active_ep(void)
|
static uint8_t musb_get_active_ep(void)
|
||||||
@@ -266,12 +265,6 @@ uint8_t usbd_get_port_speed(uint8_t busid)
|
|||||||
return speed;
|
return speed;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t usbd_force_full_speed(const uint8_t port)
|
|
||||||
{
|
|
||||||
HWREGB(USB_BASE + MUSB_POWER_OFFSET) &= ~USB_POWER_HSENAB;
|
|
||||||
return (HWREGB(USB_BASE + MUSB_POWER_OFFSET) & USB_POWER_HSENAB);
|
|
||||||
}
|
|
||||||
|
|
||||||
int usbd_ep_open(uint8_t busid, const struct usb_endpoint_descriptor *ep)
|
int usbd_ep_open(uint8_t busid, const struct usb_endpoint_descriptor *ep)
|
||||||
{
|
{
|
||||||
uint16_t used = 0;
|
uint16_t used = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user