summaryrefslogtreecommitdiff
path: root/firmware/target/arm/tcc780x/cowond2
diff options
context:
space:
mode:
authorRob Purchase <shotofadds@rockbox.org>2008-03-22 14:51:09 +0000
committerRob Purchase <shotofadds@rockbox.org>2008-03-22 14:51:09 +0000
commit58b5ce2275fdedd9eefda3e33fbf2fb910692dd7 (patch)
tree37ecd5940b6fc0f8461b0322cee5ba640d0f6a2e /firmware/target/arm/tcc780x/cowond2
parenteae6641bdb576857083b7c8c76d2b7d879a9078c (diff)
D2: Fix inverted USB detection.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16746 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/tcc780x/cowond2')
-rw-r--r--firmware/target/arm/tcc780x/cowond2/usb-cowond2.c4
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 @@
#include "kernel.h"
#include "ata.h"
-/* USB detect is GPIOC 26 active low */
+/* USB detect is GPIOC 26 */
inline bool usb_detect(void)
{
- return (GPIOC & 1<<26)?false:true;
+ return (GPIOC & 1<<26);
}
void usb_init_device(void)