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__