Skip to content

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

Closed
@me21

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions