forked from len0rd/rockbox
Commit FS#8480 by Andree Buschmann. Updates battery calibration for the Sansa E series.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16122 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
70362ee16f
commit
b5acab1bcf
1 changed files with 4 additions and 4 deletions
|
@ -35,15 +35,15 @@ const unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] =
|
||||||
/* voltages (millivolt) of 0%, 10%, ... 100% when charging disabled */
|
/* voltages (millivolt) of 0%, 10%, ... 100% when charging disabled */
|
||||||
const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] =
|
const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] =
|
||||||
{
|
{
|
||||||
/* Sansa Li Ion 750mAH FIXME this is a first linear approach */
|
/* Sansa Li Ion 750mAH, took from battery benchs */
|
||||||
{ 3300, 3390, 3480, 3570, 3660, 3750, 3840, 3930, 4020, 4110, 4200 },
|
{ 3300, 3680, 3740, 3760, 3780, 3810, 3870, 3930, 3970, 4070, 4160 },
|
||||||
};
|
};
|
||||||
|
|
||||||
/* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */
|
/* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */
|
||||||
const unsigned short percent_to_volt_charge[11] =
|
const unsigned short percent_to_volt_charge[11] =
|
||||||
{
|
{
|
||||||
/* Sansa Li Ion 750mAH FIXME */
|
/* Sansa Li Ion 750mAH FIXME */
|
||||||
3300, 3390, 3480, 3570, 3660, 3750, 3840, 3930, 4020, 4110, 4200
|
3300, 3680, 3740, 3760, 3780, 3810, 3870, 3930, 3970, 4070, 4160
|
||||||
};
|
};
|
||||||
|
|
||||||
/* ADC should read 0x3ff=5.12V */
|
/* ADC should read 0x3ff=5.12V */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue