Choose which USB and USB HID devices to include at compile-time (superseded by #2116) #2115
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Make it easy to enable and disable which USB and USB HID devices to include at build time, using two makefile variables. Defaults are:
For instance, in
mpconfigboard.mk
, you can define those variables:A couple of new HID devices have been added, but are not in the default set. The entire set is
KEYBOARD,MOUSE,CONSUMER,SYS_CONTROL,GAMEPAD,DIGITIZER,XAC_COMPATIBLE_GAMEPAD,RAW
If only one HID device is chosen, then it will not have a report ID in the generated HID descriptor.
XAC_COMPATIBLE_GAMEPAD
is an alternate gamepad that is compatible with the Microsoft XAC controller.RAW
is a 64-bit raw HID device, usage page0xFFAF
, usage0xAF
(AF
is "AdaFruit").RAW
cannot be used with other HID devices, because it cannot have a report id.The mechanism for generating the table of
usb_hid.Device
entries has also been simplified. More code is generated and less is done by tricky Makefile variables.This partially addresses some needs state in #1015 but does not allow generation of USB or USB HID descriptors at run-time, in
boot.py
.Tagging @ATMakersBill and @hierophect for interest.