summaryrefslogtreecommitdiff
path: root/firmware/export/powermgmt.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/powermgmt.h')
-rw-r--r--firmware/export/powermgmt.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/export/powermgmt.h b/firmware/export/powermgmt.h
index 30fe60c293..ba2cc02318 100644
--- a/firmware/export/powermgmt.h
+++ b/firmware/export/powermgmt.h
@@ -63,7 +63,7 @@ extern int trickle_sec; /* trickle charge: How many seconds per minute
63 63
64#if CONFIG_CHARGING >= CHARGING_MONITOR 64#if CONFIG_CHARGING >= CHARGING_MONITOR
65typedef enum { /* sorted by increasing charging current */ 65typedef enum { /* sorted by increasing charging current */
66 DISCHARGING = 0, 66 DISCHARGING = 0,
67 TRICKLE, /* Can occur for CONFIG_CHARGING >= CHARGING_MONITOR */ 67 TRICKLE, /* Can occur for CONFIG_CHARGING >= CHARGING_MONITOR */
68 TOPOFF, /* Can occur for CONFIG_CHARGING == CHARGING_CONTROL */ 68 TOPOFF, /* Can occur for CONFIG_CHARGING == CHARGING_CONTROL */
69 CHARGING /* Can occur for all CONFIG_CHARGING options */ 69 CHARGING /* Can occur for all CONFIG_CHARGING options */
@@ -126,6 +126,9 @@ int battery_time(void); /* minutes */
126 126
127unsigned int battery_voltage(void); /* filtered batt. voltage in centivolts */ 127unsigned int battery_voltage(void); /* filtered batt. voltage in centivolts */
128 128
129/* read unfiltered battery info */
130void battery_read_info(int *adc, int *voltage, int *level);
131
129/* Tells if the battery level is safe for disk writes */ 132/* Tells if the battery level is safe for disk writes */
130bool battery_level_safe(void); 133bool battery_level_safe(void);
131 134