diff options
author | Nicolas Boichat <drinkcat@google.com> | 2016-11-09 17:35:22 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-11-16 19:04:47 -0800 |
commit | 64f1823a742e4cd39e56f0621d86bae41c709210 (patch) | |
tree | f32024c26dd85c36a80021fb1d6f17f971568ff1 /board/hammer | |
parent | b565e9223d3fe5131c380030155b90e327bc27ef (diff) | |
download | chrome-ec-64f1823a742e4cd39e56f0621d86bae41c709210.tar.gz |
chip/stm32/usb_hid: Separate HID keyboard support
In the future, we'd like to have different HID devices on different
endpoints (keyboard, trackpad, etc.), so we'd like to separate the
keyboard handling.
For other chip implementing usb_hid.c (namely, chip/g), we, for now
just rename the config option and endpoint/interface definitions.
Making the code more generic can be done at a later stage.
BRANCH=none
BUG=chrome-os-partner:59083
TEST=make buildall -j
TEST=make BOARD=hammer -j && util/flash_ec --board=hammer
Change-Id: Iad1b00fa226f7635c0f34aae6a435dc53a3ea555
Reviewed-on: https://chromium-review.googlesource.com/409256
Commit-Ready: Nicolas Boichat <drinkcat@chromium.org>
Tested-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Mary Ruthven <mruthven@chromium.org>
Diffstat (limited to 'board/hammer')
-rw-r--r-- | board/hammer/board.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/board/hammer/board.h b/board/hammer/board.h index ecb09ef399..86e3cbdce8 100644 --- a/board/hammer/board.h +++ b/board/hammer/board.h @@ -28,6 +28,7 @@ #define CONFIG_STREAM_USB #define CONFIG_USB_UPDATE #define CONFIG_USB_HID +#define CONFIG_USB_HID_KEYBOARD #undef CONFIG_USB_MAXPOWER_MA #define CONFIG_USB_MAXPOWER_MA 100 @@ -41,13 +42,13 @@ /* USB interface indexes (use define rather than enum to expand them) */ #define USB_IFACE_UPDATE 0 -#define USB_IFACE_HID 1 +#define USB_IFACE_HID_KEYBOARD 1 #define USB_IFACE_COUNT 2 /* USB endpoint indexes (use define rather than enum to expand them) */ #define USB_EP_CONTROL 0 #define USB_EP_UPDATE 1 -#define USB_EP_HID 2 +#define USB_EP_HID_KEYBOARD 2 #define USB_EP_COUNT 3 /* Optional features */ |