gpio写完,延时不准

This commit is contained in:
2026-05-24 22:33:07 +08:00
parent b58f7aca9f
commit 589b67a3f9
113 changed files with 473 additions and 14048 deletions
+12 -8
View File
@@ -76,18 +76,22 @@ add_compile_definitions(
# [我加的] 添加头文件搜索路径 - 根据你的项目结构调整
include_directories(
App
Port/Stm32F10x/StdLib/Inc
Port/Stm32F10x/System
Port/Stm32F10x/System/CMSIS
VoiletBspStm32F10x/Bsp/Inc
VoiletBspStm32F10x/StdLib/Inc
VoiletBspStm32F10x/System
VoiletBspStm32F10x/System/Cmsis/Inc
VoiletBspStm32F10x/ThirdParty/LetterShell/Inc
)
# [我加的] 自动收集源文件(递归搜索指定目录下的所有源文件)
file(GLOB_RECURSE SOURCES
Port/Stm32F10x/System/Startup/Gcc/startup_stm32f10x_hd.s
VoiletBspStm32F10x/System/Startup/Gcc/startup_stm32f10x_hd.s
App/*.c
Port/Stm32F10x/StdLib/Src/*.c
Port/Stm32F10x/CMSIS/*.c
Port/Stm32F10x/System/*.c
VoiletBspStm32F10x/Bsp/Src/*.c
VoiletBspStm32F10x/StdLib/Src/*.c
VoiletBspStm32F10x/System/*.c
VoiletBspStm32F10x/System/Cmsis/Src/*.c
VoiletBspStm32F10x/ThirdParty/LetterShell/Src/*.c
)
# [我加的] 排除模板文件和测试套件
list(FILTER SOURCES EXCLUDE REGEX ".*template.*")
@@ -112,7 +116,7 @@ foreach(source ${SOURCES})
endforeach()
# 设置链接脚本路径
set(LINKER_SCRIPT ${CMAKE_SOURCE_DIR}/Port/Stm32F10x/System/LinkScripts/Gcc/stm32_flash_ze.ld)
set(LINKER_SCRIPT ${CMAKE_SOURCE_DIR}/VoiletBspStm32F10x/System/LinkScripts/Gcc/stm32_flash_ze.ld)
# 检查链接脚本是否存在
if(NOT EXISTS "${LINKER_SCRIPT}")