chore: update zephyr code

Signed-off-by: sakumisu <1203593632@qq.com>
This commit is contained in:
sakumisu
2025-05-14 22:45:38 +08:00
parent 383d9b3141
commit 43692c0ba2
5 changed files with 114 additions and 33 deletions

View File

@@ -133,14 +133,21 @@ elseif(ZEPHYR_BASE)
set(CONFIG_CHERRYUSB_OSAL "zephyr")
include(${CMAKE_CURRENT_LIST_DIR}/cherryusb.cmake)
if (CONFIG_SHELL)
list(APPEND cherryusb_srcs ${CMAKE_CURRENT_LIST_DIR}/platform/zephyr/usb_cmd.c)
endif ()
zephyr_library()
if(cherryusb_incs)
zephyr_include_directories(${cherryusb_incs})
endif()
zephyr_include_directories(${cherryusb_incs})
if(cherryusb_srcs)
zephyr_library_sources(${cherryusb_srcs})
endif()
if (CONFIG_CHERRYUSB_HOST)
zephyr_linker_sources(SECTIONS zephyr/usbh_class_info.ld)
endif()
elseif(HPM_SDK_BASE)
set(CONFIG_CHERRYUSB_DEVICE_CDC_ACM 1)
set(CONFIG_CHERRYUSB_DEVICE_HID 1)