summaryrefslogtreecommitdiff
path: root/include/charger.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/charger.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/charger.h')
-rw-r--r--include/charger.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/charger.h b/include/charger.h
index bb84990856..8b65c388f3 100644
--- a/include/charger.h
+++ b/include/charger.h
@@ -107,5 +107,8 @@ int charger_device_id(int *id);
int charger_get_option(int *option);
int charger_set_option(int option);
+/* Print all charger info for debugging purposes */
+void print_charger_debug(void);
+
#endif /* __CROS_EC_CHARGER_H */