forked from len0rd/rockbox
usb-s3c6400: fix error introduced r31222
0x00200000 is DEPCTL_stall, not DEPCTL_naksts the function names should have been a strong indication.. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31265 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2026c9506c
commit
fc8d4b2552
1 changed files with 3 additions and 3 deletions
|
|
@ -321,15 +321,15 @@ void usb_drv_set_test_mode(int mode)
|
|||
|
||||
bool usb_drv_stalled(int endpoint, bool in)
|
||||
{
|
||||
return DEPCTL(endpoint, !in) & DEPCTL_naksts;
|
||||
return DEPCTL(endpoint, !in) & DEPCTL_stall;
|
||||
}
|
||||
|
||||
void usb_drv_stall(int endpoint, bool stall, bool in)
|
||||
{
|
||||
if (stall)
|
||||
DEPCTL(endpoint, !in) |= DEPCTL_naksts;
|
||||
DEPCTL(endpoint, !in) |= DEPCTL_stall;
|
||||
else
|
||||
DEPCTL(endpoint, !in) &= ~DEPCTL_naksts;
|
||||
DEPCTL(endpoint, !in) &= ~DEPCTL_stall;
|
||||
}
|
||||
|
||||
void usb_drv_init(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue