mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-01 18:51:56 +00:00
Document USB Vendor and Product IDs and their intended usage. Set the Vendor and Product IDs and define the USB bcdDevice Device Descriptor Device Release Number to be the binary coded decimal representation of the Zephyr major and minor kernel version number. Signed-off-by: Patrik Flykt <patrik.flykt@intel.com>
30 lines
611 B
CMake
30 lines
611 B
CMake
if(CONFIG_USB_DEVICE_STACK)
|
|
zephyr_sources(
|
|
usb_device.c
|
|
usb_descriptor.c
|
|
)
|
|
|
|
add_subdirectory(class)
|
|
endif()
|
|
|
|
if(CONFIG_USB_COMPOSITE_DEVICE)
|
|
zephyr_sources(
|
|
composite.c
|
|
)
|
|
endif()
|
|
|
|
if(CONFIG_USB_DEVICE_VID EQUAL 0x2FE3)
|
|
message(WARNING
|
|
"CONFIG_USB_DEVICE_VID has default value 0x2FE3.
|
|
This value is only for testing and MUST be configured for USB products."
|
|
)
|
|
|
|
if(CONFIG_USB_DEVICE_PID EQUAL 0x100)
|
|
message(WARNING
|
|
"CONFIG_USB_DEVICE_PID has default value 0x100.
|
|
This value is only for testing and MUST be configured for USB products."
|
|
)
|
|
endif()
|
|
|
|
endif()
|