diff options
author | Brandon Low <lostlogic@rockbox.org> | 2006-01-19 07:47:34 +0000 |
---|---|---|
committer | Brandon Low <lostlogic@rockbox.org> | 2006-01-19 07:47:34 +0000 |
commit | cdacab3d89cdbbd8fd7c20b3b340e27352e6737e (patch) | |
tree | ad1746cf51bdb56a1cdcabf0c38eb6a53244c431 /firmware/export/config-h300.h | |
parent | 13414ae77a77d96ef2cb210d644880b847c9ca6f (diff) | |
download | rockbox-cdacab3d89cdbbd8fd7c20b3b340e27352e6737e.tar.gz rockbox-cdacab3d89cdbbd8fd7c20b3b340e27352e6737e.zip |
Charging state reporting on H3x0
Don't read the GPIO every refresh of statusbar or gwps for plugged state, use a
variable exported from powermgmt instead.
Allow Custom WPS to access %bc for battery charge state on targets that support
this.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8383 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/config-h300.h')
-rw-r--r-- | firmware/export/config-h300.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/export/config-h300.h b/firmware/export/config-h300.h index 806ae0a079..ded20c9129 100644 --- a/firmware/export/config-h300.h +++ b/firmware/export/config-h300.h | |||
@@ -72,6 +72,9 @@ | |||
72 | /* Define this if the platform can charge batteries */ | 72 | /* Define this if the platform can charge batteries */ |
73 | #define HAVE_CHARGING 1 | 73 | #define HAVE_CHARGING 1 |
74 | 74 | ||
75 | /* For units with a hardware charger that reports charge state */ | ||
76 | #define HAVE_CHARGE_STATE 1 | ||
77 | |||
75 | /* define this if the hardware can be powered off while charging */ | 78 | /* define this if the hardware can be powered off while charging */ |
76 | #define HAVE_POWEROFF_WHILE_CHARGING | 79 | #define HAVE_POWEROFF_WHILE_CHARGING |
77 | 80 | ||