summaryrefslogtreecommitdiff
path: root/board/tigertail/ec.tasklist
diff options
context:
space:
mode:
authorNick Sanders <nsanders@chromium.org>2017-02-06 22:08:58 -0800
committerchrome-bot <chrome-bot@chromium.org>2017-03-21 16:47:38 -0700
commitc2482183ae88ebdc61837531668c87b5c5dc1322 (patch)
tree6dc99b8125dce8ee28df2303a59963dac318d636 /board/tigertail/ec.tasklist
parentecf28dc3e6f8b2b00a16a988956f9ba421d503ed (diff)
downloadchrome-ec-c2482183ae88ebdc61837531668c87b5c5dc1322.tar.gz
tigertail: usb-c mux
tigertail allows muxing a usb-c port onto two different passthough targets. This allows for automated switching between USB host and device without DUT or endpoint knowledge. tigertail also routes SBU lines to stm32 UART, and has INAs on VBUS and VCONN to measure power. BUG=b:35849284 BRANCH=None TEST=Muxing power, muxing USB, uart works, INAs work. Change-Id: I5bf2ba038aa78e59352ad99cd71efb0f0d0fbec9 Reviewed-on: https://chromium-review.googlesource.com/438677 Commit-Ready: Nick Sanders <nsanders@chromium.org> Tested-by: Nick Sanders <nsanders@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board/tigertail/ec.tasklist')
-rw-r--r--board/tigertail/ec.tasklist21
1 files changed, 21 insertions, 0 deletions
diff --git a/board/tigertail/ec.tasklist b/board/tigertail/ec.tasklist
new file mode 100644
index 0000000000..3218df7df3
--- /dev/null
+++ b/board/tigertail/ec.tasklist
@@ -0,0 +1,21 @@
+/* Copyright 2017 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/**
+ * List of enabled tasks in the priority order
+ *
+ * The first one has the lowest priority.
+ *
+ * For each task, use the macro TASK_ALWAYS(n, r, d, s) for base tasks and
+ * TASK_NOTEST(n, r, d, s) for tasks that can be excluded in test binaries,
+ * where :
+ * 'n' in the name of the task
+ * 'r' in the main routine of the task
+ * 'd' in an opaque parameter passed to the routine at startup
+ * 's' is the stack size in bytes; must be a multiple of 8
+ */
+#define CONFIG_TASK_LIST \
+ TASK_ALWAYS(HOOKS, hook_task, NULL, VENTI_TASK_STACK_SIZE) \
+ TASK_ALWAYS(CONSOLE, console_task, NULL, TASK_STACK_SIZE)