forked from len0rd/rockbox
First lame attempt to show correct battery level on the iRiver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6258 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
09e55a9218
commit
43bf39edb7
6 changed files with 26 additions and 4 deletions
|
@ -21,9 +21,9 @@
|
|||
#define CONFIG_I2C I2C_H100
|
||||
|
||||
/* Type of mobile power */
|
||||
#define CONFIG_BATTERY BATT_IRIVER
|
||||
#define CONFIG_BATTERY BATT_LIPOL1300
|
||||
|
||||
#define BATTERY_SCALE_FACTOR 6465 /* FIX: this value is picked at random */
|
||||
#define BATTERY_SCALE_FACTOR 16665 /* FIX: this value is picked at random */
|
||||
|
||||
/* Define this if the platform can charge batteries */
|
||||
#define HAVE_CHARGING 1
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
#define BATT_LIION2200 2200 /* FM/V2 recorder type */
|
||||
#define BATT_4AA_NIMH 1500
|
||||
#define BATT_3AAA 1000 /* Ondio */
|
||||
#define BATT_IRIVER 2 /* the type used in iRiver h1x0 models */
|
||||
#define BATT_LIPOL1300 1300 /* the type used in iRiver h1x0 models */
|
||||
|
||||
/* CONFIG_LCD */
|
||||
#define LCD_GMINI100 0
|
||||
|
|
|
@ -35,6 +35,14 @@
|
|||
#define BATTERY_CAPACITY_MIN 500
|
||||
#define BATTERY_CAPACITY_MAX 1500 /* max. capacity selectable in settings */
|
||||
#define BATTERY_TYPES_COUNT 2 /* Alkalines or NiMH */
|
||||
#elif CONFIG_BATTERY == BATT_LIPOL1300 /* iRiver H1x0 */
|
||||
#define BATTERY_LEVEL_SHUTDOWN 306 /* 3.06V */
|
||||
#define BATTERY_LEVEL_EMPTY 330 /* 3.30V */
|
||||
#define BATTERY_LEVEL_DANGEROUS 339 /* 3.39V */
|
||||
#define BATTERY_LEVEL_FULL 400 /* 4.00V */
|
||||
#define BATTERY_CAPACITY_MIN 1300
|
||||
#define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable in settings */
|
||||
#define BATTERY_TYPES_COUNT 1
|
||||
#else /* Recorder, NiMH */
|
||||
#define BATTERY_LEVEL_SHUTDOWN 450 /* 4.50V */
|
||||
#define BATTERY_LEVEL_EMPTY 465 /* 4.65V */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue