diff options
Diffstat (limited to 'firmware/export/powermgmt.h')
-rw-r--r-- | firmware/export/powermgmt.h | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/firmware/export/powermgmt.h b/firmware/export/powermgmt.h index a4b924915c..c6fc3d5bdf 100644 --- a/firmware/export/powermgmt.h +++ b/firmware/export/powermgmt.h | |||
@@ -81,28 +81,13 @@ void powermgmt_init(void) INIT_ATTR; | |||
81 | /* Generic current values that are intentionally meaningless - config header | 81 | /* Generic current values that are intentionally meaningless - config header |
82 | * should define proper numbers.*/ | 82 | * should define proper numbers.*/ |
83 | 83 | ||
84 | |||
85 | #ifndef CURRENT_BACKLIGHT | ||
86 | #define CURRENT_BACKLIGHT 5 /* additional current when backlight always on */ | ||
87 | #endif | ||
88 | |||
89 | #if defined(HAVE_RECORDING) && !defined(CURRENT_RECORD) | ||
90 | #define CURRENT_RECORD 2 /* additional recording current */ | ||
91 | #endif /* HAVE_RECORDING && !CURRENT_RECORD*/ | ||
92 | |||
93 | #ifndef CURRENT_USB | 84 | #ifndef CURRENT_USB |
94 | #define CURRENT_USB 2 /* usual current in mA in USB mode */ | 85 | #define CURRENT_USB 2 /* usual current in mA in USB mode */ |
95 | #endif | 86 | #endif |
96 | 87 | ||
97 | #if defined(HAVE_REMOTE_LCD) && !defined(CURRENT_REMOTE) | 88 | #if CONFIG_CHARGING && !defined(CURRENT_MAX_CHG) |
98 | #define CURRENT_REMOTE 2 /* additional current when remote connected */ | ||
99 | #endif /* CURRENT_REMOTE && !HAVE_REMOTE_LCD */ | ||
100 | |||
101 | #if CONFIG_CHARGING | ||
102 | #ifndef CURRENT_MAX_CHG | ||
103 | #define CURRENT_MAX_CHG 350 /* maximum charging current */ | 89 | #define CURRENT_MAX_CHG 350 /* maximum charging current */ |
104 | #endif | 90 | #endif |
105 | #endif /* CONFIG_CHARGING */ | ||
106 | 91 | ||
107 | #ifndef BATT_AVE_SAMPLES | 92 | #ifndef BATT_AVE_SAMPLES |
108 | /* slw filter constant unless otherwise specified */ | 93 | /* slw filter constant unless otherwise specified */ |
@@ -126,6 +111,8 @@ extern const unsigned short percent_to_volt_charge[11]; | |||
126 | int battery_level(void); /* percent */ | 111 | int battery_level(void); /* percent */ |
127 | int battery_time(void); /* minutes */ | 112 | int battery_time(void); /* minutes */ |
128 | int battery_voltage(void); /* filtered batt. voltage in millivolts */ | 113 | int battery_voltage(void); /* filtered batt. voltage in millivolts */ |
114 | int battery_current(void); /* battery current in milliamps | ||
115 | * (may just be a rough estimate) */ | ||
129 | 116 | ||
130 | /* Implemented by the target, unfiltered */ | 117 | /* Implemented by the target, unfiltered */ |
131 | int _battery_level(void); /* percent */ | 118 | int _battery_level(void); /* percent */ |