From fc8d4b2552b18335420c0549ee7b2dc0b23efac1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Thu, 15 Dec 2011 06:38:28 +0000 Subject: [PATCH] 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 --- firmware/target/arm/usb-s3c6400x.c | 6 +++--- 1 file 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)