There is common code for the new USB device support in the samples to instantiate USB device, descriptors, configuration and initialize USB device. Add common code that can be used for the simple usecase with a single USB device and single configuration. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
10 lines
310 B
CMake
10 lines
310 B
CMake
# Copyright (c) 2023 Nordic Semiconductor ASA
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
set(SAMPLE_USBD_DIR ${ZEPHYR_BASE}/samples/subsys/usb/common)
|
|
|
|
target_include_directories(app PRIVATE ${SAMPLE_USBD_DIR})
|
|
target_sources_ifdef(CONFIG_USB_DEVICE_STACK_NEXT app PRIVATE
|
|
${SAMPLE_USBD_DIR}/sample_usbd_init.c
|
|
)
|