summaryrefslogtreecommitdiff
path: root/board/samus/ec.tasklist
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2013-09-30 09:36:01 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-09-30 18:58:19 +0000
commitaf34e526dbcd7af9466b7d598eeadffe835017e1 (patch)
tree3bc1125494d8d10718e5ec5fb817fccc7ab1c559 /board/samus/ec.tasklist
parent6d522eef9d672c56335ece32cf3473a2e274bea9 (diff)
downloadchrome-ec-af34e526dbcd7af9466b7d598eeadffe835017e1.tar.gz
Create samus board config
This just does a copy/rename from Bolt. Tweaking for Samus' peculiarities will come next. BUG=chrome-os-partner:22870 BRANCH=none TEST=manual The only thing we can check is that it compiles: cd src/platform/ec make BOARD=samus Change-Id: Ied95ebdd1137548b21334b4a65a298c68482c517 Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/171081 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'board/samus/ec.tasklist')
-rw-r--r--board/samus/ec.tasklist29
1 files changed, 29 insertions, 0 deletions
diff --git a/board/samus/ec.tasklist b/board/samus/ec.tasklist
new file mode 100644
index 0000000000..395d068bbb
--- /dev/null
+++ b/board/samus/ec.tasklist
@@ -0,0 +1,29 @@
+/* Copyright (c) 2013 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' is the name of the task
+ * 'r' is the main routine of the task
+ * 'd' is 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, TASK_STACK_SIZE) \
+ TASK_NOTEST(VBOOTHASH, vboot_hash_task, NULL, LARGER_TASK_STACK_SIZE) \
+ TASK_NOTEST(LIGHTBAR, lightbar_task, NULL, TASK_STACK_SIZE) \
+ TASK_ALWAYS(CHARGER, charger_task, NULL, TASK_STACK_SIZE) \
+ TASK_NOTEST(CHIPSET, chipset_task, NULL, TASK_STACK_SIZE) \
+ TASK_NOTEST(KEYPROTO, keyboard_protocol_task, NULL, TASK_STACK_SIZE) \
+ TASK_ALWAYS(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \
+ TASK_ALWAYS(CONSOLE, console_task, NULL, LARGER_TASK_STACK_SIZE) \
+ TASK_ALWAYS(POWERBTN, power_button_task, NULL, TASK_STACK_SIZE) \
+ TASK_NOTEST(KEYSCAN, keyboard_scan_task, NULL, TASK_STACK_SIZE)