This CL also includes 4 pieces:
1. main files: environment-independent (main.c) and
-dependent (ec_keyboard_test.c).
2. stub files: chip_stub/keyboard.c simulates the real hardware.
chip_stub/keyboard.h is the header of testing functions.
3. initial keyboard lib code: ec_keyboard.h
4. rename Cr* function name to Ec* under chip_interface/.
BUG=None
TEST=make && make runtests
Expect seeing the output debug message from cros_ec/lib/ec_keyboard.c.
Change-Id: Ia7e8022060eb0a5d0a11abcbdb3f524942f5c68d
The first version of EC command table to communicate with host side.
Also bring in the README file.
BUG=None
TEST=None
Change-Id: Ic7583beb85ed866d73ef0f4e7fccd590b3943932
This lets us write modules which don't know the details of the RTOS
objects they use. More importantly, this lets us target those modules
at either Linux (using the pthread-based implementation in chip_stub)
or actual hardware, so we can write Linux-based unit tests.
BUG=None
TEST=make && ./ec_os_test
Change-Id: I2923b9a48248b27f3bc3b0346d5a870fef8a1c5b
(cherry picked from commit 6ccc37af9fb916f7ad70f542905ba8bacb8e3be2)