diff options
author | Vic Yang <victoryang@chromium.org> | 2012-06-26 15:30:57 +0800 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-06-27 00:55:04 -0700 |
commit | 8b3634ee1f5adc581646edd89309362897a0978b (patch) | |
tree | 0f650a774347a1426f46d498b3ad033da51a5a03 /common/mock_i8042.c | |
parent | 240470a54b234704bd77f9485e06af5fc41d52d2 (diff) | |
download | chrome-ec-8b3634ee1f5adc581646edd89309362897a0978b.tar.gz |
Add a test of i8042 scancode set
This test check correct scan code is sent when I8042_XLATE is enabled or
disabled.
BUG=chrome-os-partner:10286
TEST=Test passed
Change-Id: I939963cbecddb22506e64cb374667c7c2e5b4f8b
Reviewed-on: https://gerrit.chromium.org/gerrit/26096
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Commit-Ready: Vic Yang <victoryang@chromium.org>
Tested-by: Vic Yang <victoryang@chromium.org>
Diffstat (limited to 'common/mock_i8042.c')
-rw-r--r-- | common/mock_i8042.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/common/mock_i8042.c b/common/mock_i8042.c index fc7b1f1e60..2677d7ee7f 100644 --- a/common/mock_i8042.c +++ b/common/mock_i8042.c @@ -34,7 +34,11 @@ void i8042_command_task(void) enum ec_error_list i8042_send_to_host(int len, const uint8_t *bytes) { - uart_printf("i8042 SEND\n"); + int i; + uart_printf("i8042 SEND:"); + for (i = 0; i < len; ++i) + uart_printf(" %02x", bytes[i]); + uart_printf("\n"); return EC_SUCCESS; } |