summaryrefslogtreecommitdiff
path: root/include/battery.h
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2014-05-14 12:13:08 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-05-15 05:28:08 +0000
commit65df2fd6e444f6655838d55af63de59e699238a2 (patch)
tree8049186891b2509a1bced4d30cf4ba15b238d54c /include/battery.h
parent10aecec841361727e7ed8f16a13e0d7a575e77ff (diff)
downloadchrome-ec-65df2fd6e444f6655838d55af63de59e699238a2.tar.gz
Add "debug" option to charge_state_v2.c
This is useful for testing battery charge profiles. When enabled, a dump of all battery, charger, and charge state information will be printed whenever the battery charge percentage changes. BUG=none BRANCH=ToT TEST=make buildall -j On the EC console: chg debug on then watch the console while either charging or discharging the battery. Disable with chg debug off Change-Id: I6725c461461f90fcd812873f97490e980ab47bc6 Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/199816 Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'include/battery.h')
-rw-r--r--include/battery.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/battery.h b/include/battery.h
index e395839546..b61da1833c 100644
--- a/include/battery.h
+++ b/include/battery.h
@@ -309,4 +309,9 @@ int battery_set_vendor_param(uint32_t param, uint32_t value);
*/
int battery_wait_for_stable(void);
+/**
+ * Print all battery info for debugging purposes
+ */
+void print_battery_debug(void);
+
#endif /* __CROS_EC_BATTERY_H */