summaryrefslogtreecommitdiff
path: root/firmware/usbstack/usb_hid.c (follow)
Commit message (Collapse)AuthorAge
* [WIP] DuckyScript pluginFranklin Wei2016-07-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows a DAP to behave like a USB Rubber Ducky by executing DuckyScript files, which is a BASIC-like language with facilities for sending keystrokes. A "crash course" on the language can be found at http://71.71.39.6/ducky.txt This plugin also implements several extensions to vanilla DuckyScript, some of which are listed below (see source for complete documentation). - variables (multicharacter names via hash map) - control flow (JUMP/GOTO, IF) with labels - expression parsing when a number is needed - non-decimal bases - bytecode compilation (on computer only) The compiler and related tools can be found here: https://github.com/theunamedguy/ducky NOTE: Changes some entries in the HID usage tables, but doesn't break anything. TODO: - Finish up manual entry - Further documentation? - More optimization? - Arrays (how?) - TEST, TEST, TEST! - Some features have only been marginally tested and MIGHT NOT WORK CORRECTLY - FASTER TYPING!!! - Currently averages ~96 keys/sec - Theoretical maximum: 500 keys/sec - Of interest: G#1223 (http://gerrit.rockbox.org/r/1223/) Change-Id: I149ecd08ba124f8b8637a002ee2652dd54a44e58
* fixFranklin Wei2016-06-15
| | | | Change-Id: I72d59bb654920b17b031c870f73e8209f9b0cb28
* Merge branch 'otp' into workingFranklin Wei2016-06-15
|\ | | | | | | Change-Id: Ieeaae330e8330189e87ee6726848178d0b9934e7
| * OTP plugin: new features, cleanupFranklin Wei2016-06-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * "Type Code" feature * Export feature * Encryption feature (AES128-CTR) * Refactor menus * Should be backwards-compatible with old versions * Some code by Amaury Pouly * Adds tiny-AES128-c to plugins/lib * Security might need to be reviewed before merge Change-Id: Ie333e429364124fda312e1da01730fe516adffa5
| * usb: implement blocking receiveFranklin Wei2016-06-14
| | | | | | | | | | | | XXX explain why this is useful Change-Id: I680fc8daf3b97e311dcb05baac8628cee2abf70e
* | FixFranklin Wei2016-06-14
| | | | | | | | Change-Id: I0def5ee506bc3c5fff97bcd8f6b3d228f2503822
* | OTP workFranklin Wei2016-06-14
| | | | | | | | Change-Id: I36bf75218e8e032e6dbb67792c4f2ff40ceaadc3
* | usb: implement blocking receiveFranklin Wei2016-06-13
|/ | | | | | XXX explain why this is useful Change-Id: I680fc8daf3b97e311dcb05baac8628cee2abf70e
* usb PACK_DATA: use a static inline to enable type checkingRafaël Carré2011-12-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31467 a1c6a512-1295-4272-9138-f99709370657
* usb_hid: fix r31457Rafaël Carré2011-12-29
| | | | | | | | | | descriptor_hid_get() updates its parameter so we need to take its address the update is hidden inside PACK_DATA macro Fix HID on the Fuze+ Reported by jlbiasini git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31466 a1c6a512-1295-4272-9138-f99709370657
* USB HID: cosmetics / simplificationsRafaël Carré2011-12-28
| | | | | | | | | | Declare loop variables inside for() ala C99 Remove useless casts Remove one level of pointer indirection in descriptor_hid_get() Simplify a few switch() Align case on the same level than switch git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31457 a1c6a512-1295-4272-9138-f99709370657
* Commit a HID fix by gevaerts that prevent the HID driver to call ↵Amaury Pouly2010-03-25
| | | | | | usb_drv_send_nonblocking while the previous transfer has not finished because the current stack doesn't support transfer queueing. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25329 a1c6a512-1295-4272-9138-f99709370657
* Fix a compilation warning (simulator build on 64-bit host).Amaury Pouly2010-01-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24251 a1c6a512-1295-4272-9138-f99709370657
* Make a few global variables static instead of global where possibleBertrik Sikken2010-01-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24206 a1c6a512-1295-4272-9138-f99709370657
* Comment out LOGF_ENABLE defines everywhere, replace evil commentsJeffrey Goode2009-11-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23497 a1c6a512-1295-4272-9138-f99709370657
* Change control handling to start expecting host packets before sending data ↵Frank Gevaerts2009-10-19
| | | | | | to the host. This makes the handling less timing sensitive on some controllers git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23263 a1c6a512-1295-4272-9138-f99709370657
* Fix yellowTomer Shalev2009-10-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22916 a1c6a512-1295-4272-9138-f99709370657
* Commit "FS#10468 - USB HID: Show keypad mode on screen"Tomer Shalev2009-09-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22852 a1c6a512-1295-4272-9138-f99709370657
* Various files: make functions static if they're local or make sure there is ↵Bertrik Sikken2009-08-06
| | | | | | a proper #include if not git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22184 a1c6a512-1295-4272-9138-f99709370657
* Flyspray: FS#10326Frank Gevaerts2009-07-18
| | | | | | | | | | | 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
* Reorganise USB stack defines. Now config.h decides which class drivers get ↵Frank Gevaerts2009-05-23
| | | | | | | | | enabled instead of usb_core.h Also enable HID, and use that as the dummy class instead of charging-only for controllers that have working interrupt transfers. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21053 a1c6a512-1295-4272-9138-f99709370657
* Add working USB HID driver, by Tomer Shalev (part of his GSoC work).Frank Gevaerts2009-05-16
| | | | | | | | | 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
* Add preliminary HID driver. It doesn't do anything yet, but that should ↵Frank Gevaerts2009-04-19
change soon (FS#10116 by Tomer Shalev) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20750 a1c6a512-1295-4272-9138-f99709370657