diff options
| author | Ha Thach <[email protected]> | 2023-04-28 00:06:08 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-04-28 00:06:08 +0700 |
| commit | e3b3229d61676585879c81d5f2e3393a2a1f1b16 (patch) | |
| tree | 24f6558d96fbc81d23fd1c7fe37a9a62cfe68f66 /examples | |
| parent | 4c7fd1648e8aa27ac401faf6dcbd8801ff4cb443 (diff) | |
| parent | 732686cc109aea9527d3133c3b8e61dc045dc233 (diff) | |
Merge pull request #2046 from hathach/add-usb2uart-host-driver
Add usb2uart serial host driver
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/host/cdc_msc_hid/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | examples/host/cdc_msc_hid/src/tusb_config.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/examples/host/cdc_msc_hid/CMakeLists.txt b/examples/host/cdc_msc_hid/CMakeLists.txt index d7d1a54d7..b66ff2382 100644 --- a/examples/host/cdc_msc_hid/CMakeLists.txt +++ b/examples/host/cdc_msc_hid/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.17) include(${CMAKE_CURRENT_SOURCE_DIR}/../../../hw/bsp/family_support.cmake) diff --git a/examples/host/cdc_msc_hid/src/tusb_config.h b/examples/host/cdc_msc_hid/src/tusb_config.h index 1152e4910..abb75f068 100644 --- a/examples/host/cdc_msc_hid/src/tusb_config.h +++ b/examples/host/cdc_msc_hid/src/tusb_config.h @@ -96,7 +96,9 @@ #define CFG_TUH_ENUMERATION_BUFSIZE 256 #define CFG_TUH_HUB 1 // number of supported hubs -#define CFG_TUH_CDC 1 +#define CFG_TUH_CDC 1 // CDC ACM +#define CFG_TUH_CDC_FTDI 1 // FTDI Serial. FTDI is not part of CDC class, only to re-use CDC driver API +#define CFG_TUH_CDC_CP210X 1 // CP210x Serial. CP210X is not part of CDC class, only to re-use CDC driver API #define CFG_TUH_HID (3*CFG_TUH_DEVICE_MAX) // typical keyboard + mouse device can have 3-4 HID interfaces #define CFG_TUH_MSC 1 #define CFG_TUH_VENDOR 0 |
