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

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

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 added this to In progress in STM32 core based on ST HAL via automation Dec 5, 2023
@fpistm fpistm merged commit b149a92 into stm32duino:main Dec 5, 2023
22 checks passed
STM32 core based on ST HAL automation moved this from In progress to Done Dec 5, 2023
@fpistm fpistm deleted the USBD_PID branch December 5, 2023 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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