1
0
Fork 0
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:
Rafaël Carré 2011-12-15 06:38:28 +00:00
parent 2026c9506c
commit fc8d4b2552

View file

@ -321,15 +321,15 @@ void usb_drv_set_test_mode(int mode)
bool usb_drv_stalled(int endpoint, bool in) 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) void usb_drv_stall(int endpoint, bool stall, bool in)
{ {
if (stall) if (stall)
DEPCTL(endpoint, !in) |= DEPCTL_naksts; DEPCTL(endpoint, !in) |= DEPCTL_stall;
else else
DEPCTL(endpoint, !in) &= ~DEPCTL_naksts; DEPCTL(endpoint, !in) &= ~DEPCTL_stall;
} }
void usb_drv_init(void) void usb_drv_init(void)