diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/powermgmt.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/firmware/export/powermgmt.h b/firmware/export/powermgmt.h index 97daf7ce59..29ef9eba95 100644 --- a/firmware/export/powermgmt.h +++ b/firmware/export/powermgmt.h | |||
@@ -20,41 +20,23 @@ | |||
20 | #define _POWERMGMT_H_ | 20 | #define _POWERMGMT_H_ |
21 | 21 | ||
22 | #if CONFIG_BATTERY == BATT_LIION2200 /* FM Recorder, LiIon */ | 22 | #if CONFIG_BATTERY == BATT_LIION2200 /* FM Recorder, LiIon */ |
23 | #define BATTERY_LEVEL_SHUTDOWN 260 /* 2.60V */ | ||
24 | #define BATTERY_LEVEL_EMPTY 265 /* 2.65V */ | ||
25 | #define BATTERY_LEVEL_DANGEROUS 280 /* 2.80V */ | ||
26 | #define BATTERY_LEVEL_FULL 400 /* 4.00V */ | ||
27 | #define BATTERY_CAPACITY_MIN 2200 | 23 | #define BATTERY_CAPACITY_MIN 2200 |
28 | #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable in settings */ | 24 | #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable in settings */ |
29 | #define BATTERY_TYPES_COUNT 1 | 25 | #define BATTERY_TYPES_COUNT 1 |
30 | #elif CONFIG_BATTERY == BATT_3AAA /* Ondio */ | 26 | #elif CONFIG_BATTERY == BATT_3AAA /* Ondio */ |
31 | #define BATTERY_LEVEL_SHUTDOWN 260 /* 2.60V */ | ||
32 | #define BATTERY_LEVEL_EMPTY 270 /* 2.70V */ | ||
33 | #define BATTERY_LEVEL_DANGEROUS 280 /* 2.80V */ | ||
34 | #define BATTERY_LEVEL_FULL 475 /* 4.75V */ | ||
35 | #define BATTERY_CAPACITY_MIN 500 | 27 | #define BATTERY_CAPACITY_MIN 500 |
36 | #define BATTERY_CAPACITY_MAX 1500 /* max. capacity selectable in settings */ | 28 | #define BATTERY_CAPACITY_MAX 1500 /* max. capacity selectable in settings */ |
37 | #define BATTERY_TYPES_COUNT 2 /* Alkalines or NiMH */ | 29 | #define BATTERY_TYPES_COUNT 2 /* Alkalines or NiMH */ |
38 | #elif CONFIG_BATTERY == BATT_LIPOL1300 /* iRiver H1x0 */ | 30 | #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 | 31 | #define BATTERY_CAPACITY_MIN 1300 |
44 | #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable in settings */ | 32 | #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable in settings */ |
45 | #define BATTERY_TYPES_COUNT 1 | 33 | #define BATTERY_TYPES_COUNT 1 |
46 | #else /* Recorder, NiMH */ | 34 | #else /* Recorder, NiMH */ |
47 | #define BATTERY_LEVEL_SHUTDOWN 450 /* 4.50V */ | ||
48 | #define BATTERY_LEVEL_EMPTY 465 /* 4.65V */ | ||
49 | #define BATTERY_LEVEL_DANGEROUS 475 /* 4.75V */ | ||
50 | #define BATTERY_LEVEL_FULL 585 /* 5.85V */ | ||
51 | #define BATTERY_CAPACITY_MIN 1500 | 35 | #define BATTERY_CAPACITY_MIN 1500 |
52 | #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable in settings */ | 36 | #define BATTERY_CAPACITY_MAX 3200 /* max. capacity selectable in settings */ |
53 | #define BATTERY_TYPES_COUNT 1 | 37 | #define BATTERY_TYPES_COUNT 1 |
54 | #endif | 38 | #endif |
55 | 39 | ||
56 | #define BATTERY_RANGE (BATTERY_LEVEL_FULL - BATTERY_LEVEL_EMPTY) | ||
57 | |||
58 | #define POWER_HISTORY_LEN 2*60 /* 2 hours of samples, one per minute */ | 40 | #define POWER_HISTORY_LEN 2*60 /* 2 hours of samples, one per minute */ |
59 | 41 | ||
60 | #define CHARGE_END_NEGD 6 /* stop when N minutes have passed with | 42 | #define CHARGE_END_NEGD 6 /* stop when N minutes have passed with |