diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2009-05-16 15:30:09 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2009-05-16 15:30:09 +0000 |
commit | 69a4117c1d15d91836de91abe5f8f93b868ec808 (patch) | |
tree | a3d47f51a0998506ef7b0f5332ddecae3e2106d2 /firmware/drivers | |
parent | e435e4d976757f8436484a5b4d158ab7545fcdb6 (diff) | |
download | rockbox-69a4117c1d15d91836de91abe5f8f93b868ec808.tar.gz rockbox-69a4117c1d15d91836de91abe5f8f93b868ec808.zip |
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
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/isp1583.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 @@ | |||
29 | #include "logf.h" | 29 | #include "logf.h" |
30 | #include "stdio.h" | 30 | #include "stdio.h" |
31 | 31 | ||
32 | #define DIR_RX 0 | ||
33 | #define DIR_TX 1 | ||
34 | |||
35 | struct usb_endpoint | 32 | struct usb_endpoint |
36 | { | 33 | { |
37 | unsigned char *out_buf; | 34 | unsigned char *out_buf; |
@@ -602,9 +599,12 @@ void usb_drv_cancel_all_transfers(void) | |||
602 | endpoints[i].halt[0] = endpoints[i].halt[1] = 1; | 599 | endpoints[i].halt[0] = endpoints[i].halt[1] = 1; |
603 | } | 600 | } |
604 | 601 | ||
605 | int usb_drv_request_endpoint(int dir) | 602 | int usb_drv_request_endpoint(int type, int dir) |
606 | { | 603 | { |
607 | int i, bit; | 604 | int i, bit; |
605 | |||
606 | if (type != USB_ENDPOINT_XFER_BULK) | ||
607 | return -1; | ||
608 | 608 | ||
609 | bit=(dir & USB_DIR_IN)? 2:1; | 609 | bit=(dir & USB_DIR_IN)? 2:1; |
610 | 610 | ||