summaryrefslogtreecommitdiff
path: root/firmware/drivers
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 /firmware/drivers
parent90c40b7fea0275e212addf3ae6ac6979f5b4585b (diff)
downloadrockbox-f28da1a35a6403b153f93f66e3d96e485f89c363.tar.gz
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 'firmware/drivers')
-rw-r--r--firmware/drivers/button.c3
-rw-r--r--firmware/drivers/power.c5
2 files changed, 3 insertions, 5 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index 715d4d3025..7b5fd26f3b 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -37,6 +37,7 @@
37#include "lcd-remote.h" 37#include "lcd-remote.h"
38#endif 38#endif
39 39
40#ifndef SIMULATOR
40#if 0 41#if 0
41/* Older than MAX_EVENT_AGE button events are going to be ignored. 42/* Older than MAX_EVENT_AGE button events are going to be ignored.
42 * Used to prevent for example volume going up uncontrollable when events 43 * Used to prevent for example volume going up uncontrollable when events
@@ -482,6 +483,8 @@ void button_clear_queue(void)
482 queue_clear(&button_queue); 483 queue_clear(&button_queue);
483} 484}
484 485
486#endif /* SIMULATOR */
487
485#ifdef HAVE_SCROLLWHEEL 488#ifdef HAVE_SCROLLWHEEL
486/** 489/**
487 * data: 490 * data:
diff --git a/firmware/drivers/power.c b/firmware/drivers/power.c
index 50117dd321..593fe29eb5 100644
--- a/firmware/drivers/power.c
+++ b/firmware/drivers/power.c
@@ -219,11 +219,6 @@ void power_off(void)
219 219
220#else 220#else
221 221
222bool charger_inserted(void)
223{
224 return false;
225}
226
227void charger_enable(bool on) 222void charger_enable(bool on)
228{ 223{
229 (void)on; 224 (void)on;