diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2011-12-31 13:34:56 +0000 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2011-12-31 13:34:56 +0000 |
| commit | 05f12e08772d1ca03101b176e329bfd313daf673 (patch) | |
| tree | 56ce125d3bd3c2c1d3e5588b2a3ddab1b8a460ab /apps/debug_menu.c | |
| parent | 07605a659e06efaedb325e9a91214be503188f06 (diff) | |
| download | rockbox-05f12e08772d1ca03101b176e329bfd313daf673.zip rockbox-05f12e08772d1ca03101b176e329bfd313daf673.tar.gz rockbox-05f12e08772d1ca03101b176e329bfd313daf673.tar.bz2 rockbox-05f12e08772d1ca03101b176e329bfd313daf673.tar.xz | |
ypr0: Enable battery voltage read-out, charging monitoring and charger detection.
Voltage can be read using as3543 adc (i.e. ascodec api, on this target implemented
via ioctl()). TODO: Look into possibly controlling charging more by re-using
powermgmt-ascodec.c. However, charging seems to be controlled by the kernel,
so may not be needed.
Charger state can be read using /dev/minivet. It allows to differentiate between
wall charger and usb charging, but that's not implemented (is it even worthwhile?)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31470 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to '')
| -rw-r--r-- | apps/debug_menu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 5773374..b4d917a 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -58,7 +58,6 @@ #if (CONFIG_PLATFORM & PLATFORM_NATIVE) #include "disk.h" #include "adc.h" -#include "power.h" #include "usb.h" #include "rtc.h" #include "storage.h" @@ -75,6 +74,7 @@ #include "radio.h" #endif #endif +#include "power.h" #ifdef HAVE_LCD_BITMAP #include "scrollbar.h" @@ -900,7 +900,7 @@ static bool tsc2100_debug(void) return simplelist_show_list(&info); } #endif -#if (CONFIG_PLATFORM & PLATFORM_NATIVE) +#if (CONFIG_PLATFORM & PLATFORM_NATIVE) || defined(SAMSUNG_YPR0) #ifdef HAVE_LCD_BITMAP /* * view_battery() shows a automatically scaled graph of the battery voltage @@ -2168,7 +2168,7 @@ static const struct the_menu_item menuitems[] = { { "View CPU stats", dbg_cpuinfo }, #endif #ifdef HAVE_LCD_BITMAP -#if (CONFIG_PLATFORM & PLATFORM_NATIVE) +#if (CONFIG_PLATFORM & PLATFORM_NATIVE) || defined(SAMSUNG_YPR0) { "View battery", view_battery }, #endif #ifndef APPLICATION |