g: The hid command is only useful for debugging

And even that's a bit of a stretch. This entire endpoint will
probably be deactivated until it's more useful. In the meantime,
we can just leave the one little debug command for debug builds.

BUG=chrome-os-partner:57408
BRANCH=none
TEST=make buildall; try on Gru with and without CR50_DEV=1

Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Change-Id: Id4c185fe66d52fa49fcbee6a549df41d297c41af
Reviewed-on: https://chromium-review.googlesource.com/391045
Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
Bill Richardson
2016-09-30 10:53:45 -07:00
parent fa7f71cd84
commit 6356e17eef

View File

@@ -135,6 +135,8 @@ static int hid_iface_request(struct usb_setup_packet *req)
}
USB_DECLARE_IFACE(USB_IFACE_HID, hid_iface_request);
#ifdef CR50_DEV
/* Just for debugging */
static int command_hid(int argc, char **argv)
{
uint8_t keycode = 0x0a; /* 'G' key */
@@ -156,3 +158,4 @@ static int command_hid(int argc, char **argv)
DECLARE_CONSOLE_COMMAND(hid, command_hid,
"[<HID keycode>]",
"test USB HID driver");
#endif