summaryrefslogtreecommitdiff
path: root/shared-module/usb_hid
AgeCommit message (Collapse)Author
2021-03-15run code formatting scriptmicroDev
2021-02-24Add the missing argument to the HID functionsKamil Tomaszewski
2020-08-19support to get HID OUT reportYihui Xiong
2020-03-13First try at lowering the power consumptionScott Shawcroft
2019-11-18Supervisor: move most of systick to the supervisorJeff Epler
This code is shared by most parts, except where not all the #ifdefs inside the tick function were present in all ports. This mostly would have broken gamepad tick support on non-samd ports. The "ms32" and "ms64" variants of the tick functions are introduced because there is no 64-bit atomic read. Disabling interrupts avoids a low probability bug where milliseconds could be off by ~49.5 days once every ~49.5 days (2^32 ms). Avoiding disabling interrupts when only the low 32 bits are needed is a minor optimization. Testing performed: on metro m4 express, USB still works and time.monotonic_ns() still counts up
2019-09-03trivial change; try to force check runDan Halbert
2019-09-03simpler generation of HID device tablesDan Halbert
2019-09-03WIPDan Halbert
2019-08-10usb_hid: Allow USB work to progress while waiting for tud_hid_readyJeff Epler
Otherwise, examples like the one attached to the related issue fail because tud_hid_ready never returns true. Testing performed: Adapted the example to nrf particle xenon (it was handy), removed dependency on IR, verified that the problem occurred before this change, and that it was fixed after this change. Closes: #2048
2019-07-24update tinyusb lib to 0.5.xhathach
2019-03-27Fix HID buffer lookupScott Shawcroft
The previous code assumed HID report ids were consecutive. This is not true in the CircuitPython descriptor where report ids are fixed for each report type. Fixes #1617
2018-11-09Build refinement to handle warnings and quiet outputScott Shawcroft
2018-11-08Move atmel-samd to tinyusb and support nRF flash.Scott Shawcroft
This started while adding USB MIDI support (and descriptor support is in this change.) When seeing that I'd have to implement the MIDI class logic twice, once for atmel-samd and once for nrf, I decided to refactor the USB stack so its shared across ports. This has led to a number of changes that remove items from the ports folder and move them into supervisor. Furthermore, we had external SPI flash support for nrf pending so I factored out the connection between the usb stack and the flash API as well. This PR also includes the QSPI support for nRF.