generated from hulk/gd32f4xx_template_cmake_vscode
Port command protocol framework from E23x (RS485 data link)
This commit is contained in:
+3
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user