summaryrefslogtreecommitdiff
path: root/test/power_button.tasklist
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2012-06-17 15:51:00 +0800
committerGerrit <chrome-bot@google.com>2012-06-25 07:15:52 -0700
commit7eabcb4e69aa5e19d92a8ab84806bc92377a82aa (patch)
tree95e03ad9edacaa8390f2c5a6b085843387206624 /test/power_button.tasklist
parent7ae80c05522afb393eac816e5e4e9f3993e1b1ed (diff)
downloadchrome-ec-7eabcb4e69aa5e19d92a8ab84806bc92377a82aa.tar.gz
Add a test of checking power button handling
This test checks power button is correctly debounced, and also check power button press of different length are handled correctly. BUG=chrome-os-partner:10273 TEST=Test passed Change-Id: I18595c60896255d36326731d28bab55e64c6bca2 Reviewed-on: https://gerrit.chromium.org/gerrit/25505 Reviewed-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org> Tested-by: Vic Yang <victoryang@chromium.org> Commit-Ready: Vic Yang <victoryang@chromium.org>
Diffstat (limited to 'test/power_button.tasklist')
-rw-r--r--test/power_button.tasklist24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/power_button.tasklist b/test/power_button.tasklist
new file mode 100644
index 0000000000..293d200041
--- /dev/null
+++ b/test/power_button.tasklist
@@ -0,0 +1,24 @@
+/* Copyright (c) 2011 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(n, r, d) 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
+ */
+#define CONFIG_TASK_LIST \
+ TASK(WATCHDOG, watchdog_task, NULL) \
+ TASK(PWM, pwm_task, NULL) \
+ TASK(TYPEMATIC, keyboard_typematic_task, NULL) \
+ TASK(X86POWER, x86_power_task, NULL) \
+ TASK(I8042CMD, i8042_command_task, NULL) \
+ TASK(POWERBTN, power_button_task, NULL) \
+ TASK(KEYSCAN, keyboard_scan_task, NULL) \
+ TASK(CONSOLE, console_task, NULL)