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

类型定义

typedef INT32(* SCATTER_FLASH_READ_FUNC) (void *memAddr, size_t start, size_t size)
 Define the type of a flash-reading function.
 
typedef void(* SCATTER_ENTRY_FUNC) (void)
 Define the type of a scatter-loading hook function.
 

函数

void LOS_ScatterLoad (UINTPTR imageFlashAddr, SCATTER_FLASH_READ_FUNC flashReadFunc, size_t readAlignSize)
 Scatter-loading function
 

变量

SCATTER_ENTRY_FUNC g_SCATTER_AFTER_FUNC
 

详细描述

类型定义说明

◆ SCATTER_ENTRY_FUNC

typedef void(* SCATTER_ENTRY_FUNC) (void)

Define the type of a scatter-loading hook function.

Description:
This API is used to define the type of a scatter-loading hook function, so that it can be called in the loading phase of scatter-loading.
注意
  • None.
参数
None.
返回值
None.
Dependency:
  • los_scatter.h: the header file that contains the API declaration.
参见
None.
自从
Huawei LiteOS V100R001C00

◆ SCATTER_FLASH_READ_FUNC

typedef INT32(* SCATTER_FLASH_READ_FUNC) (void *memAddr, size_t start, size_t size)

Define the type of a flash-reading function.

Description:
This API is used to define the type of a flash-reading function, so that it can be called to read data from a certain flash.
注意
  • None.
参数
memAddr[IN] The memory starting address where to write the data reading from a certain flash.
start[IN] The starting address to read data from a certain flash.
size[IN] The size of data reading from a certain flash.
返回值
INT32The size of data read from flash.
Dependency:
  • los_scatter.h: the header file that contains the API declaration.
参见
None.
自从
Huawei LiteOS V100R001C00

函数说明

◆ LOS_ScatterLoad()

void LOS_ScatterLoad ( UINTPTR  imageFlashAddr,
SCATTER_FLASH_READ_FUNC  flashReadFunc,
size_t  readAlignSize 
)
extern

Scatter-loading function

Description:
This API is used to copy image data of specified size from a specified type of storage medium.
注意
  • None.
参数
imageFlashAddr[IN] The flash starting address where the whole application image is burned.
flashReadFunc[IN] An abstract function for reading data from a certain flash.
readAlignSize[IN] Block align size when reading data from a certain flash.
返回值
None.
Dependency:
  • los_scatter.h: the header file that contains the API declaration.
参见
None.
自从
Huawei LiteOS V100R001C00

变量说明

◆ g_SCATTER_AFTER_FUNC

SCATTER_ENTRY_FUNC g_SCATTER_AFTER_FUNC
extern

Scatter-loading hook function