From e409fba7f85e9ddf51e2d6a3342dbca6f667e280 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Sat, 18 Jul 2009 12:58:29 +0000 Subject: 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 --- apps/plugin.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'apps/plugin.c') diff --git a/apps/plugin.c b/apps/plugin.c index 84200bbf05..35b4179949 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -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) -- cgit v1.2.3