summaryrefslogtreecommitdiff
path: root/test/lightbar.tasklist
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2014-08-19 19:01:29 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-08-20 22:42:15 +0000
commitf883354bbad138390142fdeaa554f55ee51551ef (patch)
tree22fcffeda103aae6bd5b81163baa5acf8fffd6cd /test/lightbar.tasklist
parent1b52de3e3c73886784ea1216b34305919449bd24 (diff)
downloadchrome-ec-f883354bbad138390142fdeaa554f55ee51551ef.tar.gz
lightbar: correctly revert to the S0/S3/S5 patterns
This CL ensures that temporary "one-shot" sequences such as KONAMI, TEST, TAP, etc. will revert to the previous "normal" sequences even when interrupted by other one-shot sequences. This also adds a test for those cases. BUG=chrome-os-partner:29873 BRANCH=ToT TEST=manual make runtests Change-Id: Ie83908731acdf2f7c9108568a1ba047943175d26 Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/213230
Diffstat (limited to 'test/lightbar.tasklist')
-rw-r--r--test/lightbar.tasklist18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/lightbar.tasklist b/test/lightbar.tasklist
new file mode 100644
index 0000000000..71a89d6e07
--- /dev/null
+++ b/test/lightbar.tasklist
@@ -0,0 +1,18 @@
+/* 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_TEST(n, r, d, s) 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_TEST_TASK_LIST \
+ TASK_TEST(LIGHTBAR, lightbar_task, NULL, LARGER_TASK_STACK_SIZE)