Files
STM32F4-Base/App/app_main.c
2026-07-21 00:30:59 +08:00

43 lines
981 B
C
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* 模块名称Application Main Entry
* 模块功能:应用初始化流程编排、各模块启动、主循环
* 适用平台STM32F407ZGTx
* 作者:王建锋
* 创建日期2026-07-19
* 修改记录:
* v1.0 2026-07-19 王建锋 创建初始版本
*/
#include "app_main.h"
#include "app_cfg.h"
#define DBG_TAG "[APP]"
#include "dbg_log.h"
/*
* 函数功能:应用层初始化
* 入口参数:无
* 返 回 值0 - 成功,-1 - 失败
* 限定条件CubeMX 外设初始化已完成
* 函数说明:在 CubeMX 外设初始化之后、FreeRTOS 调度器启动之前调用
*/
int app_main_init(void)
{
DBG_INFO("App init OK");
return 0;
}
/*
* 函数功能:应用主循环
* 入口参数:无
* 返 回 值:无
* 限定条件FreeRTOS 调度器启动后不再返回
* 函数说明:空闲任务可调用的应用层处理入口
*/
void app_main_run(void)
{
for (;;) {
/* 应用层空闲处理 */
}
}