1
0
Fork 0
forked from len0rd/rockbox

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:
Frank Gevaerts 2009-05-16 15:30:09 +00:00
parent e435e4d976
commit 69a4117c1d
16 changed files with 413 additions and 231 deletions

View file

@ -85,10 +85,10 @@ struct usb_class_driver {
#endif
};
#define PACK_DESCRIPTOR(dest, descriptor) \
#define PACK_DATA(dest, data) \
do { \
memcpy(dest, &(descriptor), sizeof(descriptor)); \
dest += sizeof(descriptor); \
memcpy(dest, &(data), sizeof(data)); \
dest += sizeof(data); \
} while (0)
#endif