summaryrefslogtreecommitdiff
path: root/include/hooks.h
diff options
context:
space:
mode:
authorDave Parker <dparker@chromium.org>2013-07-25 22:39:13 -0700
committerChromeBot <chrome-bot@google.com>2013-08-01 11:07:58 -0700
commit8e28efa7ac4bc6cec969a928d1b34b6d423d582f (patch)
tree1c3e7cb6f28a38119bd1e798bc5595734a9fa661 /include/hooks.h
parent706f1211468ebfcd0fc9890b83f8443994a9f7f0 (diff)
downloadchrome-ec-8e28efa7ac4bc6cec969a928d1b34b6d423d582f.tar.gz
Add hook for changes in the charge state machine
BUG=chrome-os-partner:20145 BRANCH=falco,peppy TEST=Manual. Tested with charging timeout logic. Change-Id: Iab1c9746dcab5820fcdeb3e0d94bfcb0c47e57f2 Signed-off-by: Dave Parker <dparker@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/63537 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'include/hooks.h')
-rw-r--r--include/hooks.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/hooks.h b/include/hooks.h
index 59f982eaee..1481a756a0 100644
--- a/include/hooks.h
+++ b/include/hooks.h
@@ -116,6 +116,13 @@ enum hook_type {
HOOK_POWER_BUTTON_CHANGE,
/*
+ * Charge state machine status changed.
+ *
+ * Hook routines are called from the charger task.
+ */
+ HOOK_CHARGE_STATE_CHANGE,
+
+ /*
* Periodic tick, every HOOK_TICK_INTERVAL.
*
* Hook routines will be called from the TICK task.