3.27_433:添加UART2调试打印、IO监控、指令解析和继电器控制模块。

能够接收UART2指令控制继电器开关,或向UART2发送四路IO输入状态,并使用轮询方式检测IO状态进行及时反馈。
This commit is contained in:
2026-03-27 10:09:13 +08:00
parent f548593c59
commit 71027ebc46
76 changed files with 6789 additions and 1803 deletions

View File

@ -14,7 +14,13 @@
#include "main.h"
#include <stdio.h>
#include <string.h>
#include "uart2_print.h"
#define DEBUG_CMD_PARSER 1
#if DEBUG_CMD_PARSER
#define DEBUG_LOG(fmt, ...) UART2_Print_Printf("[CMD] " fmt "\r\n", ##__VA_ARGS__)
#else
#define DEBUG_LOG(fmt, ...)
#endif
/* ============================================================================
* 私有变量
* ============================================================================ */