From 69a4117c1d15d91836de91abe5f8f93b868ec808 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Sat, 16 May 2009 15:30:09 +0000 Subject: Add working USB HID driver, by Tomer Shalev (part of his GSoC work). This needs support for usb interrupt transfers, so there are some changes in various USB drivers as well (only usb-drv-arc supports it at this point, others won't have working HID yet). HID is disabled for now, as the apps/ part is not included yet. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20962 a1c6a512-1295-4272-9138-f99709370657 --- firmware/usbstack/usb_hid.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'firmware/usbstack/usb_hid.h') diff --git a/firmware/usbstack/usb_hid.h b/firmware/usbstack/usb_hid.h index ff2a33dcbf..bce6943a4d 100644 --- a/firmware/usbstack/usb_hid.h +++ b/firmware/usbstack/usb_hid.h @@ -22,6 +22,7 @@ #define USB_HID_H #include "usb_ch9.h" +#include "usb_hid_usage_tables.h" int usb_hid_request_endpoints(struct usb_class_driver *drv); int usb_hid_set_first_interface(int interface); @@ -32,7 +33,7 @@ void usb_hid_disconnect(void); void usb_hid_transfer_complete(int ep, int dir, int status, int length); bool usb_hid_control_request(struct usb_ctrlrequest* req, unsigned char* dest); -void usb_hid_send(unsigned char *data,int length); +void usb_hid_send_consumer_usage(consumer_usage_page_t id); #endif -- cgit v1.2.3