summaryrefslogtreecommitdiff
path: root/include/battery.h
diff options
context:
space:
mode:
authorRong Chang <rongchang@chromium.org>2012-03-16 17:01:59 +0800
committerRong Chang <rongchang@chromium.org>2012-03-19 16:08:40 +0800
commite8afc9946a048eef34ccf4328c6a021b74afd98c (patch)
treed988b915855cbb23b0cffe9b170e8445112d9932 /include/battery.h
parent54f8d7e323ce6e36612732b4d107e6ee846c6fad (diff)
downloadchrome-ec-e8afc9946a048eef34ccf4328c6a021b74afd98c.tar.gz
Add battery SMI events and refactor charging state
This CL adds battery SMI events. And refactors the charging state machine by adding share state context for all handlers. Power events are moved to common handler. Minor clean up on console output messages. Signed-off-by: Rong Chang <rongchang@chromium.org> BUG=chrome-os-partner:7526,7937,8450 TEST=manual: Watch console message when connecting/disconnecting AC adapter and battery. Check the state transition. Change-Id: I42eec4f87a9d49bd193cb9dde9080e3dfccbb77c
Diffstat (limited to 'include/battery.h')
-rw-r--r--include/battery.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/battery.h b/include/battery.h
index 2baaf09894..fee0e8b425 100644
--- a/include/battery.h
+++ b/include/battery.h
@@ -8,8 +8,10 @@
#ifndef __CROS_EC_BATTERY_H
#define __CROS_EC_BATTERY_H
-#define BATTERY_WARNING_PERCENTAGE 10
-#define BATTERY_LOW_PERCENTAGE 3
+/* Design capacities, percentage */
+#define BATTERY_LEVEL_WARNING 15
+#define BATTERY_LEVEL_LOW 10
+#define BATTERY_LEVEL_CRITICAL 3
#endif /* __CROS_EC_BATTERY_H */