summaryrefslogtreecommitdiffstats
path: root/uisimulator/common
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2007-08-12 19:49:03 +0000
committerNils Wallménius <nils@rockbox.org>2007-08-12 19:49:03 +0000
commitf28da1a35a6403b153f93f66e3d96e485f89c363 (patch)
tree760d0c286a65042e18e2165ff555be0d40e80558 /uisimulator/common
parent90c40b7fea0275e212addf3ae6ac6979f5b4585b (diff)
downloadrockbox-f28da1a35a6403b153f93f66e3d96e485f89c363.tar.gz
rockbox-f28da1a35a6403b153f93f66e3d96e485f89c363.tar.bz2
rockbox-f28da1a35a6403b153f93f66e3d96e485f89c363.zip
Enable a lot more features for simulators and add stubs where necessary, simulators should now work with identical lng and voice files as the respective target
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14299 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/common')
-rw-r--r--uisimulator/common/stubs.c104
1 files changed, 104 insertions, 0 deletions
diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c
index 5cc312a354..69daa515b0 100644
--- a/uisimulator/common/stubs.c
+++ b/uisimulator/common/stubs.c
@@ -44,11 +44,18 @@ int fat_startsector(void)
return 63;
}
+bool fat_ismounted(int volume)
+{
+ (void)volume;
+ return true;
+}
+
int ata_write_sectors(IF_MV2(int drive,)
unsigned long start,
int count,
const void* buf)
{
+ IF_MV((void)drive;)
int i;
for (i=0; i<count; i++ ) {
@@ -70,6 +77,7 @@ int ata_read_sectors(IF_MV2(int drive,)
int count,
void* buf)
{
+ IF_MV((void)drive;)
int i;
for (i=0; i<count; i++ ) {
@@ -105,6 +113,10 @@ void ata_spindown(int s)
(void)s;
}
+void rtc_init(void)
+{
+}
+
int rtc_read(int address)
{
return address ^ 0x55;
@@ -139,11 +151,103 @@ int rtc_write_datetime(unsigned char* buf)
return 0;
}
+#ifdef HAVE_RTC_ALARM
+void rtc_get_alarm(int *h, int *m)
+{
+ *h = 11;
+ *m = 55;
+}
+
+void rtc_set_alarm(int h, int m)
+{
+ (void)h;
+ (void)m;
+}
+
+bool rtc_enable_alarm(bool enable)
+{
+ return enable;
+}
+
+bool rtc_check_alarm_started(bool release_alarm)
+{
+ return release_alarm;
+}
+
+bool rtc_check_alarm_flag(void)
+{
+ return true;
+}
+#endif
+
+#ifdef HAVE_HEADPHONE_DETECTION
+bool headphones_inserted(void)
+{
+ return true;
+}
+#endif
+
+#ifdef HAVE_LCD_ENABLE
+bool lcd_enabled(void)
+{
+ return true;
+}
+#endif
+
+bool charging_state(void)
+{
+ return false;
+}
+
+bool charger_inserted(void)
+{
+ return false;
+}
+
+#ifdef HAVE_SPDIF_POWER
+void spdif_power_enable(bool on)
+{
+ (void)on;
+}
+
+bool spdif_powered(void)
+{
+ return false;
+}
+#endif
+
bool is_new_player(void)
{
return having_new_lcd;
}
+#ifdef HAVE_USB_POWER
+bool usb_powered(void)
+{
+ return false;
+}
+
+#if CONFIG_CHARGING
+bool usb_charging_enable(bool on)
+{
+ (void)on;
+ return false;
+}
+#endif
+#endif
+
+bool usb_inserted(void)
+{
+ return false;
+}
+
+#ifdef HAVE_REMOTE_LCD_TICKING
+void lcd_remote_emireduce(bool state)
+{
+ (void)state;
+}
+#endif
+
void lcd_set_contrast( int x )
{
(void)x;