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

函数

INT32 add_mtd_partition (const CHAR *type, UINT32 startAddr, UINT32 length, UINT32 partitionNum)
 Add a partition.
 
INT32 delete_mtd_partition (UINT32 partitionNum, const CHAR *type)
 Delete a partition.
 

详细描述

函数说明

◆ add_mtd_partition()

INT32 add_mtd_partition ( const CHAR type,
UINT32  startAddr,
UINT32  length,
UINT32  partitionNum 
)
extern

Add a partition.

Description:
  • This API is used to add a partition according to the passed-in parameters.
注意
  • None.
参数
type[IN] Storage medium type, support "nand" and "spinor" currently.
startAddr[IN] Starting address of a partition.
length[IN] Partition size.
partitionNum[IN] Partition number, less than the value defined by CONFIG_MTD_PATTITION_NUM.
返回值
#-ENODEVThe driver is not found.
#-EINVALInvalid parameter.
#-ENOMEMInsufficient memory.
#ENOERRThe partition is successfully created.
Dependency:
参见
delete_mtd_partition
自从
Huawei LiteOS V100R001C00

◆ delete_mtd_partition()

INT32 delete_mtd_partition ( UINT32  partitionNum,
const CHAR type 
)
extern

Delete a partition.

Description:
  • This API is used to delete a partition according to its partition number and storage medium type.
注意
  • None.
参数
partitionNum[IN] Partition number, less than the value defined by CONFIG_MTD_PATTITION_NUM.
type[IN] Storage medium type, support "nand" and "spinor" currently.
返回值
#-EINVALInvalid parameter.
#ENOERRThe partition is successfully deleted.
Dependency:
参见
add_mtd_partition
自从
Huawei LiteOS V100R001C00