P1和P2已开发完成并验证了大部分功能都没问题

This commit is contained in:
2026-09-07 18:50:35 +08:00
parent f4b0b3213c
commit 862ce10b90
18 changed files with 1525 additions and 370 deletions
+6 -6
View File
@@ -24,11 +24,11 @@
#define BOARD_KEY_ENABLE 1 /**< 1=按键 PB1(低按下) */
#define BOARD_RELAY_ENABLE 1 /**< 1=继电器 PC3(高导通) */
#define BOARD_ZC_ENABLE 1 /**< 1=过零 PA1;=0 时开请求禁吸合、关请求强制断开 */
#define BOARD_LINKAGE_ENABLE 0 /* 联动引擎(第 10 章);P2 开 */
#define BOARD_TIMER_ENABLE 0 /* 定时引擎(第 11 章);P2 开 */
#define BOARD_TH_SCAN_ENABLE 0 /* 断连扫描风扇广播(第 8 章);P2 开 */
#define BOARD_RUNREC_ENABLE 0 /* 31 天运行记录(第 13 章);P2 开 */
#define BOARD_NVM_ENABLE 0 /* VM 持久化(第 13 章)P1 开 */
#define BOARD_LINKAGE_ENABLE 1 /* 联动引擎(第 10 章);P2 开 */
#define BOARD_TIMER_ENABLE 1 /* 定时引擎(第 11 章);P2 开 */
#define BOARD_TH_SCAN_ENABLE 1 /* 断连扫描风扇广播(第 8 章);P2 开 */
#define BOARD_RUNREC_ENABLE 1 /* 31 天运行记录(第 13 章);P2 开 */
#define BOARD_NVM_ENABLE 1 /* VM 持久化(第 13 章):加热请求/联动/定时/运行记录 */
/*============================================================================*/
/* GPIO */
@@ -91,7 +91,7 @@
#define BOARD_ZC_PULL_UP 1 /**< PA1 内部上拉(光耦 OC 输出时必须有;推挽输入也无害) */
#define BOARD_ZC_PULL_DOWN 0 /**< PA1 内部下拉,通常 0(与上拉互斥) */
#define BOARD_ZC_SW_POLL_1MS 0 /**< 1=额外挂真实 1ms 软件采样兜底(中断失效时滞后 ≤1ms,代价 1000Hz ISR */
#define BOARD_ZC_DIAG_LOG 1 /**< 1=500ms 打印一次过零沿计数(台上确认中断在跑,量产出货置 0) */
#define BOARD_ZC_DIAG_LOG 0 /**< 1=500ms 打印一次过零沿计数(台上确认中断在跑,量产出货置 0) */
/*============================================================================*/
/* 断连扫描(P2,第 8.2 节) */