forked from len0rd/rockbox
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
This commit is contained in:
parent
b96d4f0e34
commit
148a5fb631
1 changed files with 6 additions and 0 deletions
|
@ -364,7 +364,13 @@ 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue