From fed6a1eb86586289bf2484954453626c52ccd757 Mon Sep 17 00:00:00 2001 From: RB Date: Wed, 30 Apr 2025 12:28:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0init=E4=BF=9D=E7=95=99msgq?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- User/task/init.c.template | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/User/task/init.c.template b/User/task/init.c.template index 2b3a65c..4aeac8c 100644 --- a/User/task/init.c.template +++ b/User/task/init.c.template @@ -25,8 +25,9 @@ void Task_Init(void *argument) { {{thread_creation_code}} // 创建消息队列 + /* USER MESSAGE BEGIN */ task_runtime.msgq.user_msg= osMessageQueueNew(2u, 10, NULL); - + /* USER MESSAGE END */ osKernelUnlock(); // 解锁内核 osThreadTerminate(osThreadGetId()); // 任务完成后结束自身 }