diff options
Diffstat (limited to 'include/battery.h')
-rw-r--r-- | include/battery.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/battery.h b/include/battery.h index 4d88ca7b9a..5644a22da2 100644 --- a/include/battery.h +++ b/include/battery.h @@ -14,5 +14,17 @@ #define BATTERY_LEVEL_CRITICAL 5 #define BATTERY_LEVEL_SHUTDOWN 3 +/* Stop charge when state of charge reaches this percentage */ +#define STOP_CHARGE_THRESHOLD 100 +/* Threshold for power led to turn green */ +#define POWERLED_GREEN_THRESHOLD 90 + +/* Define the lightbar thresholds, as though we care. */ +#define LIGHTBAR_POWER_THRESHOLD_BLUE 90 +#define LIGHTBAR_POWER_THRESHOLD_GREEN 40 +#define LIGHTBAR_POWER_THRESHOLD_YELLOW 10 +/* Red below 10% */ + + #endif /* __CROS_EC_BATTERY_H */ |