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

宏定义

#define BEFORE_SCATTER   0
 
#define AFTER_SCATTER   1
 
#define NO_SCATTER   2
 

函数

INT32 LOS_CppSystemInit (UINTPTR initArrayStart, UINTPTR initArrayEnd, INT32 flag)
 System cppsupport initialization.
 

详细描述

宏定义说明

◆ AFTER_SCATTER

#define AFTER_SCATTER   1

If LOS_CppSystemInit() is called in the second stage of scatter load, this flag should be passed as the third parameter.

◆ BEFORE_SCATTER

#define BEFORE_SCATTER   0

If LOS_CppSystemInit() is called in the first stage of scatter load, this flag should be passed as the third parameter.

◆ NO_SCATTER

#define NO_SCATTER   2

If scatter load is disabled, this flag should be passed as the third parameter when LOS_CppSystemInit() is called.

函数说明

◆ LOS_CppSystemInit()

INT32 LOS_CppSystemInit ( UINTPTR  initArrayStart,
UINTPTR  initArrayEnd,
INT32  flag 
)
extern

System cppsupport initialization.

Description:
This API is used to initialize the cppsupport.
注意
  • initArrayStart is the start address of .init_array section, initArrayEnd is the end address of .init_array section.
  • initArrayStart must be smaller than initArrayEnd, initArrayStart and initArrayEnd should be 4(32 bits platform) or 8(64 bits platform) bytes alignment.
参数
initArrayStart[IN] Start address of init_array section.
initArrayEnd[IN] End address of init_array section.
flag[IN] The flag indicating when LOS_CppSystemInit() is called, BEFORE_SCATTER, AFTER_SCATTER or NO_SCATTER.
返回值
LOS_OKInitialization succeeded.
LOS_NOKThe entered parameter is incorrect, initialization failed.
Dependency:
自从
Huawei LiteOS V100R001C00