2026-03-31 15:46:04 +08:00
|
|
|
|
/**
|
|
|
|
|
|
******************************************************************************
|
|
|
|
|
|
* @file user\driver\drv_init.c
|
|
|
|
|
|
* @author luhuaishuai
|
|
|
|
|
|
* @version v0.1
|
|
|
|
|
|
* @date 2026-1-12
|
|
|
|
|
|
* @brief Briefly describe the function of your function
|
|
|
|
|
|
******************************************************************************
|
|
|
|
|
|
*/
|
|
|
|
|
|
/* Includes -------------------------------------------------------------------*/
|
|
|
|
|
|
#include "drv_init.h"
|
|
|
|
|
|
#include <stdint.h>
|
2026-05-08 18:17:26 +08:00
|
|
|
|
#include "flash_config.h"
|
2026-03-31 15:46:04 +08:00
|
|
|
|
|
|
|
|
|
|
/* code -----------------------------------------------------------------------*/
|
2026-05-08 18:17:26 +08:00
|
|
|
|
|
2026-03-31 15:46:04 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* @brief drv_all_Init:所有传感器、外设芯片、外部设备初始化
|
|
|
|
|
|
*
|
|
|
|
|
|
* @note none
|
|
|
|
|
|
*
|
|
|
|
|
|
* @param none
|
|
|
|
|
|
*
|
|
|
|
|
|
* @retval none
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
2026-05-21 10:01:28 +08:00
|
|
|
|
void drv_all_init(void)
|
2026-03-31 15:46:04 +08:00
|
|
|
|
{
|
2026-04-30 17:16:01 +08:00
|
|
|
|
AIR724_RESET(); /* AIR724 复位 */
|
2026-05-21 10:01:28 +08:00
|
|
|
|
drv_usart_init();/* 初始化所有串口 */
|
|
|
|
|
|
stm_flash_init();/* 初始化flash管理器 */
|
2026-03-31 15:46:04 +08:00
|
|
|
|
}
|