This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#10326 - USB HID sample application
Attached to Project:
Rockbox
Opened by Tomer Shalev (tomers) - Saturday, 13 June 2009, 15:13 GMT+2
Last edited by Frank Gevaerts (fg) - Saturday, 18 July 2009, 14:58 GMT+2
Opened by Tomer Shalev (tomers) - Saturday, 13 June 2009, 15:13 GMT+2
Last edited by Frank Gevaerts (fg) - Saturday, 18 July 2009, 14:58 GMT+2
|
DetailsThis patch adds a USB HID sample application (remote_control) which enable the user to send HID messages in charging only mode.
The remote control application has three modes: - Desktop: * Escape * Alt-Tab * Shift Alt-Tab * Windows * F10 * Page Up * Page Down - Presentation * Next Slide * Prev Slide * Start Slideshow * Stop Slideshow * Leave Slideshow * Black Screen * White Screen - Media Player * Play * Stop * Next * Previous * Volume Up * Volume Down * Mute Note: This is a work in progress and major parts of the code does not work yet. It is submitted in order to share my work and receive feedback, as well as helping me debug the application. The patch contains the following changes: - Add HID keyboard enumeration, and allow sending keyboard key codes (Status: enumerates, but Windows does not respond to sent keys). - Add usb_hid_send command to the plugin's API - Fix #include issue - Modify signature of usb_hid_send to allow passing usage page - Move large enum structure into a list of #define's - Use BIT_N macro when possible - Add buf_dump to dump a buffer into log (please consider using it in other places for debugging. I don't know where is the appropriate place to put it) - Make coding convention in usb_hid.c consistent in the entire file - Fix endpoints allocation bug in firmware/target/arm/usb-drv-arc.c |
This task depends upon
Closed by Frank Gevaerts (fg)
Saturday, 18 July 2009, 14:58 GMT+2
Reason for closing: Accepted
Additional comments about closing: Committed as r21953
Saturday, 18 July 2009, 14:58 GMT+2
Reason for closing: Accepted
Additional comments about closing: Committed as r21953
Please try:
$ rm -rf build && mkdir build && cd build/ && printf "50\na\nl\n\n" | ../tools/configure && make
Let me know if it works for you. If so, try to build for your own platworm (passing "50" to ../tools/configure means Sansa e200, change it accordingly).
If you still encounter any errors, please provide the output, and additional information, such as 'uname -a'.
Removed irrelevant change to API (control max packet size).
Add 'HID_' prefix to #defines in usb_hid_usage_tables.h