update System/os_debug.c.

Signed-off-by: 零中断延迟的RTOS <cosyos@139.com>
This commit is contained in:
零中断延迟的RTOS
2024-02-23 10:02:10 +00:00
committed by Gitee
parent 2cdd64955f
commit 3cfcd9dafb
+8 -9
View File
@@ -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