summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/target/arm/usb-s3c6400x.c6
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)