优化实现串口驱动,SPI驱动 W25QXX还需要初始化验证修复

This commit is contained in:
冯佳
2026-01-23 09:59:43 +08:00
parent 51e8d79f78
commit b166bee1a9
69 changed files with 6253 additions and 1178 deletions

View File

@ -21,6 +21,11 @@ endif()
# Set the project name
set(CMAKE_PROJECT_NAME stm32f407vet6_cmake)
# MCU and architecture settings - can be overridden by command line
if(NOT TARGET_MCU_FAMILY)
set(TARGET_MCU_FAMILY "arm")
endif()
# Include toolchain file
include("cmake/gcc-arm-none-eabi.cmake")
@ -30,6 +35,9 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS TRUE)
# Core project settings
project(${CMAKE_PROJECT_NAME})
message("Build type: " ${CMAKE_BUILD_TYPE})
message("Target MCU Family: " ${TARGET_MCU_FAMILY})
message("Target MCU Flags: " ${TARGET_MCU_FLAGS})
message("Linker Script: " ${LINKER_SCRIPT})
# Enable CMake support for ASM and C languages
enable_language(C ASM)
@ -81,6 +89,7 @@ target_link_libraries(${CMAKE_PROJECT_NAME}
delay
uart
logging
w25qxx
# Add user defined libraries
)