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/drivers/isp1583.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'firmware/drivers') diff --git a/firmware/drivers/isp1583.c b/firmware/drivers/isp1583.c index f373741586..fa97305b52 100644 --- a/firmware/drivers/isp1583.c +++ b/firmware/drivers/isp1583.c @@ -29,9 +29,6 @@ #include "logf.h" #include "stdio.h" -#define DIR_RX 0 -#define DIR_TX 1 - struct usb_endpoint { unsigned char *out_buf; @@ -602,9 +599,12 @@ void usb_drv_cancel_all_transfers(void) endpoints[i].halt[0] = endpoints[i].halt[1] = 1; } -int usb_drv_request_endpoint(int dir) +int usb_drv_request_endpoint(int type, int dir) { int i, bit; + + if (type != USB_ENDPOINT_XFER_BULK) + return -1; bit=(dir & USB_DIR_IN)? 2:1; -- cgit v1.2.3