mirror of
https://gitee.com/cosyos/cosyos.git
synced 2026-08-17 16:52:27 +08:00
update Demo-Service/2、消息同步/msg_taskmsg.c.
Signed-off-by: 零中断延迟的RTOS <cosyos@139.com>
This commit is contained in:
@@ -36,7 +36,7 @@ uCreateTaskmsg(task_1, 1, 512, 0, "task_key", 1)(unsigned int tm1)
|
||||
}
|
||||
|
||||
/* 动态创建私信任务 task_2 */ // 3个私信参数
|
||||
dCreateTaskmsg(task_2, 2, 512, 0, "task_led", 3)(unsigned int tm1, void *tm2, float tm3)
|
||||
dCreateTaskmsg(task_2, 2, 768, 0, "task_led", 3)(unsigned int tm1, void *tm2, float tm3)
|
||||
{
|
||||
// while(1){ // 已内置循环,此循环可省略
|
||||
if(uRecvTM(xTick_s(2))){ // 接收私信,超时时间为2秒,返回值为真表示接收成功
|
||||
|
||||
Reference in New Issue
Block a user