diff options
author | Nicolas Boichat <drinkcat@google.com> | 2016-11-14 14:45:59 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-11-22 14:52:40 -0800 |
commit | f940d4f51618f00e4d4ee00c95805d0f7ec36bc5 (patch) | |
tree | c9c3f969956c0da3e1d88d91a906287c33f3727b /chip/npcx/build.mk | |
parent | 481fede513cf43e8bdd145614cd04dd2b2566e17 (diff) | |
download | chrome-ec-f940d4f51618f00e4d4ee00c95805d0f7ec36bc5.tar.gz |
chip/stm32/usb_hid_keyboard: Add functions for keyscan
This first cleans up the code:
- Define report as a structure.
- Fix USB interval from 40 ms to 32 ms (Linux kernel complains
otherwise).
Then, this removes the old set_keyboard_report interface, and
replaces it by the interface used by the keyboard scanner
(i.e. keyboard_state_changed and keyboard_clear_buffer).
This also means we need a keycode table to translate from
row/column to USB HID keycode.
BRANCH=none
BUG=chrome-os-partner:59083
TEST=make buildall -j
TEST=make BOARD=hammer -j && util/flash_ec --board=hammer
With evtest and "hid 0-7" in console, check that key are
reported correctly.
Change-Id: I5d526db1568c29c7f28fc5e962e213e44303cc16
Reviewed-on: https://chromium-review.googlesource.com/411571
Commit-Ready: Nicolas Boichat <drinkcat@chromium.org>
Tested-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'chip/npcx/build.mk')
0 files changed, 0 insertions, 0 deletions