2017-10-27 21:43:34 +08:00
|
|
|
if(CONFIG_USB_DEVICE_STACK)
|
|
|
|
zephyr_sources(
|
|
|
|
usb_device.c
|
|
|
|
usb_descriptor.c
|
|
|
|
)
|
|
|
|
|
|
|
|
add_subdirectory(class)
|
|
|
|
endif()
|
|
|
|
|
2018-05-31 21:26:58 +08:00
|
|
|
if(CONFIG_USB_DEVICE_BOS)
|
|
|
|
zephyr_sources(
|
|
|
|
bos.c
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2018-05-25 17:25:17 +08:00
|
|
|
if(CONFIG_USB_DEVICE_OS_DESC)
|
|
|
|
zephyr_sources(
|
|
|
|
os_desc.c
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2018-01-12 15:30:34 +08:00
|
|
|
if(CONFIG_USB_DEVICE_VID EQUAL 0x2FE3)
|
2017-11-08 19:20:40 +08:00
|
|
|
message(WARNING
|
2018-01-12 15:30:34 +08:00
|
|
|
"CONFIG_USB_DEVICE_VID has default value 0x2FE3.
|
2017-11-08 19:20:40 +08:00
|
|
|
This value is only for testing and MUST be configured for USB products."
|
|
|
|
)
|
|
|
|
|
2018-01-12 15:30:34 +08:00
|
|
|
if(CONFIG_USB_DEVICE_PID EQUAL 0x100)
|
|
|
|
message(WARNING
|
|
|
|
"CONFIG_USB_DEVICE_PID has default value 0x100.
|
2017-11-08 19:20:40 +08:00
|
|
|
This value is only for testing and MUST be configured for USB products."
|
2018-01-12 15:30:34 +08:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2017-11-08 19:20:40 +08:00
|
|
|
endif()
|