From 8007bac2c111b896d486e6966707e883d42a157e 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: Sat, 19 Oct 2024 13:05:01 +0000 Subject: [PATCH] update System/os_handler.c. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 零中断延迟的RTOS --- System/os_handler.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/System/os_handler.c b/System/os_handler.c index 9164c8a1..86705013 100644 --- a/System/os_handler.c +++ b/System/os_handler.c @@ -3,8 +3,8 @@ * @file os_handler.c * @brief OS_SysTick_Handler and sPendSV_Handler * @author 迟凯峰 - * @version V3.0.1 - * @date 2024.10.16 + * @version V3.0.2 + * @date 2024.10.19 ******************************************************************************/ #include "os_link.h" @@ -290,7 +290,9 @@ m_stacksize_t _SYS_MEM_ s_taskstacklen; s_u8_t sPendSV_Handler(void) MCUCFG_C51USING { /* 中断挂起服务FIFO */ + #if MCUCFG_PENDSVFIFO_DEPTH > 0 mPendSV_FIFOHandle; + #endif /* 挂起服务钩子 */ #if SYSCFG_PENDSVHOOK == __ENABLED__