diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2011-12-15 06:38:28 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2011-12-15 06:38:28 +0000 |
commit | fc8d4b2552b18335420c0549ee7b2dc0b23efac1 (patch) | |
tree | 048ea214deac6747e653b9749f3b503ecf0154b5 /firmware/target/arm/usb-s3c6400x.c | |
parent | 2026c9506cf090b3d0a59f140e0fc4756a792555 (diff) |
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
Diffstat (limited to 'firmware/target/arm/usb-s3c6400x.c')
-rw-r--r-- | firmware/target/arm/usb-s3c6400x.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/usb-s3c6400x.c b/firmware/target/arm/usb-s3c6400x.c index e65395dfd9..3c744dbd24 100644 --- a/firmware/target/arm/usb-s3c6400x.c +++ b/firmware/target/arm/usb-s3c6400x.c @@ -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) |