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
|
|
@ -23,29 +23,23 @@
|
|||
#include "config.h"
|
||||
#include "powermgmt.h"
|
||||
|
||||
unsigned short battery_level_disksafe[BATTERY_TYPES_COUNT] =
|
||||
{
|
||||
/*
|
||||
* about 10%, calibrated with C240v2 battery profile at
|
||||
* http://www.rockbox.org/wiki/bin/viewfile/Main/SansaRuntime?filename=c240v2_battery_bench_percent.png;rev=3
|
||||
*/
|
||||
3600
|
||||
};
|
||||
/*
|
||||
* about 10%, calibrated with C240v2 battery profile at
|
||||
* http://www.rockbox.org/wiki/bin/viewfile/Main/SansaRuntime?filename=c240v2_battery_bench_percent.png;rev=3
|
||||
*/
|
||||
unsigned short battery_level_disksafe = 3600;
|
||||
|
||||
unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] =
|
||||
{
|
||||
3300
|
||||
};
|
||||
unsigned short battery_level_shutoff = 3300;
|
||||
|
||||
/* 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] =
|
||||
{
|
||||
/*
|
||||
* Below table is calibrated according to
|
||||
* http://www.rockbox.org/wiki/bin/viewfile/Main/SansaRuntime?filename=c240v2_battery_bench_percent.png;rev=3
|
||||
* OF seems to stop charging at 4150mV, so that's 100% here.
|
||||
*/
|
||||
{ 3300, 3597, 3674, 3719, 3745, 3776, 3825, 3890, 3954, 4035, 4150 }
|
||||
3300, 3597, 3674, 3719, 3745, 3776, 3825, 3890, 3954, 4035, 4150
|
||||
};
|
||||
|
||||
/* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue