优化实现串口驱动,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

22
HAL/Src/hal.c Normal file
View File

@ -0,0 +1,22 @@
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : hal.c
* @brief : Hardware Abstraction Layer main source file
******************************************************************************
*/
/* USER CODE END Header */
#include "hal.h"
/**
* @brief HAL module initialization
*/
void hal_init(void) {
/* Call architecture specific initialization */
#if HAL_TARGET_ARCH == HAL_ARCH_STM32F4
hal_stm32f4_init();
#else
#error "Unsupported HAL architecture"
#endif
}