summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2009-07-06 16:44:57 +0000
committerRafaël Carré <rafael.carre@gmail.com>2009-07-06 16:44:57 +0000
commit03fe562a95a2b4fe4b3e316d3877140c3b4c822f (patch)
treebb27e1bd4c6f64f3526d112e9f7b5659204a27cd /firmware/target/arm/as3525
parentcabd45086a206301302f99eaf80e381498a6e3fc (diff)
downloadrockbox-03fe562a95a2b4fe4b3e316d3877140c3b4c822f.tar.gz
rockbox-03fe562a95a2b4fe4b3e316d3877140c3b4c822f.zip
Sansa AMS: display the virtual led icon on disk transfers
Sansa PP: directly use led() function, remove useless sd_led() Thanks to mc2739 (Michael Chicoine) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21693 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525')
-rw-r--r--firmware/target/arm/as3525/ata_sd_as3525.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/ata_sd_as3525.c b/firmware/target/arm/as3525/ata_sd_as3525.c
index 46f52abf94..96ad8fea76 100644
--- a/firmware/target/arm/as3525/ata_sd_as3525.c
+++ b/firmware/target/arm/as3525/ata_sd_as3525.c
@@ -27,6 +27,7 @@
27#include "config.h" /* for HAVE_MULTIVOLUME & AMS_OF_SIZE */ 27#include "config.h" /* for HAVE_MULTIVOLUME & AMS_OF_SIZE */
28#include "fat.h" 28#include "fat.h"
29#include "thread.h" 29#include "thread.h"
30#include "led.h"
30#include "hotswap.h" 31#include "hotswap.h"
31#include "system.h" 32#include "system.h"
32#include "cpu.h" 33#include "cpu.h"
@@ -619,6 +620,7 @@ static int sd_transfer_sectors(IF_MV2(int drive,) unsigned long start,
619 mutex_lock(&sd_mtx); 620 mutex_lock(&sd_mtx);
620#ifndef BOOTLOADER 621#ifndef BOOTLOADER
621 sd_enable(true); 622 sd_enable(true);
623 led(true);
622#endif 624#endif
623 625
624 if (card_info[drive].initialized <= 0) 626 if (card_info[drive].initialized <= 0)
@@ -742,6 +744,7 @@ static int sd_transfer_sectors(IF_MV2(int drive,) unsigned long start,
742 dma_release(); 744 dma_release();
743 745
744#ifndef BOOTLOADER 746#ifndef BOOTLOADER
747 led(false);
745 sd_enable(false); 748 sd_enable(false);
746#endif 749#endif
747 mutex_unlock(&sd_mtx); 750 mutex_unlock(&sd_mtx);