diff options
author | Vic Yang <victoryang@chromium.org> | 2013-06-07 11:27:23 +0800 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-06-10 20:21:37 -0700 |
commit | 572193cb9ad4cd909962b2dceff287431221577d (patch) | |
tree | 6d9a0c5cb1c8e17f8423273a82e024b0989b418b /core | |
parent | 2187b4d9acbc1fa9a14ec78e8db4ad0c595c67b0 (diff) | |
download | chrome-ec-572193cb9ad4cd909962b2dceff287431221577d.tar.gz |
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 <victoryang@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/57866
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'core')
-rw-r--r-- | core/host/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |