diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-04-06 23:53:19 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-04-06 23:53:19 +0000 |
commit | 43bf39edb718aa510188b3594e583c905dea5a54 (patch) | |
tree | 0b548d7425f68214a64528cb7eae08e4f24a8fe3 /firmware/export/powermgmt.h | |
parent | 09e55a921883ab7e71bce19c49adc07705b827f5 (diff) | |
download | rockbox-43bf39edb718aa510188b3594e583c905dea5a54.tar.gz rockbox-43bf39edb718aa510188b3594e583c905dea5a54.zip |
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
Diffstat (limited to 'firmware/export/powermgmt.h')
-rw-r--r-- | firmware/export/powermgmt.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/export/powermgmt.h b/firmware/export/powermgmt.h index ccfdede9f9..97daf7ce59 100644 --- a/firmware/export/powermgmt.h +++ b/firmware/export/powermgmt.h | |||
@@ -35,6 +35,14 @@ | |||
35 | #define BATTERY_CAPACITY_MIN 500 | 35 | #define BATTERY_CAPACITY_MIN 500 |
36 | #define BATTERY_CAPACITY_MAX 1500 /* max. capacity selectable in settings */ | 36 | #define BATTERY_CAPACITY_MAX 1500 /* max. capacity selectable in settings */ |
37 | #define BATTERY_TYPES_COUNT 2 /* Alkalines or NiMH */ | 37 | #define BATTERY_TYPES_COUNT 2 /* Alkalines or NiMH */ |
38 | #elif CONFIG_BATTERY == BATT_LIPOL1300 /* iRiver H1x0 */ | ||
39 | #define BATTERY_LEVEL_SHUTDOWN 306 /* 3.06V */ | ||
40 | #define BATTERY_LEVEL_EMPTY 330 /* 3.30V */ | ||
41 | #define BATTERY_LEVEL_DANGEROUS 339 /* 3.39V */ | ||
42 | #define BATTERY_LEVEL_FULL 400 /* 4.00V */ | ||
43 | #define BATTERY_CAPACITY_MIN 1300 | ||
44 | #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable in settings */ | ||
45 | #define BATTERY_TYPES_COUNT 1 | ||
38 | #else /* Recorder, NiMH */ | 46 | #else /* Recorder, NiMH */ |
39 | #define BATTERY_LEVEL_SHUTDOWN 450 /* 4.50V */ | 47 | #define BATTERY_LEVEL_SHUTDOWN 450 /* 4.50V */ |
40 | #define BATTERY_LEVEL_EMPTY 465 /* 4.65V */ | 48 | #define BATTERY_LEVEL_EMPTY 465 /* 4.65V */ |