-
Notifications
You must be signed in to change notification settings - Fork 651
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1983: USB: CDC: Allow boards to specify vendor id, product id, and strings. r=ppannuto a=bradjc ### Pull Request Overview Rather than hardcoding the USB identifying information, this allows the board file to set it for the board. This adds a get address function for the nRF52, which permits using the hardcoded mac address as the serial number for USB so that USB devices get their own serial numbers. This also configures the nano33ble to use the arduino vendor/product id that matches the bootloader. I think this makes sense for two reasons: 1. The hardware is the same and it is still an arduino board. 2. arduino udev rules will work. ### Testing Strategy Running `lsusb` after flashing the kernel. ### TODO or Help Wanted If someone wants to re-write `address_str()`. ### Documentation Updated - [x] Updated the relevant files in `/docs`, or no updates are required. ### Formatting - [x] Ran `make prepush`. Co-authored-by: Brad Campbell <bradjc5@gmail.com>
- Loading branch information
Showing
4 changed files
with
97 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters