类型定义 | |
typedef VOID(* | log_read_write_fn) (UINT32 startAddr, UINT32 space, UINT32 rwFlag, CHAR *buf) |
define the type of functions for reading or writing exception information. 更多... | |
函数 | |
VOID | LOS_ExcInfoRegHook (UINT32 startAddr, UINT32 space, CHAR *buf, log_read_write_fn hook) |
Register recording exception information function. 更多... | |
变量 | |
CHAR | __int_stack_start |
运行系统函数栈的开始地址 值来自于 liteos.ld中的 __int_stack_start = .; 更多... | |
UINT32 | g_sysClock |
系统时钟,是绝大部分部件工作的时钟源,也是其他所有外设的时钟的来源 更多... | |
UINT32 | g_tickPerSecond |
每秒Tick数,鸿蒙默认是每秒100次,即:10ms 更多... | |
define the type of functions for reading or writing exception information.
startAddr | [IN] Address of storage ,its must be left to save the exception address space |
space | [IN] size of storage.its is also the size of "buf" |
rwFlag | [IN] writer-read flag, 0 for writing,1 for reading, other number is to do nothing. |
buf | [IN] the buffer of storing data. |
none. |
在文件 los_config.h 第 435 行定义.
VOID LOS_ExcInfoRegHook | ( | UINT32 | startAddr, |
UINT32 | space, | ||
CHAR * | buf, | ||
log_read_write_fn | hook | ||
) |
Register recording exception information function.
startAddr | [IN] Address of storage, it must be left to save the exception address space |
space | [IN] size of storage space, it is also the size of "buf" |
buf | [IN] the buffer of storing exception information, the space of "buf" is malloc or free in user's code |
hook | [IN] the function for reading or writing exception information. |
none. |
Register recording exception information function.
在文件 los_excinfo.c 第 122 行定义.
|
extern |
运行系统函数栈的开始地址 值来自于 liteos.ld中的 __int_stack_start = .;
int stack start addr | 值在链接时赋予,详见liteos.ld文件
|
extern |
|
extern |