summaryrefslogtreecommitdiff
path: root/apps/plugins/battery_bench.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-11-27 02:16:32 +0000
committerJens Arnold <amiconn@rockbox.org>2006-11-27 02:16:32 +0000
commit0e6dd7efcd21d48665b5a799fe081a75cdcb960f (patch)
tree9c0db844416a114adebb725f6172e38009b317f8 /apps/plugins/battery_bench.c
parente43f56b58d8540492d83b44abfdf4c758b0e74bf (diff)
downloadrockbox-0e6dd7efcd21d48665b5a799fe081a75cdcb960f.tar.gz
rockbox-0e6dd7efcd21d48665b5a799fe081a75cdcb960f.zip
Moved archos button reading to target tree. * Cleanup of button.[ch]. * Deactivated serial remote code for recorder FM/V2 as there is no remote pin, saving ~500 bytes of code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11612 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/battery_bench.c')
-rw-r--r--apps/plugins/battery_bench.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/plugins/battery_bench.c b/apps/plugins/battery_bench.c
index c9c289acb7..9b8871eb41 100644
--- a/apps/plugins/battery_bench.c
+++ b/apps/plugins/battery_bench.c
@@ -29,15 +29,17 @@ PLUGIN_HEADER
29#define EV_EXIT 1337 29#define EV_EXIT 1337
30 30
31/* seems to work with 1300, but who knows... */ 31/* seems to work with 1300, but who knows... */
32#define THREAD_STACK_SIZE DEFAULT_STACK_SIZE + 0x200 32#define THREAD_STACK_SIZE DEFAULT_STACK_SIZE + 0x200
33 33
34#if CONFIG_KEYPAD == RECORDER_PAD 34#if CONFIG_KEYPAD == RECORDER_PAD
35 35
36#define BATTERY_ON BUTTON_PLAY 36#define BATTERY_ON BUTTON_PLAY
37#define BATTERY_RC_ON BUTTON_RC_PLAY
38
39#define BATTERY_OFF BUTTON_OFF 37#define BATTERY_OFF BUTTON_OFF
38
39#if BUTTON_REMOTE != 0
40#define BATTERY_RC_ON BUTTON_RC_PLAY
40#define BATTERY_RC_OFF BUTTON_RC_STOP 41#define BATTERY_RC_OFF BUTTON_RC_STOP
42#endif
41 43
42#elif CONFIG_KEYPAD == ONDIO_PAD 44#elif CONFIG_KEYPAD == ONDIO_PAD
43 45