mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Remove BATTERY_TYPES
Change-Id: I4fa03a10d0032fd6f92722bbe1d4b7eec0b95cb4
This commit is contained in:
parent
fb115e5bdb
commit
4f3bbeaffc
175 changed files with 432 additions and 951 deletions
|
|
@ -28,23 +28,16 @@
|
|||
early uncalibrated values. But read-out value should be correct
|
||||
*/
|
||||
|
||||
unsigned short battery_level_disksafe[BATTERY_TYPES_COUNT] =
|
||||
{
|
||||
/* TODO: this is just an initial guess */
|
||||
900
|
||||
};
|
||||
unsigned short battery_level_disksafe = 1000; /* TODO: this is just an initial guess */
|
||||
|
||||
unsigned short battery_level_shutoff = 900; /* TODO: this is just an initial guess */
|
||||
|
||||
unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] =
|
||||
{
|
||||
/* TODO: this is just an initial guess */
|
||||
1000
|
||||
};
|
||||
|
||||
/* voltages (millivolt) of 0%, 10%, ... 100% when charging disabled */
|
||||
unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] =
|
||||
unsigned short percent_to_volt_discharge[11] =
|
||||
{
|
||||
/* TODO: simple uncalibrated curve, linear except for first 10% */
|
||||
{ 1000, 1050, 1100, 1150, 1200, 1250, 1300, 1350, 1400, 1450, 1500 }
|
||||
1000, 1050, 1100, 1150, 1200, 1250, 1300, 1350, 1400, 1450, 1500
|
||||
};
|
||||
|
||||
/* ADC should read 0x3ff=5.12V */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue