summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Brockus <dbrockus@google.com>2021-02-17 12:27:33 -0700
committerCommit Bot <commit-bot@chromium.org>2021-03-01 22:49:57 +0000
commit3f9cf0b2a131ecd6b83f031332fd6ea7e81b203b (patch)
tree96f25b27d280f2aaeb311bbbc4d91f4791660c24 /include
parent6cb085f37d5a8f53c6d004214fdd6a8e7b9acf1a (diff)
downloadchrome-ec-3f9cf0b2a131ecd6b83f031332fd6ea7e81b203b.tar.gz
TCPMv2: PD Timers - Add pd_timer_dump debug
Add "pd X timer" command to pd_console BUG=b:178029034 BRANCH=none TEST=ec console: pd timer Signed-off-by: Denis Brockus <dbrockus@google.com> Change-Id: I108108adf4cbbdec0c233831830182b8835a7ba3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2707806 Commit-Queue: Denis Brockus <dbrockus@chromium.org> Tested-by: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/usb_tc_sm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/usb_tc_sm.h b/include/usb_tc_sm.h
index f29015b015..ae8e6ecd78 100644
--- a/include/usb_tc_sm.h
+++ b/include/usb_tc_sm.h
@@ -332,6 +332,14 @@ void tc_start_event_loop(int port);
void tc_pause_event_loop(int port);
/**
+ * Determine if the state machine event loop is paused
+ *
+ * @param port USB-C port number
+ * @return true if paused, else false
+ */
+bool tc_event_loop_is_paused(int port);
+
+/**
* Increase the frequency of waking the event loop for high priority cases
*
* @param port USB-C port number