summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2004-10-10 01:25:32 +0000
committerJens Arnold <amiconn@rockbox.org>2004-10-10 01:25:32 +0000
commitccfa4cd97af5fd8a4d4868d92cb616a7959b5fa2 (patch)
tree6e16459ed3951a0c7dbefbc695b51f3718d68c9d
parentf5bdf6952c49ed6ab08020a93cbd2a07d4ea0901 (diff)
downloadrockbox-ccfa4cd97af5fd8a4d4868d92cb616a7959b5fa2.tar.gz
rockbox-ccfa4cd97af5fd8a4d4868d92cb616a7959b5fa2.zip
Removed car adapter mode for Ondio, and changed the misleading config option HAVE_BATTERIES to the more appropriate HAVE_CHARGING
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5242 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/main.c2
-rw-r--r--apps/screens.c4
-rw-r--r--apps/settings.c4
-rw-r--r--apps/settings_menu.c4
-rw-r--r--firmware/export/config-fmrecorder.h2
-rw-r--r--firmware/export/config-h100.h2
-rw-r--r--firmware/export/config-player.h2
-rw-r--r--firmware/export/config-recorder.h2
-rw-r--r--firmware/export/config-recorderv2.h2
9 files changed, 15 insertions, 9 deletions
diff --git a/apps/main.c b/apps/main.c
index 01202a9184..536a181845 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -151,7 +151,7 @@ void init(void)
151 151
152 powermgmt_init(); 152 powermgmt_init();
153 153
154#ifdef HAVE_BATTERIES 154#ifdef HAVE_CHARGING
155 if (coldstart && charger_inserted() && !global_settings.car_adapter_mode) 155 if (coldstart && charger_inserted() && !global_settings.car_adapter_mode)
156 { 156 {
157 rc = charging_screen(); /* display a "charging" screen */ 157 rc = charging_screen(); /* display a "charging" screen */
diff --git a/apps/screens.c b/apps/screens.c
index 64382cc0ed..b31067ad27 100644
--- a/apps/screens.c
+++ b/apps/screens.c
@@ -231,7 +231,7 @@ void charging_display_info(bool animate)
231} 231}
232#endif 232#endif
233 233
234#ifdef HAVE_BATTERIES 234#ifdef HAVE_CHARGING
235/* blocks while charging, returns on event: 235/* blocks while charging, returns on event:
236 1 if charger cable was removed 236 1 if charger cable was removed
237 2 if Off/Stop key was pressed 237 2 if Off/Stop key was pressed
@@ -283,7 +283,7 @@ int charging_screen(void)
283 283
284 return rc; 284 return rc;
285} 285}
286#endif /* HAVE_BATTERIES */ 286#endif /* HAVE_CHARGING */
287 287
288 288
289#if CONFIG_KEYPAD == RECORDER_PAD 289#if CONFIG_KEYPAD == RECORDER_PAD
diff --git a/apps/settings.c b/apps/settings.c
index 3b6a048def..2765ae8e52 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -224,7 +224,9 @@ static const struct bit_entry rtc_bits[] =
224#elif CONFIG_BATTERY == BATT_3AAA_ALKALINE 224#elif CONFIG_BATTERY == BATT_3AAA_ALKALINE
225 {12, S_O(battery_capacity), 1000, "battery capacity", NULL }, 225 {12, S_O(battery_capacity), 1000, "battery capacity", NULL },
226#endif 226#endif
227#ifdef HAVE_CHARGING
227 {1, S_O(car_adapter_mode), false, "car adapter mode", off_on }, 228 {1, S_O(car_adapter_mode), false, "car adapter mode", off_on },
229#endif
228 230
229 /* new stuff to be added here */ 231 /* new stuff to be added here */
230 /* If values are just added to the end, no need to bump the version. */ 232 /* If values are just added to the end, no need to bump the version. */
@@ -281,7 +283,7 @@ static const struct bit_entry hd_bits[] =
281 {1, S_O(browse_current), false, "follow playlist", off_on }, 283 {1, S_O(browse_current), false, "follow playlist", off_on },
282 /* playlist */ 284 /* playlist */
283 {1, S_O(playlist_viewer_icons), true, "playlist viewer icons", off_on }, 285 {1, S_O(playlist_viewer_icons), true, "playlist viewer icons", off_on },
284 {1, S_O(playlist_viewer_indices), true, 286 {1, S_O(playlist_viewer_indices), true,
285 "playlist viewer indices", off_on }, 287 "playlist viewer indices", off_on },
286 {1, S_O(playlist_viewer_track_display), 0, 288 {1, S_O(playlist_viewer_track_display), 0,
287 "playlist viewer track display", "track name,full path" }, 289 "playlist viewer track display", "track name,full path" },
diff --git a/apps/settings_menu.c b/apps/settings_menu.c
index 61d2519662..2579d7b4dc 100644
--- a/apps/settings_menu.c
+++ b/apps/settings_menu.c
@@ -58,6 +58,7 @@ void dac_line_in(bool enable);
58/* This flag is set by dirbrowse() if a new language is loaded */ 58/* This flag is set by dirbrowse() if a new language is loaded */
59bool language_changed; 59bool language_changed;
60 60
61#ifdef HAVE_CHARGING
61static bool car_adapter_mode(void) 62static bool car_adapter_mode(void)
62{ 63{
63 return set_bool_options( str(LANG_CAR_ADAPTER_MODE), 64 return set_bool_options( str(LANG_CAR_ADAPTER_MODE),
@@ -66,6 +67,7 @@ static bool car_adapter_mode(void)
66 STR(LANG_SET_BOOL_NO), 67 STR(LANG_SET_BOOL_NO),
67 set_car_adapter_mode); 68 set_car_adapter_mode);
68} 69}
70#endif
69 71
70static bool contrast(void) 72static bool contrast(void)
71{ 73{
@@ -1351,7 +1353,9 @@ static bool system_settings_menu(void)
1351#if CONFIG_HWCODEC == MAS3507D 1353#if CONFIG_HWCODEC == MAS3507D
1352 { ID2P(LANG_LINE_IN), line_in }, 1354 { ID2P(LANG_LINE_IN), line_in },
1353#endif 1355#endif
1356#ifdef HAVE_CHARGING
1354 { ID2P(LANG_CAR_ADAPTER_MODE), car_adapter_mode }, 1357 { ID2P(LANG_CAR_ADAPTER_MODE), car_adapter_mode },
1358#endif
1355 { ID2P(LANG_MANAGE_MENU), manage_settings_menu }, 1359 { ID2P(LANG_MANAGE_MENU), manage_settings_menu },
1356 }; 1360 };
1357 1361
diff --git a/firmware/export/config-fmrecorder.h b/firmware/export/config-fmrecorder.h
index 8d3f1a1051..aec31c2b84 100644
--- a/firmware/export/config-fmrecorder.h
+++ b/firmware/export/config-fmrecorder.h
@@ -62,7 +62,7 @@
62#define USB_FMRECORDERSTYLE 1 62#define USB_FMRECORDERSTYLE 1
63 63
64/* Define this if the platform can charge batteries */ 64/* Define this if the platform can charge batteries */
65#define HAVE_BATTERIES 1 65#define HAVE_CHARGING 1
66 66
67/* The start address index for ROM builds */ 67/* The start address index for ROM builds */
68#define ROM_START 0x14010 68#define ROM_START 0x14010
diff --git a/firmware/export/config-h100.h b/firmware/export/config-h100.h
index a3e982a062..d7931b20df 100644
--- a/firmware/export/config-h100.h
+++ b/firmware/export/config-h100.h
@@ -20,7 +20,7 @@
20#define CONFIG_BATTERY BATT_LIION2200 20#define CONFIG_BATTERY BATT_LIION2200
21 21
22/* Define this if the platform can charge batteries */ 22/* Define this if the platform can charge batteries */
23#define HAVE_BATTERIES 1 23#define HAVE_CHARGING 1
24 24
25/* The start address index for ROM builds */ 25/* The start address index for ROM builds */
26#define ROM_START 0x11010 26#define ROM_START 0x11010
diff --git a/firmware/export/config-player.h b/firmware/export/config-player.h
index d457ef40fd..d935a58edc 100644
--- a/firmware/export/config-player.h
+++ b/firmware/export/config-player.h
@@ -48,7 +48,7 @@
48#define USB_PLAYERSTYLE 1 48#define USB_PLAYERSTYLE 1
49 49
50/* Define this if the platform can charge batteries */ 50/* Define this if the platform can charge batteries */
51#define HAVE_BATTERIES 1 51#define HAVE_CHARGING 1
52 52
53/* Define this for programmable LED available */ 53/* Define this for programmable LED available */
54#define HAVE_LED 54#define HAVE_LED
diff --git a/firmware/export/config-recorder.h b/firmware/export/config-recorder.h
index 1e90a05248..9aacb490dd 100644
--- a/firmware/export/config-recorder.h
+++ b/firmware/export/config-recorder.h
@@ -56,7 +56,7 @@
56#define USB_RECORDERSTYLE 1 56#define USB_RECORDERSTYLE 1
57 57
58/* Define this if the platform can charge batteries */ 58/* Define this if the platform can charge batteries */
59#define HAVE_BATTERIES 1 59#define HAVE_CHARGING 1
60 60
61/* The start address index for ROM builds */ 61/* The start address index for ROM builds */
62#define ROM_START 0x11010 62#define ROM_START 0x11010
diff --git a/firmware/export/config-recorderv2.h b/firmware/export/config-recorderv2.h
index b676a180ed..8addf78858 100644
--- a/firmware/export/config-recorderv2.h
+++ b/firmware/export/config-recorderv2.h
@@ -62,7 +62,7 @@
62#define USB_FMRECORDERSTYLE 1 62#define USB_FMRECORDERSTYLE 1
63 63
64/* Define this if the platform can charge batteries */ 64/* Define this if the platform can charge batteries */
65#define HAVE_BATTERIES 1 65#define HAVE_CHARGING 1
66 66
67/* The start address index for ROM builds */ 67/* The start address index for ROM builds */
68#define ROM_START 0x12010 68#define ROM_START 0x12010