summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@google.com>2016-11-14 14:45:59 +0800
committerchrome-bot <chrome-bot@chromium.org>2016-11-22 14:52:40 -0800
commitf940d4f51618f00e4d4ee00c95805d0f7ec36bc5 (patch)
treec9c3f969956c0da3e1d88d91a906287c33f3727b /include
parent481fede513cf43e8bdd145614cd04dd2b2566e17 (diff)
downloadchrome-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 'include')
-rw-r--r--include/usb_hid_keyboard.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/include/usb_hid_keyboard.h b/include/usb_hid_keyboard.h
deleted file mode 100644
index 92d8fd7a25..0000000000
--- a/include/usb_hid_keyboard.h
+++ /dev/null
@@ -1,14 +0,0 @@
-/* Copyright 2016 The Chromium OS Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- *
- * USB HID definitions.
- */
-
-#ifndef __CROS_EC_USB_HID_KEYBOARD_H
-#define __CROS_EC_USB_HID_KEYBOARD_H
-
-/* class implementation interfaces */
-void set_keyboard_report(uint64_t rpt);
-
-#endif