1
0
Fork 0
forked from len0rd/rockbox

Remove unused card_detect(), and make card_detect_target() static inline in each sd driver.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23757 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2009-11-26 00:51:09 +00:00
parent 82bbd1ed9f
commit ee7cf6c63c
7 changed files with 42 additions and 50 deletions

View file

@ -205,9 +205,13 @@ static void sd_card_mux(int card_no)
#ifdef HAVE_HOTSWAP
bool card_detect_target(void)
static inline bool card_detect_target(void)
{
#ifdef HAVE_HOTSWAP
return (GPIOB & (1<<26)) == 0; /* low active */
#else
return false;
#endif
}
void card_enable_monitoring_target(bool on)
@ -261,11 +265,6 @@ bool sd_present(IF_MD_NONVOID(int card_no))
#else
bool card_detect_target(void)
{
return false;
}
bool sd_removable(IF_MD_NONVOID(int card_no))
{
#ifndef HAVE_MULTIDRIVE