串口2接收数据,comm处理信息

This commit is contained in:
sc committed 2025-10-20 23:23:35 +08:00
1 parent 7c463c07c6
commit 9f9c96d650
14 files changed
+861 -412

No files matched your search

+3 -2
View File
@@ -2,6 +2,7 @@
#include <rtdevice.h>
#include <board.h>
#include"drv_common.h"
#include "RUN_LED.h"
#define LED_PIN GET_PIN(C,13)
@@ -18,12 +19,12 @@ void RUN_LED(void *parameter)
}
}
/* 线程示例 */
/* 线程 */
void thread_RUN_LED(void)
{
/* 初始化线程 1,名称是 thread1,入口是 thread1_entry*/
rt_thread_t tid;
tid = rt_thread_create("run_led", RUN_LED, RT_NULL, 512, 3, 10);
tid = rt_thread_create("run_led", RUN_LED, RT_NULL, 256, 3, 10);
if (tid != RT_NULL)
{