From 3cfcd9dafbdb0faec6711623cec82b31efaf81d2 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: Fri, 23 Feb 2024 10:02:10 +0000 Subject: [PATCH] update System/os_debug.c. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 零中断延迟的RTOS --- System/os_debug.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/System/os_debug.c b/System/os_debug.c index ff434abe..2aa919e7 100644 --- a/System/os_debug.c +++ b/System/os_debug.c @@ -3,8 +3,8 @@ * @file os_debug.c * @brief DEBUG接口(串口发送和接收解析) * @author 迟凯峰 - * @version V1.3.0 - * @date 2024.01.23 + * @version V1.3.1 + * @date 2024.02.23 ******************************************************************************/ #include "os_link.h" @@ -122,16 +122,15 @@ uCreateTask_TimInt(OS_TMID_DEBUGGER, false, Debugger, SYSCFG_TASKPRIORITY - 1, M uCreateHook_TimQry(OS_TMID_DEBUGHOOK, s_debug_sendtype, false, debug_hook) { - if(s_debug_sendtype & OS_DEBUG_SEND_CMDLINE){ - s_debug_sendtype &= ~OS_DEBUG_SEND_CMDLINE; - s_debug_sendptr = s_cmdline_sendbuff; - SYSCFG_DEBUGSEND; - } - else if(s_debug_sendtype & OS_DEBUG_SEND_TASKMGR){ + if(s_debug_sendtype & OS_DEBUG_SEND_TASKMGR){ s_debug_sendtype &= ~OS_DEBUG_SEND_TASKMGR; s_debug_sendptr = s_taskmgr_sendbuff; - SYSCFG_DEBUGSEND; } + else if(s_debug_sendtype & OS_DEBUG_SEND_CMDLINE){ + s_debug_sendtype &= ~OS_DEBUG_SEND_CMDLINE; + s_debug_sendptr = s_cmdline_sendbuff; + } + SYSCFG_DEBUGSEND; } #endif