summaryrefslogtreecommitdiffstats
path: root/uisimulator
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2008-07-03 13:37:57 +0000
committerBertrik Sikken <bertrik@sikken.nl>2008-07-03 13:37:57 +0000
commitf4d4a6ab60960385b99fd43d8e1d0213bdf1aec3 (patch)
treea17522b121489fe8c52c40bd03f1ede2ccfcf8ab /uisimulator
parent6fd40a57b81484a57f1c5a8ddbd48855a89e660f (diff)
downloadrockbox-f4d4a6ab60960385b99fd43d8e1d0213bdf1aec3.tar.gz
rockbox-f4d4a6ab60960385b99fd43d8e1d0213bdf1aec3.tar.bz2
rockbox-f4d4a6ab60960385b99fd43d8e1d0213bdf1aec3.zip
Implement FS#8947 - Add a stub in the simulator for ata_disk_is_active. This make it possible to clean up some #ifdef SIMULATOR macros.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17927 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/common/stubs.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c
index 7bf3a4f546..7b630eb25b 100644
--- a/uisimulator/common/stubs.c
+++ b/uisimulator/common/stubs.c
@@ -33,6 +33,7 @@
#include "ata.h" /* for volume definitions */
extern char having_new_lcd;
+static bool ata_spinning = false;
#if CONFIG_CODEC != SWCODEC
void audio_set_buffer_margin(int seconds)
@@ -108,6 +109,7 @@ void ata_flush(void)
void ata_spin(void)
{
+ ata_spinning = true;
}
void ata_sleep(void)
@@ -115,9 +117,15 @@ void ata_sleep(void)
DEBUGF("ata_sleep()\n");
}
+bool ata_disk_is_active(void)
+{
+ return ata_spinning;
+}
+
void ata_spindown(int s)
{
(void)s;
+ ata_spinning = false;
}
void rtc_init(void)