summaryrefslogtreecommitdiffstats
path: root/firmware/target
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2010-07-08 16:53:09 +0000
committerMarcin Bukat <marcin.bukat@gmail.com>2010-07-08 16:53:09 +0000
commitd367ab41e33119e2b6fac8cfff7d652de08012da (patch)
treeea5a0cf4ca8ce13269ff6072b1eab82e2849597b /firmware/target
parent771dc22aa1c33e40888172d4e62be26316caf691 (diff)
downloadrockbox-d367ab41e33119e2b6fac8cfff7d652de08012da.tar.gz
rockbox-d367ab41e33119e2b6fac8cfff7d652de08012da.tar.bz2
rockbox-d367ab41e33119e2b6fac8cfff7d652de08012da.zip
HD200 - calibrate battery indicator based on measurements and battery_benches
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27350 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/coldfire/mpio/hd200/powermgmt-hd200.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/firmware/target/coldfire/mpio/hd200/powermgmt-hd200.c b/firmware/target/coldfire/mpio/hd200/powermgmt-hd200.c
index 23a0bac927..db94b890bb 100644
--- a/firmware/target/coldfire/mpio/hd200/powermgmt-hd200.c
+++ b/firmware/target/coldfire/mpio/hd200/powermgmt-hd200.c
@@ -25,26 +25,25 @@
const unsigned short battery_level_dangerous[BATTERY_TYPES_COUNT] =
{
- 3700
+ 3600
};
const unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] =
{
- 3650
+ 3500
};
/* voltages (millivolt) of 0%, 10%, ... 100% when charging disabled */
const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] =
{
- /* from OF and measurements voltage range is 3.7-4.1 V */
- { 3700, 3740, 3780, 3820, 3860, 3900, 3940, 3980, 4020, 4060, 4100 }
+ { 3500, 3566, 3597, 3619, 3644, 3676, 3732, 3806, 3868, 3937, 4004 }
};
/* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */
const unsigned short percent_to_volt_charge[11] =
{
/* values measured over one full charging cycle */
- 3540, 3860, 3930, 3980, 4000, 4020, 4040, 4080, 4130, 4180, 4230 /* LiPo */
+ 3386, 3872, 3904, 3942, 3996, 4029, 4033, 4036, 4038, 4039, 4041
};
/* 3.33V as reference */