mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-05-12 11:43:16 -04:00
Fix Yellow & Red in 41caf678fe
Change-Id: If111595271289878097c2a8b30bec3f18390a49c
This commit is contained in:
parent
41caf678fe
commit
d92b42c70f
4 changed files with 3 additions and 7 deletions
|
|
@ -24,6 +24,7 @@
|
|||
#define __USB_DESIGNWARE_H__
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stdbool.h>
|
||||
#include "config.h"
|
||||
#include "cpu.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -295,8 +295,6 @@ void usb_drv_ep_init(const struct usb_drv_ep_alloc_ctx* ctx, int ep)
|
|||
else
|
||||
RXCON(endp) = (epnum << 8) | RXEPEN | RXNAK | RXACKINTEN | RXCFINTE | RXERRINTEN;
|
||||
EN_INT |= 1 << (epnum + 7);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void usb_drv_ep_deinit(const struct usb_drv_ep_alloc_ctx* ctx, int ep)
|
||||
|
|
@ -307,7 +305,6 @@ void usb_drv_ep_deinit(const struct usb_drv_ep_alloc_ctx* ctx, int ep)
|
|||
|
||||
/* disable interrupt from this endpoint */
|
||||
EN_INT &= ~(1 << (num + 7));
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Set the address (usually it's in a register).
|
||||
|
|
|
|||
|
|
@ -1496,7 +1496,7 @@ void usb_drv_ep_init(const struct usb_drv_ep_alloc_ctx* ctx, int ep)
|
|||
|
||||
int num = EP_NUM(ep);
|
||||
int dir = EP_DIR(ep);
|
||||
return tnetv_gadget_ep_enable(num, dir == DIR_IN);
|
||||
tnetv_gadget_ep_enable(num, dir == DIR_IN);
|
||||
}
|
||||
|
||||
void usb_drv_ep_deinit(const struct usb_drv_ep_alloc_ctx* ctx, int ep)
|
||||
|
|
@ -1505,5 +1505,5 @@ void usb_drv_ep_deinit(const struct usb_drv_ep_alloc_ctx* ctx, int ep)
|
|||
|
||||
int num = EP_NUM(ep);
|
||||
int dir = EP_DIR(ep);
|
||||
return tnetv_gadget_ep_disable(num, dir == DIR_IN);
|
||||
tnetv_gadget_ep_disable(num, dir == DIR_IN);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1204,7 +1204,6 @@ void usb_drv_ep_init(const struct usb_drv_ep_alloc_ctx* ctx, int ep)
|
|||
REG_USB_INTRINE |= USB_INTR_EP(num);
|
||||
else
|
||||
REG_USB_INTROUTE |= USB_INTR_EP(num);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void usb_drv_ep_deinit(const struct usb_drv_ep_alloc_ctx* ctx, int ep)
|
||||
|
|
@ -1218,5 +1217,4 @@ void usb_drv_ep_deinit(const struct usb_drv_ep_alloc_ctx* ctx, int ep)
|
|||
REG_USB_INTRINE &= ~USB_INTR_EP(num);
|
||||
else
|
||||
REG_USB_INTROUTE &= ~USB_INTR_EP(num);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue