summaryrefslogtreecommitdiff
path: root/firmware/export/powermgmt.h
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-02-05 13:44:04 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-02-05 13:44:04 +0000
commita258fe1887bf3213bffa07e96f1ec3871fbb9c31 (patch)
treede789c550e65cdcda9b90225f9394bd044734e04 /firmware/export/powermgmt.h
parent0579667f37bbf0acefe42c9a8fe70f2f555edce0 (diff)
downloadrockbox-a258fe1887bf3213bffa07e96f1ec3871fbb9c31.tar.gz
rockbox-a258fe1887bf3213bffa07e96f1ec3871fbb9c31.zip
Better charging feedback for FM/V2 devices
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4296 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/powermgmt.h')
-rw-r--r--firmware/export/powermgmt.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/export/powermgmt.h b/firmware/export/powermgmt.h
index f6b1a64b68..c772195d64 100644
--- a/firmware/export/powermgmt.h
+++ b/firmware/export/powermgmt.h
@@ -68,10 +68,13 @@ extern int powermgmt_last_cycle_level; /* which level had the batteries
68extern int battery_lazyness[20]; /* how does the battery react when plugging in/out the charger */ 68extern int battery_lazyness[20]; /* how does the battery react when plugging in/out the charger */
69void enable_trickle_charge(bool on); 69void enable_trickle_charge(bool on);
70extern int trickle_sec; /* trickle charge: How many seconds per minute are we charging actually? */ 70extern int trickle_sec; /* trickle charge: How many seconds per minute are we charging actually? */
71extern int charge_state; /* tells what the charger is doing (for info display): 0: decharging/charger off, 1: charge, 2: top-off, 3: trickle */
72 71
73#endif /* HAVE_CHARGE_CTRL */ 72#endif /* HAVE_CHARGE_CTRL */
74 73
74#if defined(HAVE_CHARGE_CTRL) || defined(HAVE_LIION)
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
77
75#define CURRENT_NORMAL 145 /* usual current in mA when using the AJB including some disk/backlight/... activity */ 78#define CURRENT_NORMAL 145 /* usual current in mA when using the AJB including some disk/backlight/... activity */
76#define CURRENT_USB 500 /* usual current in mA in USB mode */ 79#define CURRENT_USB 500 /* usual current in mA in USB mode */
77#define CURRENT_BACKLIGHT 30 /* additional current when backlight is always on */ 80#define CURRENT_BACKLIGHT 30 /* additional current when backlight is always on */