blob: 8dc672182f5008eb3b4e9764893fe739c9c1154c [file] [log] [blame]
if (TARGET tinyusb_device_unmarked)
pico_add_library(pico_stdio_usb)
target_include_directories(pico_stdio_usb_headers SYSTEM INTERFACE ${CMAKE_CURRENT_LIST_DIR}/include)
target_sources(pico_stdio_usb INTERFACE
${CMAKE_CURRENT_LIST_DIR}/reset_interface.c
${CMAKE_CURRENT_LIST_DIR}/stdio_usb.c
${CMAKE_CURRENT_LIST_DIR}/stdio_usb_descriptors.c
)
pico_mirrored_target_link_libraries(pico_stdio_usb INTERFACE
pico_stdio
pico_time
pico_unique_id
pico_usb_reset_interface
)
target_link_libraries(pico_stdio_usb INTERFACE
tinyusb_device_unmarked
)
# PICO_CMAKE_CONFIG: PICO_STDIO_USB_CONNECT_WAIT_TIMEOUT_MS, Maximum number of milliseconds to wait during initialization for a CDC connection from the host (negative means indefinite) during initialization, type=int, default=0, group=pico_stdio_usb
if (PICO_STDIO_USB_CONNECT_WAIT_TIMEOUT_MS)
target_compile_definitions(pico_stdio_usb INTERFACE
PICO_STDIO_USB_CONNECT_WAIT_TIMEOUT_MS=${PICO_STDIO_USB_CONNECT_WAIT_TIMEOUT_MS}
)
endif()
endif()