diff options
Diffstat (limited to 'firmware/target/arm/as3525/ata_sd_as3525.c')
-rw-r--r-- | firmware/target/arm/as3525/ata_sd_as3525.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/firmware/target/arm/as3525/ata_sd_as3525.c b/firmware/target/arm/as3525/ata_sd_as3525.c index fdb39f34c2..f13f2f868d 100644 --- a/firmware/target/arm/as3525/ata_sd_as3525.c +++ b/firmware/target/arm/as3525/ata_sd_as3525.c | |||
@@ -137,6 +137,16 @@ static inline void mci_delay(void) | |||
137 | } while (--i); | 137 | } while (--i); |
138 | } | 138 | } |
139 | 139 | ||
140 | |||
141 | static inline bool card_detect_target(void) | ||
142 | { | ||
143 | #if defined(HAVE_MULTIDRIVE) | ||
144 | return !(GPIOA_PIN(2)); | ||
145 | #else | ||
146 | return false; | ||
147 | #endif | ||
148 | } | ||
149 | |||
140 | #ifdef HAVE_HOTSWAP | 150 | #ifdef HAVE_HOTSWAP |
141 | static int sd1_oneshot_callback(struct timeout *tmo) | 151 | static int sd1_oneshot_callback(struct timeout *tmo) |
142 | { | 152 | { |
@@ -872,15 +882,6 @@ tCardInfo *card_get_info_target(int card_no) | |||
872 | return &card_info[card_no]; | 882 | return &card_info[card_no]; |
873 | } | 883 | } |
874 | 884 | ||
875 | bool card_detect_target(void) | ||
876 | { | ||
877 | #if defined(HAVE_MULTIDRIVE) | ||
878 | return !(GPIOA_PIN(2)); | ||
879 | #else | ||
880 | return false; | ||
881 | #endif | ||
882 | } | ||
883 | |||
884 | #ifdef HAVE_HOTSWAP | 885 | #ifdef HAVE_HOTSWAP |
885 | void card_enable_monitoring_target(bool on) | 886 | void card_enable_monitoring_target(bool on) |
886 | { | 887 | { |