-
-
Notifications
You must be signed in to change notification settings - Fork 40k
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 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
core: bump USB spec version in device descriptor to 2.0 #13078
Conversation
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.
n
Honestly, I'm not exactly happy with the name for the define, but ... I suck at naming. Also, could this be documented in: https://github.com/qmk/qmk_firmware/blob/master/docs/config_options.md |
Sure. Updated the docs. |
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'm kinda wondering if this even needs a define - all of the MCUs these descriptors currently cover seem to comply with USB 2.0 FS. My previous assumption was this value had to be 1.1 because a USB 2.0 device must also provide a device qualifier descriptor, but I'm now thinking that's only if it is capable of running at high speed and full speed:
https://www.keil.com/pack/doc/mw/USB/html/_u_s_b__device__qualifier__descriptor.html
A high-speed capable device that has different device information for full-speed and high-speed must have a Device Qualifier Descriptor (USB_DEVICE_QUALIFIER_DESCRIPTOR). For example, if the device is currently operating at full-speed, the Device Qualifier returns information about how it would operate at high-speed and vice-versa.
What happens if you define this for, say, an ATmega32U4? If the Windows, macOS and Linux don't complain, I'd say just change it...
Unfortunately, I don’t have an ATmega32U4 handy. Could you test it, or should we file an issue and address that separately from this change at a later point? |
Ah, yeah, https://community.osr.com/discussion/249588/where-is-the-usb-2-1-specification seems to confirm. Changed it to |
Co-authored-by: Ryan <[email protected]>
Co-authored-by: Ryan <[email protected]>
Done |
Co-authored-by: Ryan <[email protected]>
Co-authored-by: Ryan <[email protected]>
Co-authored-by: Ryan <[email protected]>
Co-authored-by: Ryan <[email protected]>
Description
The Teensy 4.x comes with USB 2.0 support. This change is required to make the device advertise itself as USB 2.0 in the USB device descriptor.
Types of Changes
Checklist