From 572193cb9ad4cd909962b2dceff287431221577d Mon Sep 17 00:00:00 2001 From: Vic Yang Date: Fri, 7 Jun 2013 11:27:23 +0800 Subject: Console input support for emulator This creates a separate thread that keeps reading characters from stdin and feed to UART process. BUG=chrome-os-partner:19235 TEST=Start up a emulator and type 'help'. See command list. TEST=Pass all tests for 300 times. BRANCH=None Change-Id: I190c1d939b0b4ad0f8f0517d8d7b06f2f3df3832 Signed-off-by: Vic Yang Reviewed-on: https://gerrit.chromium.org/gerrit/57866 Reviewed-by: Vincent Palatin --- core/host/main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/host') diff --git a/core/host/main.c b/core/host/main.c index ba8ec95dcf..f69107af4a 100644 --- a/core/host/main.c +++ b/core/host/main.c @@ -9,6 +9,7 @@ #include "hooks.h" #include "task.h" #include "timer.h" +#include "uart.h" int main(void) { @@ -18,6 +19,8 @@ int main(void) hook_init(); + uart_init(); + task_start(); return 0; -- cgit v1.2.1