summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-03-27 16:53:08 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-03-27 16:53:08 +0000
commit148a5fb6317efda2314540c4c66deaf0b33e7dde (patch)
tree729bf641d508107003cb250e412e88ac886e820d /firmware
parentb96d4f0e347f870ea016c3666e2b72417623e5cc (diff)
downloadrockbox-148a5fb6317efda2314540c4c66deaf0b33e7dde.tar.gz
rockbox-148a5fb6317efda2314540c4c66deaf0b33e7dde.tar.bz2
rockbox-148a5fb6317efda2314540c4c66deaf0b33e7dde.zip
Fuzev2: µSD detect pin is A2 like Clip+, but the meaning is reversed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25353 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/as3525/sd-as3525v2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/sd-as3525v2.c b/firmware/target/arm/as3525/sd-as3525v2.c
index 44ac731133..9dd1d7e7e6 100644
--- a/firmware/target/arm/as3525/sd-as3525v2.c
+++ b/firmware/target/arm/as3525/sd-as3525v2.c
@@ -364,8 +364,14 @@ void INT_NAND(void)
static inline bool card_detect_target(void)
{
#if defined(HAVE_MULTIDRIVE)
+#if defined(SANSA_FUZEV2)
+ return GPIOA_PIN(2);
+#elif defined(SANSA_CLIPPLUS)
return !(GPIOA_PIN(2));
#else
+#error "microSD pin not defined for your target"
+#endif
+#else
return false;
#endif
}