summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
authorHristo Kovachev <bger@rockbox.org>2006-02-07 14:46:03 +0000
committerHristo Kovachev <bger@rockbox.org>2006-02-07 14:46:03 +0000
commit14cfc65414387c96025f2dbbda332dcf1c404fcb (patch)
treea1eb9021e4c737af31cdaf38fff43928e15551b8 /firmware/drivers
parent88abdd97b25eb458466a84f614a518b7173265a8 (diff)
downloadrockbox-14cfc65414387c96025f2dbbda332dcf1c404fcb.tar.gz
rockbox-14cfc65414387c96025f2dbbda332dcf1c404fcb.zip
1. Updated battery_bench plugin:
1.1 Don't use the plugin_get_buffer() so the playlist viewer should work with this plugin running; 1.2 Added new columns for charger inserted, charging, usb powered; 1.3 Some other small improvements 2. charger_inserted() again returns only the AC/DC charger state on H3x0, doesn't include the usb state; 3. Some ifdefs corrected in power.c and power.h; git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8607 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/power.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/firmware/drivers/power.c b/firmware/drivers/power.c
index 5feece67f0..d7750a33b2 100644
--- a/firmware/drivers/power.c
+++ b/firmware/drivers/power.c
@@ -105,13 +105,12 @@ void power_init(void)
105#endif 105#endif
106} 106}
107 107
108
108#ifdef HAVE_CHARGING 109#ifdef HAVE_CHARGING
109bool charger_inserted(void) 110bool charger_inserted(void)
110{ 111{
111#if defined(IRIVER_H100_SERIES) 112#if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES)
112 return (GPIO1_READ & 0x00400000)?true:false; 113 return (GPIO1_READ & 0x00400000)?true:false;
113#elif defined(IRIVER_H300_SERIES)
114 return (GPIO1_READ & 0x00400000) || usb_powered();
115#elif defined(GMINI_ARCH) 114#elif defined(GMINI_ARCH)
116 return (P7 & 0x80) == 0; 115 return (P7 & 0x80) == 0;
117#elif defined(IAUDIO_X5) 116#elif defined(IAUDIO_X5)