整理代码

This commit is contained in:
蒲爽 2026-09-28 21:33:04 +08:00
commit c7b4e178ec
364 changed files with 59691 additions and 0 deletions

29
hardware/CMakeLists.txt Normal file
View file

@ -0,0 +1,29 @@
set(TARGET hardware)
aux_source_directory(. HARDWARE_SRCS)
aux_source_directory(user USER_SOURCES)
if (USING_HISIMPP5)
aux_source_directory(hisilicon HISI_SOURCES)
list(APPEND HARDWARE_SRCS ${HISI_SOURCES})
include_directories($ENV{MPP_PATH}/include)
endif()
if (USING_ITE_DEVICE)
message("Using ITE device ...")
aux_source_directory(ite ITE_SOURCES)
list(APPEND HARDWARE_SRCS ${ITE_SOURCES})
endif()
if (USING_SEMTECH_DEVICE)
message("Using SEMTECH device ...")
aux_source_directory(semtech SEMTECH_SOURCES)
list(APPEND HARDWARE_SRCS ${SEMTECH_SOURCES})
endif()
add_library(${TARGET} STATIC
${HARDWARE_SRCS}
${USER_SOURCES}
)