WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
Exception handling
Exception handling 的协作图:

宏定义

#define LOS_PANIC(fmt, ...)   LOS_Panic(fmt, ##__VA_ARGS__)
 System panic function.
 

函数

void LOS_Panic (const CHAR *fmt,...)
 Kernel panic function.
 
void LOS_BackTrace (void)
 Kernel backtrace function.
 
void LOS_TaskBackTrace (UINT32 taskID)
 Kernel task backtrace function.
 

详细描述

宏定义说明

◆ LOS_PANIC

#define LOS_PANIC (   fmt,
  ... 
)    LOS_Panic(fmt, ##__VA_ARGS__)

System panic function.

Description:
Define function macros LOS_PANIC. The Function can handle system panic and print log.
注意
None.
参数
fmt[IN] Type: const CHAR *. It controls the output format as in C printf.
args[IN] It point to the variable parameters.
返回值
None.
Dependency:
los_exc.h: the header file that contains the API declaration.
自从
Huawei LiteOS 206.1

函数说明

◆ LOS_BackTrace()

void LOS_BackTrace ( void  )
extern

Kernel backtrace function.

Description:
Backtrace function that prints task call stack information traced from the running task.
注意
None.
参数
None.
返回值
None.
Dependency:
los_exc.h: the header file that contains the API declaration.
自从
Huawei LiteOS V200R005C10

◆ LOS_Panic()

void LOS_Panic ( const CHAR fmt,
  ... 
)

Kernel panic function.

Description:
Stack function that prints kernel panics.
注意
  • After this function is called and stack information is printed, the system will fail to respond.
  • The input parameter can be NULL.
参数
fmt[IN] Type CHAR*. It is a variadic argument.
返回值
None.
Dependency:
los_exc.h: the header file that contains the API declaration.
自从
Huawei LiteOS V100R001C00

◆ LOS_TaskBackTrace()

void LOS_TaskBackTrace ( UINT32  taskID)
extern

Kernel task backtrace function.

Description:
Backtrace function that prints task call stack information traced from the input task.
注意
The input taskID should be valid.
参数
taskID[IN] Type UINT32. Task ID.
返回值
None.
Dependency:
los_exc.h: the header file that contains the API declaration.
自从
Huawei LiteOS V100R001C00