From 3c838da627fb2786498c64d8bc87c1f1e433e89b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B6=E4=B8=AD=E6=96=AD=E5=BB=B6=E8=BF=9F=E7=9A=84RTOS?= Date: Tue, 15 Apr 2025 10:05:21 +0000 Subject: [PATCH] update System/os_redef.h. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 零中断延迟的RTOS --- System/os_redef.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/System/os_redef.h b/System/os_redef.h index 24bfcb7c..58771ed9 100644 --- a/System/os_redef.h +++ b/System/os_redef.h @@ -5,8 +5,8 @@ * @details 基于 os_def.h、os_base.h、syscfg.h、mcucfg_x.h、port_x.h 等文件 中的定义而再次定义,包括宏定义和类型定义。 * @author 迟凯峰 - * @version V1.2.1 - * @date 2025.04.11 + * @version V1.2.2 + * @date 2025.04.15 ******************************************************************************/ #ifndef __OS_REDEF_H @@ -420,6 +420,9 @@ typedef struct s_tasknode_ts #if SYSCFG_SAMEPRISCHEDULE struct s_tasknode_ts _OBJ_MEM_ *last; /*!< 上一节点 of 优先级组 */ struct s_tasknode_ts _OBJ_MEM_ *next; /*!< 下一节点 of 优先级组 */ + #if SYSCFG_MUTEX == __ENABLED__ + struct s_tasknode_ts _OBJ_MEM_ *link; /*!< 互斥信号量获取阻塞-任务链接 */ + #endif #endif mTaskNode_Tail_ /*!< MCS51/251:mUserReg_DEFc_,减栈:psp_top */ }s_tasknode_ts;