diff options
| author | sakumisu <[email protected]> | 2024-05-03 18:55:12 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2024-05-03 18:55:12 +0800 |
| commit | 81cebaf78c49dad4b3cf2e0eb58419c51f689414 (patch) | |
| tree | 59e7ab412c0e6c3241057fde4fbf8c960c651ac7 | |
| parent | 5fec929b9348008a53639002a25f168ab0f04c24 (diff) | |
add vendor serial into cmake
| -rw-r--r-- | cherryusb.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cherryusb.cmake b/cherryusb.cmake index 3add14ba..4544b0ac 100644 --- a/cherryusb.cmake +++ b/cherryusb.cmake @@ -184,6 +184,15 @@ if(CONFIG_CHERRYUSB_HOST) if(CONFIG_CHERRYUSB_HOST_RTL8152) list(APPEND cherryusb_srcs ${CMAKE_CURRENT_LIST_DIR}/class/vendor/net/usbh_rtl8152.c) endif() + if(CONFIG_CHERRYUSB_HOST_CH34X) + list(APPEND cherryusb_srcs ${CMAKE_CURRENT_LIST_DIR}/class/vendor/serial/usbh_ch34x.c) + endif() + if(CONFIG_CHERRYUSB_HOST_CP210X) + list(APPEND cherryusb_srcs ${CMAKE_CURRENT_LIST_DIR}/class/vendor/serial/usbh_cp210x.c) + endif() + if(CONFIG_CHERRYUSB_HOST_FTDI) + list(APPEND cherryusb_srcs ${CMAKE_CURRENT_LIST_DIR}/class/vendor/serial/usbh_ftdi.c) + endif() if(DEFINED CONFIG_CHERRYUSB_HOST_HCD) if("${CONFIG_CHERRYUSB_HOST_HCD}" STREQUAL "ehci_bouffalo") |
