mirror of
https://gitee.com/cosyos/cosyos.git
synced 2026-09-20 20:33:43 +08:00
+8
-9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user