summaryrefslogtreecommitdiff
path: root/apps/menus/settings_menu.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2008-12-03 19:54:25 +0000
committerMichael Sevakis <jethead71@rockbox.org>2008-12-03 19:54:25 +0000
commit58eb784a5d1f0ac800e656d5dfa3a1bff8fb2657 (patch)
tree084c7b7c5d374fbfef2f8cddb3673a3b2a26a7df /apps/menus/settings_menu.c
parent0d0cc039f88ced4f6db5c4468b19913f52cd08c8 (diff)
downloadrockbox-58eb784a5d1f0ac800e656d5dfa3a1bff8fb2657.tar.gz
rockbox-58eb784a5d1f0ac800e656d5dfa3a1bff8fb2657.zip
Straighten out some powermanagement stuff. Give target complete control over how power inputs are sensed. Clean SIMULATOR stuff out of target files. Get rid of USB charging option on targets that don't support it or don't implement it yet. Menu string remains to avoid language incompatibility but should be removed on next cleanup for targets not using it (notice in english.lang). global_settings becomes incompatible for some builds and so plugin API version is incremented.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19315 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/menus/settings_menu.c')
-rw-r--r--apps/menus/settings_menu.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/apps/menus/settings_menu.c b/apps/menus/settings_menu.c
index 6bb032d169..d05726ea44 100644
--- a/apps/menus/settings_menu.c
+++ b/apps/menus/settings_menu.c
@@ -144,8 +144,7 @@ MENUITEM_SETTING(battery_capacity, &global_settings.battery_capacity, NULL);
144#if BATTERY_TYPES_COUNT > 1 144#if BATTERY_TYPES_COUNT > 1
145MENUITEM_SETTING(battery_type, &global_settings.battery_type, NULL); 145MENUITEM_SETTING(battery_type, &global_settings.battery_type, NULL);
146#endif 146#endif
147#ifdef HAVE_USB_POWER 147#ifdef HAVE_USB_CHARGING_ENABLE
148#if CONFIG_CHARGING
149static int usbcharging_callback(int action,const struct menu_item_ex *this_item) 148static int usbcharging_callback(int action,const struct menu_item_ex *this_item)
150{ 149{
151 (void)this_item; 150 (void)this_item;
@@ -158,8 +157,7 @@ static int usbcharging_callback(int action,const struct menu_item_ex *this_item)
158 return action; 157 return action;
159} 158}
160MENUITEM_SETTING(usb_charging, &global_settings.usb_charging, usbcharging_callback); 159MENUITEM_SETTING(usb_charging, &global_settings.usb_charging, usbcharging_callback);
161#endif 160#endif /* HAVE_USB_CHARGING_ENABLE */
162#endif
163MAKE_MENU(battery_menu, ID2P(LANG_BATTERY_MENU), 0, Icon_NOICON, 161MAKE_MENU(battery_menu, ID2P(LANG_BATTERY_MENU), 0, Icon_NOICON,
164#if BATTERY_CAPACITY_INC > 0 162#if BATTERY_CAPACITY_INC > 0
165 &battery_capacity, 163 &battery_capacity,
@@ -167,11 +165,9 @@ MAKE_MENU(battery_menu, ID2P(LANG_BATTERY_MENU), 0, Icon_NOICON,
167#if BATTERY_TYPES_COUNT > 1 165#if BATTERY_TYPES_COUNT > 1
168 &battery_type, 166 &battery_type,
169#endif 167#endif
170#ifdef HAVE_USB_POWER 168#ifdef HAVE_USB_CHARGING_ENABLE
171#if CONFIG_CHARGING
172 &usb_charging, 169 &usb_charging,
173#endif 170#endif
174#endif
175 ); 171 );
176/* Disk */ 172/* Disk */
177#ifdef HAVE_DISK_STORAGE 173#ifdef HAVE_DISK_STORAGE