mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
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
This commit is contained in:
parent
e435e4d976
commit
69a4117c1d
16 changed files with 413 additions and 231 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue