diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-02-05 13:44:04 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-02-05 13:44:04 +0000 |
commit | a258fe1887bf3213bffa07e96f1ec3871fbb9c31 (patch) | |
tree | de789c550e65cdcda9b90225f9394bd044734e04 /firmware/export/powermgmt.h | |
parent | 0579667f37bbf0acefe42c9a8fe70f2f555edce0 (diff) | |
download | rockbox-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.h | 5 |
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 | |||
68 | extern int battery_lazyness[20]; /* how does the battery react when plugging in/out the charger */ | 68 | extern int battery_lazyness[20]; /* how does the battery react when plugging in/out the charger */ |
69 | void enable_trickle_charge(bool on); | 69 | void enable_trickle_charge(bool on); |
70 | extern int trickle_sec; /* trickle charge: How many seconds per minute are we charging actually? */ | 70 | extern int trickle_sec; /* trickle charge: How many seconds per minute are we charging actually? */ |
71 | extern 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) | ||
75 | extern 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 */ |