43 lines
832 B
C
43 lines
832 B
C
/*
|
||
* 模块名称:Application Configuration
|
||
* 模块功能:应用层全局配置宏,控制功能模块的编译开关
|
||
* 适用平台:STM32F407ZGTx
|
||
* 作者:王建锋
|
||
* 创建日期:2026-07-19
|
||
* 修改记录:
|
||
* v1.0 2026-07-19 王建锋 创建初始版本
|
||
*/
|
||
|
||
#ifndef __APP_CFG_H
|
||
#define __APP_CFG_H
|
||
|
||
#ifdef __cplusplus
|
||
extern "C" {
|
||
#endif
|
||
|
||
/*
|
||
* 系统时钟源选择
|
||
* 0 - DWT CYCCNT(默认,0 外设开销)
|
||
* 1 - TIM2(32-bit 定时器,独立于 DWT)
|
||
*/
|
||
#define APP_SYS_TIME_SRC 0
|
||
|
||
/*
|
||
* 时间戳输出使能
|
||
* 定义后在日志行首自动追加 [T ssssss.uuuuuu] 微秒时间戳
|
||
*/
|
||
#define APP_TIMESTAMP_ENABLE
|
||
|
||
/*
|
||
* 功能模块使能开关
|
||
*/
|
||
#define APP_NET_ENABLE
|
||
#define APP_ADC_ENABLE
|
||
#define APP_RS485_ENABLE
|
||
|
||
#ifdef __cplusplus
|
||
}
|
||
#endif
|
||
|
||
#endif /* __APP_CFG_H */
|