-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Compute USB_DEVICES instead of requiring it to be specified #3038
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By 8000 clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
These are already disabled via the USB_DEVICES setting, but the code is included anyway.
I think this also has to include the atmel-samd pewpew10 build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe you should also disable CIRCUITPY_USB_(MIDI,HID) for all of the boards that disabled it in the descriptor. That will free up more space.
.. it was not in the USB descriptors anyway (lack of enough endpoints?)
.. it was not in the USB descriptors anyway (lack of enough endpoints?)
.. it was not in the USB descriptors anyway (lack of enough endpoints?)
This makes them all overridable on the board level, tersely
0df3344
to
4933b7a
Compare
Since Actions passed on the previous commit, where this computed value was checked against the specified value (if any), this is no net change, except that we no longer need to specify it for particular boards or ports.
4933b7a
to
f232aef
Compare
This restores the ability to remove CDC and/or MSC, at the price of giving up the new automatic check that USB_DEVICES is correct. Since devices have to have CDC and MSC to be "CircuitPython", this is not a facility that is going to be used by any in-tree drivers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good error checker for now. Thank you ! It can be made more flexible/strict later.
The single Actions failure is not interesting: it's the usual sort of github hiccup.
The CIRCUITPY_USB_yyy disables were added.
If it is possible, it would be nice to avoid the need to change USB_DEVICES when changing CIRCUITPY_USB_HID and ... _MIDI. If #3037 passes CI, then this PR doesn't change anything about available USB devices, it just allows the value to be calculated in all cases.