-
Notifications
You must be signed in to change notification settings - Fork 2.1k
USB VID/PID: allow for boards to define default custom VID/PID #13865
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
Conversation
27e82b0
to
41657eb
Compare
Can't this already be done by setting |
Sorry hadn't checked the discussion. |
Are you talking about makefile warnings? Or other warnings? Makefile warnings are still present with this PR. Otherwise I was able to override the definition on a samr21-xpro:
|
I only later found out that the warnings were actually caused by #14174, so this is just for cosmetics. But if you use a VID/PID outside the RIOT internal use space, there should be no warnings. |
/* These can be overridden by boards that should come up with their board | ||
* supplier VID/PID pair. Boards should only override this if the RIOT built-in | ||
* peripherals are compatible with whatever is usually shipped with that pair | ||
* */ |
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.
Nit-picking here but does the variable name make sense? If its overridne then its actually not RIOT
s PID but the board or manufacturer right? Would it make more sense to just have INTERNAL_PERIPHERAL_PID
(If my understanding of the variable meaning is correct)
Warning should be fixed now. |
It touches less code, so that alone makes it preferable in my book. |
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.
ACK, please squash!
For boards that have terminals in their shipped configurations it makes sense to reuse those VID/PIDs when providing a terminal in RIOT as well. That affects the builtin-peripherals IDs and not the custom specified ones. Co-authored-by: chrysn <chrysn@fsfe.org>
I also moved the configuration for
|
Contribution description
For boards that have terminals in their shipped configurations it makes sense to reuse those VID/PIDs when providing a terminal in RIOT as well.
That affects the builtin-peripherals IDs and not the custom specified ones.
Taken from #13652 (comment)
Testing procedure
Set
RIOT_INTERNALPERIPHERAL_VID
andRIOT_INTERNALPERIPHERAL_PID
for a board.RIOT should use those IDs now and not spit out warnings when those IDs are used for stdio over USB.
Issues/PRs references
alternative to #13652