串口2接收数据,comm处理信息
This commit is contained in:
1 parent
7c463c07c6
commit
9f9c96d650
14 files changed
+861
-412
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user