summaryrefslogtreecommitdiff
path: root/test/kb_8042.tasklist
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2013-07-08 09:54:36 +0800
committerChromeBot <chrome-bot@google.com>2013-07-11 22:32:52 -0700
commit2475cce9ad0e505a45562189e5427683d4ebd65c (patch)
tree1110f516e9d50900ce1cb4492f2743f1639cd8e2 /test/kb_8042.tasklist
parentb2bc8aaa20479a87261aed8611367f11cf33c909 (diff)
downloadchrome-ec-2475cce9ad0e505a45562189e5427683d4ebd65c.tar.gz
Add I8042 keyboard unit test
This tests I8042 scancode and typematic. BUG=chrome-os-partner:19236 TEST=Pass all tests many times. BRANCH=None Change-Id: I8457b7b807b694b0bae32abf1647961f946dc5e1 Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/61553 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'test/kb_8042.tasklist')
-rw-r--r--test/kb_8042.tasklist20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/kb_8042.tasklist b/test/kb_8042.tasklist
new file mode 100644
index 0000000000..7f87e24129
--- /dev/null
+++ b/test/kb_8042.tasklist
@@ -0,0 +1,20 @@
+/* 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(KEYPROTO, keyboard_protocol_task, NULL, TASK_STACK_SIZE) \
+ TASK_TEST(KEYSCAN, keyboard_scan_task, NULL, 256) \
+ TASK_TEST(CHIPSET, chipset_task, NULL, TASK_STACK_SIZE)