summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2013-09-02 13:55:02 +0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-09-05 07:20:56 +0000
commitb448746bace6d021343bfec615d1cf98f7be17bb (patch)
tree839a25cfa03d6114a225d88fa324fe2b51598cda /core
parent6c3be20539a3b336e2c1c83181ea6f9b0c1506d2 (diff)
downloadchrome-ec-b448746bace6d021343bfec615d1cf98f7be17bb.tar.gz
Add boot key test
This checks boot key combination like Power-F3-ESC and Power-F3-Down can be properly detected. BUG=chrome-os-partner:19236 TEST=Pass kb_scan test BRANCH=None Change-Id: I180918977299219a8421798dac2ab9fed84ef9a2 Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/167802
Diffstat (limited to 'core')
-rw-r--r--core/host/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/host/main.c b/core/host/main.c
index ed8985670b..2e01267626 100644
--- a/core/host/main.c
+++ b/core/host/main.c
@@ -8,6 +8,7 @@
#include "console.h"
#include "flash.h"
#include "hooks.h"
+#include "keyboard_scan.h"
#include "system.h"
#include "task.h"
#include "test_util.h"
@@ -35,7 +36,12 @@ int main(int argc, char **argv)
system_pre_init();
system_common_pre_init();
+ test_init();
+
timer_init();
+#ifdef HAS_TASK_KEYSCAN
+ keyboard_scan_init();
+#endif
hook_init();
uart_init();