USB VID/PID: allow for boards to define default custom VID/PID#13865
USB VID/PID: allow for boards to define default custom VID/PID#13865aabadie merged 2 commits intoRIOT-OS:masterfrom
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.
Nit-picking here but does the variable name make sense? If its overridne then its actually not RIOTs 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. |
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 <[email protected]>
|
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_VIDandRIOT_INTERNALPERIPHERAL_PIDfor 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