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/target/mips/ingenic_jz47xx | |
parent | e435e4d976757f8436484a5b4d158ab7545fcdb6 (diff) |
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/target/mips/ingenic_jz47xx')
-rw-r--r-- | firmware/target/mips/ingenic_jz47xx/usb-jz4740.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/usb-jz4740.c b/firmware/target/mips/ingenic_jz47xx/usb-jz4740.c index 14656eed5f..be245ede8c 100644 --- a/firmware/target/mips/ingenic_jz47xx/usb-jz4740.c +++ b/firmware/target/mips/ingenic_jz47xx/usb-jz4740.c @@ -852,10 +852,13 @@ void usb_drv_release_endpoint(int ep) logf("usb_drv_release_endpoint(%d, %s)", (ep & 0x7F), (ep >> 7) ? "IN" : "OUT"); } -int usb_drv_request_endpoint(int dir) +int usb_drv_request_endpoint(int type, int dir) { logf("usb_drv_request_endpoint(%s)", (dir == USB_DIR_IN) ? "IN" : "OUT"); - + + if (type != USB_ENDPOINT_XFER_BULK) + return -1; + /* There are only 3+2 endpoints, so hardcode this ... */ /* Currently only BULK endpoints ... */ if(dir == USB_DIR_OUT) |