Skip to content
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

USB: CDC: Allow boards to specify vendor id, product id, and strings. #1983

Merged
merged 3 commits into from Jun 26, 2020

Conversation

bradjc
Copy link
Contributor

@bradjc bradjc commented Jun 26, 2020

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

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

@bradjc bradjc added the nrf Change pertains to the nRF5x family of MCUs. label Jun 26, 2020
Copy link
Member

@ppannuto ppannuto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors r+

@bors bors bot merged commit bf9e9bb into master Jun 26, 2020
@bors bors bot deleted the cdc-board-settings branch June 26, 2020 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nrf Change pertains to the nRF5x family of MCUs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants