summaryrefslogtreecommitdiff
path: root/firmware/export/powermgmt.h
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2004-10-08 17:45:52 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2004-10-08 17:45:52 +0000
commit43079ea07f13a7631cd3c0e5993638235427a476 (patch)
tree13ff7f3370f2793797fe9bd51e4e459a5dda695f /firmware/export/powermgmt.h
parent5cf1c97aea10864ecb6c3836a5c17845a5906d79 (diff)
downloadrockbox-43079ea07f13a7631cd3c0e5993638235427a476.tar.gz
rockbox-43079ea07f13a7631cd3c0e5993638235427a476.zip
multiple battery types prepared (CONFIG_BATTERY)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5227 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/powermgmt.h')
-rw-r--r--firmware/export/powermgmt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/export/powermgmt.h b/firmware/export/powermgmt.h
index eb0ba29f28..1a54006a7d 100644
--- a/firmware/export/powermgmt.h
+++ b/firmware/export/powermgmt.h
@@ -19,7 +19,7 @@
19#ifndef _POWERMGMT_H_ 19#ifndef _POWERMGMT_H_
20#define _POWERMGMT_H_ 20#define _POWERMGMT_H_
21 21
22#ifdef HAVE_LIION /* FM Recorder, LiIon */ 22#if CONFIG_BATTERY == BATT_LIION2200 /* FM Recorder, LiIon */
23#define BATTERY_LEVEL_SHUTDOWN 260 /* 2.60V */ 23#define BATTERY_LEVEL_SHUTDOWN 260 /* 2.60V */
24#define BATTERY_LEVEL_EMPTY 265 /* 2.65V */ 24#define BATTERY_LEVEL_EMPTY 265 /* 2.65V */
25#define BATTERY_LEVEL_DANGEROUS 280 /* 2.80V */ 25#define BATTERY_LEVEL_DANGEROUS 280 /* 2.80V */
@@ -71,7 +71,7 @@ extern int trickle_sec; /* trickle charge: How many seconds per minute
71 71
72#endif /* HAVE_CHARGE_CTRL */ 72#endif /* HAVE_CHARGE_CTRL */
73 73
74#if defined(HAVE_CHARGE_CTRL) || defined(HAVE_LIION) 74#if defined(HAVE_CHARGE_CTRL) || CONFIG_BATTERY == BATT_LIION2200
75extern int charge_state; /* tells what the charger is doing (for info display): 0: decharging/charger off, 1: charge, 2: top-off, 3: trickle */ 75extern int charge_state; /* tells what the charger is doing (for info display): 0: decharging/charger off, 1: charge, 2: top-off, 3: trickle */
76#endif 76#endif
77 77