forked from len0rd/rockbox
Flyspray: FS#10326
Author: Tomer Shalev Adds a USB HID sample application, a plugin tha allows to send HID commands while connected in non-storage mode. This also removes the HID stuff in the debug menu. Testing is now easily doable from the plugin Also general HID updates git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21953 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
06bb5ea004
commit
e409fba7f8
10 changed files with 1288 additions and 517 deletions
|
@ -51,6 +51,10 @@
|
|||
#include "bidi.h"
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_USBSTACK) && defined(USB_ENABLE_HID)
|
||||
#include "usbstack/usb_hid.h"
|
||||
#endif
|
||||
|
||||
#ifdef SIMULATOR
|
||||
#define PREFIX(_x_) sim_ ## _x_
|
||||
#else
|
||||
|
@ -660,6 +664,10 @@ static const struct plugin_api rockbox_api = {
|
|||
appsversion,
|
||||
/* new stuff at the end, sort into place next time
|
||||
the API gets incompatible */
|
||||
|
||||
#if defined(HAVE_USBSTACK) && defined(USB_ENABLE_HID)
|
||||
usb_hid_send,
|
||||
#endif
|
||||
};
|
||||
|
||||
int plugin_load(const char* plugin, const void* parameter)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue