-
-
Notifications
You must be signed in to change notification settings - Fork 40.2k
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
V-USB Interface reorder #9090
V-USB Interface reorder #9090
Conversation
This might seem irrelevant now as we only got 2 endpoints, but with a 3rd endpoint (qmk#9020) it is needed. I have PRed in master as this is NOT breaking change. - Reordered usb_interface enumeration. - VIA expects RAW_HID endpoint to be at interface 1. - This does not break anything with only 2 endpoints. Keyboard is always at interface 0 and the extra feature is at interface 1.
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.
While I understand what this PR aims to do, i dont agree with the technical direction. I would rather see us move in the direction that allows interface id to be keyed to vusb interface functions.
I think the technical change your proposing is more generalized than V-USB.
TL;DR: this PR aligns the interface behavior as the other 2 USB "libraries". My general goal is to get everything aligned for the future branch merge in order for 3 endpoints to be accessible to V-USB keyboards. I will be updating #9020 with successful tests across a plethora of boards ( 32a, 328p, usbasp bootloader, bootmapper bootloader ). |
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.
We should at least add the comment from usb_descriptor.h
.
This seems like an odd technical limitation, but not one i really care to look into.
Co-authored-by: Joel Challis <[email protected]>
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.
Per #6801, the raw HID descriptors should also be placed after the keyboard descriptors in vusb.[ch].
Done |
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.
Ouch, that diff... confirmed manually 👍
Though, this is bound to introduce merge conflicts between this and future
now. :(
It did before anyway sadly |
This might seem irrelevant now as we only got 2 endpoints, but with a 3rd endpoint (#9020) it is needed.
I have PRed in master as this is NOT breaking change.
Description
Types of Changes
Issues Fixed or Closed by This PR
Checklist