forked from len0rd/rockbox
Fix yellow, already assign values for various S5L8702 defines
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28801 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
70447b529c
commit
40d640eb47
1 changed files with 5 additions and 5 deletions
|
@ -258,7 +258,7 @@ void INT_USB_FUNC(void)
|
||||||
if (!i)
|
if (!i)
|
||||||
{
|
{
|
||||||
DOEPTSIZ0 = 0x20080040;
|
DOEPTSIZ0 = 0x20080040;
|
||||||
DOEPDMA0 = (uint32_t)&ctrlreq;
|
DOEPDMA0 = &ctrlreq;
|
||||||
DOEPCTL0 |= 0x84000000;
|
DOEPCTL0 |= 0x84000000;
|
||||||
}
|
}
|
||||||
DOEPINT(i) = epints;
|
DOEPINT(i) = epints;
|
||||||
|
@ -286,12 +286,12 @@ static void ep_send(int ep, const void *ptr, int length)
|
||||||
if (!length)
|
if (!length)
|
||||||
{
|
{
|
||||||
DIEPTSIZ(ep) = 1 << 19; /* one empty packet */
|
DIEPTSIZ(ep) = 1 << 19; /* one empty packet */
|
||||||
DIEPDMA(ep) = 0x10000000; /* dummy address */
|
DIEPDMA(ep) = NULL;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DIEPTSIZ(ep) = length | (packets << 19);
|
DIEPTSIZ(ep) = length | (packets << 19);
|
||||||
DIEPDMA(ep) = (uint32_t)ptr;
|
DIEPDMA(ep) = ptr;
|
||||||
}
|
}
|
||||||
clean_dcache();
|
clean_dcache();
|
||||||
DIEPCTL(ep) |= 0x84000000; /* EPx OUT ENABLE CLEARNAK */
|
DIEPCTL(ep) |= 0x84000000; /* EPx OUT ENABLE CLEARNAK */
|
||||||
|
@ -308,12 +308,12 @@ static void ep_recv(int ep, void *ptr, int length)
|
||||||
if (!length)
|
if (!length)
|
||||||
{
|
{
|
||||||
DOEPTSIZ(ep) = 1 << 19; /* one empty packet */
|
DOEPTSIZ(ep) = 1 << 19; /* one empty packet */
|
||||||
DOEPDMA(ep) = 0x10000000; /* dummy address */
|
DOEPDMA(ep) = NULL;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DOEPTSIZ(ep) = length | (packets << 19);
|
DOEPTSIZ(ep) = length | (packets << 19);
|
||||||
DOEPDMA(ep) = (uint32_t)ptr;
|
DOEPDMA(ep) = ptr;
|
||||||
}
|
}
|
||||||
clean_dcache();
|
clean_dcache();
|
||||||
DOEPCTL(ep) |= 0x84000000; /* EPx OUT ENABLE CLEARNAK */
|
DOEPCTL(ep) |= 0x84000000; /* EPx OUT ENABLE CLEARNAK */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue