diff options
author | Robert Menes <rmenes@rockbox.org> | 2008-10-03 11:51:50 +0000 |
---|---|---|
committer | Robert Menes <rmenes@rockbox.org> | 2008-10-03 11:51:50 +0000 |
commit | 0acaecef819f69fb040c915152d491e6a2b5a682 (patch) | |
tree | a948ec50c301887457fa7b9d23e8a6fc83b026c6 | |
parent | 67554591d9820be10535d92f07a9e76915931119 (diff) | |
download | rockbox-0acaecef819f69fb040c915152d491e6a2b5a682.tar.gz rockbox-0acaecef819f69fb040c915152d491e6a2b5a682.zip |
Recommit FS #9428 by David Hall. The SWCODEC targets should all work with this patch applied.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18695 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/battery_bench.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/apps/plugins/battery_bench.c b/apps/plugins/battery_bench.c index abcd962356..d9bcdd56dd 100644 --- a/apps/plugins/battery_bench.c +++ b/apps/plugins/battery_bench.c | |||
@@ -38,7 +38,7 @@ PLUGIN_HEADER | |||
38 | #define BATTERY_ON BUTTON_PLAY | 38 | #define BATTERY_ON BUTTON_PLAY |
39 | #define BATTERY_OFF BUTTON_OFF | 39 | #define BATTERY_OFF BUTTON_OFF |
40 | #define BATTERY_ON_TXT "PLAY - start" | 40 | #define BATTERY_ON_TXT "PLAY - start" |
41 | #define BATTERY_OFF_TXT "OFF - quit" | 41 | #define BATTERY_OFF_TXT "OFF" |
42 | 42 | ||
43 | #if BUTTON_REMOTE != 0 | 43 | #if BUTTON_REMOTE != 0 |
44 | #define BATTERY_RC_ON BUTTON_RC_PLAY | 44 | #define BATTERY_RC_ON BUTTON_RC_PLAY |
@@ -50,7 +50,7 @@ PLUGIN_HEADER | |||
50 | #define BATTERY_ON BUTTON_RIGHT | 50 | #define BATTERY_ON BUTTON_RIGHT |
51 | #define BATTERY_OFF BUTTON_OFF | 51 | #define BATTERY_OFF BUTTON_OFF |
52 | #define BATTERY_ON_TXT "RIGHT - start" | 52 | #define BATTERY_ON_TXT "RIGHT - start" |
53 | #define BATTERY_OFF_TXT "OFF - quit" | 53 | #define BATTERY_OFF_TXT "OFF" |
54 | 54 | ||
55 | #elif CONFIG_KEYPAD == PLAYER_PAD | 55 | #elif CONFIG_KEYPAD == PLAYER_PAD |
56 | 56 | ||
@@ -70,7 +70,7 @@ PLUGIN_HEADER | |||
70 | #define BATTERY_RC_OFF BUTTON_RC_STOP | 70 | #define BATTERY_RC_OFF BUTTON_RC_STOP |
71 | 71 | ||
72 | #define BATTERY_ON_TXT "PLAY - start" | 72 | #define BATTERY_ON_TXT "PLAY - start" |
73 | #define BATTERY_OFF_TXT "STOP - quit" | 73 | #define BATTERY_OFF_TXT "STOP" |
74 | 74 | ||
75 | #elif (CONFIG_KEYPAD == IPOD_4G_PAD) || \ | 75 | #elif (CONFIG_KEYPAD == IPOD_4G_PAD) || \ |
76 | (CONFIG_KEYPAD == IPOD_3G_PAD) || \ | 76 | (CONFIG_KEYPAD == IPOD_3G_PAD) || \ |
@@ -79,63 +79,63 @@ PLUGIN_HEADER | |||
79 | #define BATTERY_ON BUTTON_PLAY | 79 | #define BATTERY_ON BUTTON_PLAY |
80 | #define BATTERY_OFF BUTTON_MENU | 80 | #define BATTERY_OFF BUTTON_MENU |
81 | #define BATTERY_ON_TXT "PLAY - start" | 81 | #define BATTERY_ON_TXT "PLAY - start" |
82 | #define BATTERY_OFF_TXT "MENU - quit" | 82 | #define BATTERY_OFF_TXT "MENU" |
83 | 83 | ||
84 | #elif CONFIG_KEYPAD == IAUDIO_X5M5_PAD | 84 | #elif CONFIG_KEYPAD == IAUDIO_X5M5_PAD |
85 | 85 | ||
86 | #define BATTERY_ON BUTTON_SELECT | 86 | #define BATTERY_ON BUTTON_SELECT |
87 | #define BATTERY_OFF BUTTON_POWER | 87 | #define BATTERY_OFF BUTTON_POWER |
88 | #define BATTERY_ON_TXT "SELECT - start" | 88 | #define BATTERY_ON_TXT "SELECT - start" |
89 | #define BATTERY_OFF_TXT "POWER - quit" | 89 | #define BATTERY_OFF_TXT "POWER" |
90 | 90 | ||
91 | #elif CONFIG_KEYPAD == IRIVER_IFP7XX_PAD | 91 | #elif CONFIG_KEYPAD == IRIVER_IFP7XX_PAD |
92 | 92 | ||
93 | #define BATTERY_ON BUTTON_SELECT | 93 | #define BATTERY_ON BUTTON_SELECT |
94 | #define BATTERY_OFF BUTTON_PLAY | 94 | #define BATTERY_OFF BUTTON_PLAY |
95 | #define BATTERY_ON_TXT "SELECT - start" | 95 | #define BATTERY_ON_TXT "SELECT - start" |
96 | #define BATTERY_OFF_TXT "PLAY - quit" | 96 | #define BATTERY_OFF_TXT "PLAY" |
97 | 97 | ||
98 | #elif (CONFIG_KEYPAD == SANSA_E200_PAD) || \ | 98 | #elif (CONFIG_KEYPAD == SANSA_E200_PAD) || \ |
99 | (CONFIG_KEYPAD == SANSA_C200_PAD) | 99 | (CONFIG_KEYPAD == SANSA_C200_PAD) |
100 | #define BATTERY_ON BUTTON_SELECT | 100 | #define BATTERY_ON BUTTON_SELECT |
101 | #define BATTERY_OFF BUTTON_POWER | 101 | #define BATTERY_OFF BUTTON_POWER |
102 | #define BATTERY_ON_TXT "SELECT - start" | 102 | #define BATTERY_ON_TXT "SELECT - start" |
103 | #define BATTERY_OFF_TXT "POWER - quit" | 103 | #define BATTERY_OFF_TXT "POWER" |
104 | 104 | ||
105 | #elif CONFIG_KEYPAD == IRIVER_H10_PAD | 105 | #elif CONFIG_KEYPAD == IRIVER_H10_PAD |
106 | 106 | ||
107 | #define BATTERY_ON BUTTON_PLAY | 107 | #define BATTERY_ON BUTTON_PLAY |
108 | #define BATTERY_OFF BUTTON_POWER | 108 | #define BATTERY_OFF BUTTON_POWER |
109 | #define BATTERY_ON_TXT "PLAY - start" | 109 | #define BATTERY_ON_TXT "PLAY - start" |
110 | #define BATTERY_OFF_TXT "POWER - quit" | 110 | #define BATTERY_OFF_TXT "POWER" |
111 | 111 | ||
112 | #elif CONFIG_KEYPAD == GIGABEAT_PAD | 112 | #elif CONFIG_KEYPAD == GIGABEAT_PAD |
113 | 113 | ||
114 | #define BATTERY_ON BUTTON_SELECT | 114 | #define BATTERY_ON BUTTON_SELECT |
115 | #define BATTERY_OFF BUTTON_POWER | 115 | #define BATTERY_OFF BUTTON_POWER |
116 | #define BATTERY_ON_TXT "SELECT - start" | 116 | #define BATTERY_ON_TXT "SELECT - start" |
117 | #define BATTERY_OFF_TXT "POWER - quit" | 117 | #define BATTERY_OFF_TXT "POWER" |
118 | 118 | ||
119 | #elif CONFIG_KEYPAD == GIGABEAT_S_PAD | 119 | #elif CONFIG_KEYPAD == GIGABEAT_S_PAD |
120 | 120 | ||
121 | #define BATTERY_ON BUTTON_SELECT | 121 | #define BATTERY_ON BUTTON_SELECT |
122 | #define BATTERY_OFF BUTTON_BACK | 122 | #define BATTERY_OFF BUTTON_BACK |
123 | #define BATTERY_ON_TXT "SELECT - start" | 123 | #define BATTERY_ON_TXT "SELECT - start" |
124 | #define BATTERY_OFF_TXT "BACK - quit" | 124 | #define BATTERY_OFF_TXT "BACK" |
125 | 125 | ||
126 | #elif CONFIG_KEYPAD == MROBE500_PAD | 126 | #elif CONFIG_KEYPAD == MROBE500_PAD |
127 | 127 | ||
128 | #define BATTERY_ON BUTTON_RC_PLAY | 128 | #define BATTERY_ON BUTTON_RC_PLAY |
129 | #define BATTERY_OFF BUTTON_POWER | 129 | #define BATTERY_OFF BUTTON_POWER |
130 | #define BATTERY_ON_TXT "PLAY - start" | 130 | #define BATTERY_ON_TXT "PLAY - start" |
131 | #define BATTERY_OFF_TXT "POWER - quit" | 131 | #define BATTERY_OFF_TXT "POWER" |
132 | 132 | ||
133 | #elif CONFIG_KEYPAD == MROBE100_PAD | 133 | #elif CONFIG_KEYPAD == MROBE100_PAD |
134 | 134 | ||
135 | #define BATTERY_ON BUTTON_SELECT | 135 | #define BATTERY_ON BUTTON_SELECT |
136 | #define BATTERY_OFF BUTTON_POWER | 136 | #define BATTERY_OFF BUTTON_POWER |
137 | #define BATTERY_ON_TXT "SELECT - start" | 137 | #define BATTERY_ON_TXT "SELECT - start" |
138 | #define BATTERY_OFF_TXT "POWER - quit" | 138 | #define BATTERY_OFF_TXT "POWER" |
139 | 139 | ||
140 | #elif CONFIG_KEYPAD == IAUDIO_M3_PAD | 140 | #elif CONFIG_KEYPAD == IAUDIO_M3_PAD |
141 | 141 | ||
@@ -144,17 +144,17 @@ PLUGIN_HEADER | |||
144 | #define BATTERY_RC_ON BUTTON_RC_PLAY | 144 | #define BATTERY_RC_ON BUTTON_RC_PLAY |
145 | #define BATTERY_RC_OFF BUTTON_RC_REC | 145 | #define BATTERY_RC_OFF BUTTON_RC_REC |
146 | #define BATTERY_ON_TXT "PLAY - start" | 146 | #define BATTERY_ON_TXT "PLAY - start" |
147 | #define BATTERY_OFF_TXT "REC - quit" | 147 | #define BATTERY_OFF_TXT "REC" |
148 | 148 | ||
149 | #elif CONFIG_KEYPAD == COWOND2_PAD | 149 | #elif CONFIG_KEYPAD == COWOND2_PAD |
150 | 150 | ||
151 | #define BATTERY_OFF BUTTON_POWER | 151 | #define BATTERY_OFF BUTTON_POWER |
152 | #define BATTERY_OFF_TXT "POWER - quit" | 152 | #define BATTERY_OFF_TXT "POWER" |
153 | 153 | ||
154 | #elif CONFIG_KEYPAD == IAUDIO67_PAD | 154 | #elif CONFIG_KEYPAD == IAUDIO67_PAD |
155 | 155 | ||
156 | #define BATTERY_OFF BUTTON_POWER | 156 | #define BATTERY_OFF BUTTON_POWER |
157 | #define BATTERY_OFF_TXT "POWER - quit" | 157 | #define BATTERY_OFF_TXT "POWER" |
158 | #define BATTERY_ON BUTTON_PLAY | 158 | #define BATTERY_ON BUTTON_PLAY |
159 | #define BATTERY_ON_TXT "PLAY - start" | 159 | #define BATTERY_ON_TXT "PLAY - start" |
160 | #else | 160 | #else |
@@ -172,7 +172,7 @@ PLUGIN_HEADER | |||
172 | #define BATTERY_ON_TXT "CENTRE - start" | 172 | #define BATTERY_ON_TXT "CENTRE - start" |
173 | #endif | 173 | #endif |
174 | #ifndef BATTERY_OFF_TXT | 174 | #ifndef BATTERY_OFF_TXT |
175 | #define BATTERY_OFF_TXT "TOPLEFT - quit" | 175 | #define BATTERY_OFF_TXT "TOPLEFT" |
176 | #endif | 176 | #endif |
177 | #endif | 177 | #endif |
178 | 178 | ||
@@ -216,7 +216,7 @@ bool exit_tsr(bool reenter) | |||
216 | (void)reenter; | 216 | (void)reenter; |
217 | rb->lcd_clear_display(); | 217 | rb->lcd_clear_display(); |
218 | rb->lcd_puts_scroll(0, 0, "Batt.Bench is currently running."); | 218 | rb->lcd_puts_scroll(0, 0, "Batt.Bench is currently running."); |
219 | rb->lcd_puts_scroll(0, 1, "Press OFF to cancel the test"); | 219 | rb->lcd_puts_scroll(0, 1, "Press " BATTERY_OFF_TXT " to cancel the test"); |
220 | #ifdef HAVE_LCD_BITMAP | 220 | #ifdef HAVE_LCD_BITMAP |
221 | rb->lcd_puts_scroll(0, 2, "Anything else will resume"); | 221 | rb->lcd_puts_scroll(0, 2, "Anything else will resume"); |
222 | #endif | 222 | #endif |
@@ -414,7 +414,7 @@ int main(void) | |||
414 | #ifdef HAVE_LCD_BITMAP | 414 | #ifdef HAVE_LCD_BITMAP |
415 | int i; | 415 | int i; |
416 | const char *msgs[] = { "Battery Benchmark","Check file", BATTERY_LOG, | 416 | const char *msgs[] = { "Battery Benchmark","Check file", BATTERY_LOG, |
417 | "for more info", BATTERY_ON_TXT, BATTERY_OFF_TXT }; | 417 | "for more info", BATTERY_ON_TXT, BATTERY_OFF_TXT " - quit" }; |
418 | #endif | 418 | #endif |
419 | rb->lcd_clear_display(); | 419 | rb->lcd_clear_display(); |
420 | 420 | ||