diff options
-rw-r--r-- | firmware/drivers/usb/arcotg_dcd.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/firmware/drivers/usb/arcotg_dcd.c b/firmware/drivers/usb/arcotg_dcd.c index 46dc0ca29b..45b31143e6 100644 --- a/firmware/drivers/usb/arcotg_dcd.c +++ b/firmware/drivers/usb/arcotg_dcd.c | |||
@@ -219,8 +219,6 @@ void usb_arcotg_dcd_stop(void) | |||
219 | 219 | ||
220 | void usb_arcotg_dcd_irq(void) | 220 | void usb_arcotg_dcd_irq(void) |
221 | { | 221 | { |
222 | int i; | ||
223 | |||
224 | if (dcd_controller.stopped == true) { | 222 | if (dcd_controller.stopped == true) { |
225 | return; | 223 | return; |
226 | } | 224 | } |
@@ -239,7 +237,7 @@ void usb_arcotg_dcd_irq(void) | |||
239 | memcpy(&dcd_controller.local_setup_buff, | 237 | memcpy(&dcd_controller.local_setup_buff, |
240 | (uint8_t *) &dev_qh[0].setup_buffer, 8); | 238 | (uint8_t *) &dev_qh[0].setup_buffer, 8); |
241 | 239 | ||
242 | /* ack setup packet*/ | 240 | /* ack setup packet */ |
243 | UDC_ENDPTSETUPSTAT = UDC_ENDPTSETUPSTAT; | 241 | UDC_ENDPTSETUPSTAT = UDC_ENDPTSETUPSTAT; |
244 | setup_received_int(&dcd_controller.local_setup_buff); | 242 | setup_received_int(&dcd_controller.local_setup_buff); |
245 | } | 243 | } |
@@ -516,7 +514,6 @@ int usb_arcotg_dcd_enable(struct usb_ep* ep, | |||
516 | unsigned char mult = 0, zlt = 0; | 514 | unsigned char mult = 0, zlt = 0; |
517 | int retval = 0; | 515 | int retval = 0; |
518 | char *val = NULL; /* for debug */ | 516 | char *val = NULL; /* for debug */ |
519 | struct timer t; | ||
520 | 517 | ||
521 | /* catch bogus parameter */ | 518 | /* catch bogus parameter */ |
522 | if (!ep) { | 519 | if (!ep) { |
@@ -662,7 +659,7 @@ int usb_arcotg_dcd_enable(struct usb_ep* ep, | |||
662 | max, zlt, mult); | 659 | max, zlt, mult); |
663 | 660 | ||
664 | /* Init endpoint x at here */ | 661 | /* Init endpoint x at here */ |
665 | ep_setup(ep->ep_num, | 662 | ep_setup(ep->ep_num, |
666 | (unsigned char)(desc->bEndpointAddress & USB_DIR_IN) ? | 663 | (unsigned char)(desc->bEndpointAddress & USB_DIR_IN) ? |
667 | USB_RECV : USB_SEND, | 664 | USB_RECV : USB_SEND, |
668 | (unsigned char)(desc->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK)); | 665 | (unsigned char)(desc->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK)); |