Skip to content

Unable to set USBD_PID to 0 (error thrown) #2215

Closed

Description

@me21

I'd like to use zero PID for my USB device but I'm currently unable to do it as it's forbidden by the following code:

#if !USBD_VID || !USBD_PID
#error "USB VID or PID not specified"
#endif

According to https://stackoverflow.com/questions/30098394/is-pid-0-a-valid-for-usb-device, PID == 0x0000 is a valid PID, and the accepted answer there contains a link to a list of existing USB products, some of which have zero PID.

Activity

  1. added
    enhancement
    on Dec 4, 2023
  2. added this to the 2.8.0 milestone on Dec 4, 2023
  3. added a commit that references this issue on Dec 5, 2023
    503f12e
  4. added a commit that references this issue on Dec 5, 2023
    b149a92
  5. added a commit that references this issue on Apr 23, 2024
    1633a87
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions