Skip to content

feat(usb): allow USB PID to be 0x0000 #2219

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Dec 5, 2023
Merged

Conversation

fpistm
Copy link
Member

@fpistm fpistm commented Dec 5, 2023

USB device VID and PID can be defined thanks:

  • boards.txt: *.build.vid or *.build.pid
  • build_opt.h: define CUSTOM_USBD_VID or CUSTOM_USBD_PID

Else if not defined or specified, default to the ST VID, with PID assigned to HID or CDC devices.

Note

if value is specified in the boards.txt then CUSTOM_USBD_* is ignored.

Fixes #2215

Fixes stm32duino#2215

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
@fpistm fpistm added the enhancement New feature or request label Dec 5, 2023
@fpistm fpistm added this to the 2.8.0 milestone Dec 5, 2023
@fpistm fpistm merged commit b149a92 into stm32duino:main Dec 5, 2023
@fpistm fpistm deleted the USBD_PID branch December 5, 2023 15:54
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

Unable to set USBD_PID to 0 (error thrown)
1 participant