diff options
author | Rob Purchase <shotofadds@rockbox.org> | 2008-03-22 14:51:09 +0000 |
---|---|---|
committer | Rob Purchase <shotofadds@rockbox.org> | 2008-03-22 14:51:09 +0000 |
commit | 58b5ce2275fdedd9eefda3e33fbf2fb910692dd7 (patch) | |
tree | 37ecd5940b6fc0f8461b0322cee5ba640d0f6a2e | |
parent | eae6641bdb576857083b7c8c76d2b7d879a9078c (diff) | |
download | rockbox-58b5ce2275fdedd9eefda3e33fbf2fb910692dd7.tar.gz rockbox-58b5ce2275fdedd9eefda3e33fbf2fb910692dd7.zip |
D2: Fix inverted USB detection.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16746 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/target/arm/tcc780x/cowond2/usb-cowond2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/tcc780x/cowond2/usb-cowond2.c b/firmware/target/arm/tcc780x/cowond2/usb-cowond2.c index 6ec903b917..dbab718a7a 100644 --- a/firmware/target/arm/tcc780x/cowond2/usb-cowond2.c +++ b/firmware/target/arm/tcc780x/cowond2/usb-cowond2.c | |||
@@ -23,10 +23,10 @@ | |||
23 | #include "kernel.h" | 23 | #include "kernel.h" |
24 | #include "ata.h" | 24 | #include "ata.h" |
25 | 25 | ||
26 | /* USB detect is GPIOC 26 active low */ | 26 | /* USB detect is GPIOC 26 */ |
27 | inline bool usb_detect(void) | 27 | inline bool usb_detect(void) |
28 | { | 28 | { |
29 | return (GPIOC & 1<<26)?false:true; | 29 | return (GPIOC & 1<<26); |
30 | } | 30 | } |
31 | 31 | ||
32 | void usb_init_device(void) | 32 | void usb_init_device(void) |