Skip to content

Commit a576df6

Browse files
committed
rename dev_cdc to dev_multi_cdc
1 parent 6b067dd commit a576df6

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ This example demonstrates how to use the TinyUSB CDC device library to create tw
442442

443443
App|Description
444444
---|---
445-
[dev_cdc](usb/device/dev_cdc) | A USB CDC device example with two serial ports, one of which is used for stdio. The example exposes two serial ports over USB to the host. The first port is used for stdio, and the second port is used for a simple echo loopback. You can connect to the second port and send some characters, and they will be echoed back on the first port while you will receive a "OK\r\n" message on the second port indicating that the data was received.
445+
[dev_multi_cdc](usb/device/dev_multi_cdc) | A USB CDC device example with two serial ports, one of which is used for stdio. The example exposes two serial ports over USB to the host. The first port is used for stdio, and the second port is used for a simple echo loopback. You can connect to the second port and send some characters, and they will be echoed back on the first port while you will receive a "OK\r\n" message on the second port indicating that the data was received.
446446

447447
### USB Host
448448

usb/device/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ set(TINYUSB_LWIP_PATH ${PICO_LWIP_PATH})
66
# Some examples use this, and we need to set this here due to a bug in the TinyUSB CMake config
77
set(TOP ${PICO_TINYUSB_PATH})
88
add_subdirectory(${PICO_TINYUSB_PATH}/examples/device tinyusb_device_examples)
9-
add_subdirectory_exclude_platforms(dev_cdc)
109
add_subdirectory_exclude_platforms(dev_hid_composite)
1110
add_subdirectory_exclude_platforms(dev_lowlevel)
11+
add_subdirectory_exclude_platforms(dev_multi_cdc)
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
cmake_minimum_required(VERSION 3.13)
22

3-
add_executable(dev_cdc)
3+
add_executable(dev_multi_cdc)
44

5-
target_sources(dev_cdc PUBLIC
5+
target_sources(dev_multi_cdc PUBLIC
66
${CMAKE_CURRENT_LIST_DIR}/main.c
77
${CMAKE_CURRENT_LIST_DIR}/usb_descriptors.c
88
)
99

1010
# Make sure TinyUSB can find tusb_config.h
11-
target_include_directories(dev_cdc PUBLIC
11+
target_include_directories(dev_multi_cdc PUBLIC
1212
${CMAKE_CURRENT_LIST_DIR})
1313

1414
# In addition to pico_stdlib required for common PicoSDK functionality, add dependency on tinyusb_device
1515
# for TinyUSB device support and tinyusb_board for the additional board support library used by the example
16-
target_link_libraries(dev_cdc PUBLIC pico_stdlib pico_unique_id tinyusb_device tinyusb_board)
16+
target_link_libraries(dev_multi_cdc PUBLIC pico_stdlib pico_unique_id tinyusb_device tinyusb_board)
1717

18-
pico_enable_stdio_usb(dev_cdc 1)
19-
pico_add_extra_outputs(dev_cdc)
18+
pico_enable_stdio_usb(dev_multi_cdc 1)
19+
pico_add_extra_outputs(dev_multi_cdc)
2020

2121
# add url via pico_set_program_url
22-
example_auto_set_url(dev_cdc)
22+
example_auto_set_url(dev_multi_cdc)
File renamed without changes.

0 commit comments

Comments
 (0)