diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/config-h100.h | 4 | ||||
-rw-r--r-- | firmware/export/config.h | 2 | ||||
-rw-r--r-- | firmware/export/powermgmt.h | 8 |
3 files changed, 11 insertions, 3 deletions
diff --git a/firmware/export/config-h100.h b/firmware/export/config-h100.h index d8453a96d1..5eef2c7270 100644 --- a/firmware/export/config-h100.h +++ b/firmware/export/config-h100.h | |||
@@ -21,9 +21,9 @@ | |||
21 | #define CONFIG_I2C I2C_H100 | 21 | #define CONFIG_I2C I2C_H100 |
22 | 22 | ||
23 | /* Type of mobile power */ | 23 | /* Type of mobile power */ |
24 | #define CONFIG_BATTERY BATT_IRIVER | 24 | #define CONFIG_BATTERY BATT_LIPOL1300 |
25 | 25 | ||
26 | #define BATTERY_SCALE_FACTOR 6465 /* FIX: this value is picked at random */ | 26 | #define BATTERY_SCALE_FACTOR 16665 /* FIX: this value is picked at random */ |
27 | 27 | ||
28 | /* Define this if the platform can charge batteries */ | 28 | /* Define this if the platform can charge batteries */ |
29 | #define HAVE_CHARGING 1 | 29 | #define HAVE_CHARGING 1 |
diff --git a/firmware/export/config.h b/firmware/export/config.h index 201b5317e3..a47581afc7 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -48,7 +48,7 @@ | |||
48 | #define BATT_LIION2200 2200 /* FM/V2 recorder type */ | 48 | #define BATT_LIION2200 2200 /* FM/V2 recorder type */ |
49 | #define BATT_4AA_NIMH 1500 | 49 | #define BATT_4AA_NIMH 1500 |
50 | #define BATT_3AAA 1000 /* Ondio */ | 50 | #define BATT_3AAA 1000 /* Ondio */ |
51 | #define BATT_IRIVER 2 /* the type used in iRiver h1x0 models */ | 51 | #define BATT_LIPOL1300 1300 /* the type used in iRiver h1x0 models */ |
52 | 52 | ||
53 | /* CONFIG_LCD */ | 53 | /* CONFIG_LCD */ |
54 | #define LCD_GMINI100 0 | 54 | #define LCD_GMINI100 0 |
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 */ |