Port command protocol framework from E23x (RS485 data link)

This commit is contained in:
2026-10-09 19:47:49 +08:00
parent cda8f482d2
commit 5771fee576
8 changed files with 694 additions and 26 deletions
+3 -2
View File
@@ -11,6 +11,7 @@
#include "uart.h"
#include "uart_ring_buffer.h"
#include "rs485.h"
#include "command.h"
#include "ntc.h"
#include "led.h"
#include <stdio.h>
@@ -44,8 +45,8 @@ int main(void)
#endif
while(1){
/* RS485 数据口处理(拉通阶段:回显) */
rs485_process();
/* RS485 数据口命令处理(D5 帧协议,具体业务命令在 command.c 扩展) */
command_process();
/* debug 串口周期打印 NTC 温度(约 1s 一次) */
#if DEBUG_MODE == CFG_ENABLE