|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|

函数 | |
| 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. | |
|
extern |
Add a partition.
| 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. |
| #-ENODEV | The driver is not found. |
| #-EINVAL | Invalid parameter. |
| #-ENOMEM | Insufficient memory. |
| #ENOERR | The partition is successfully created. |
Delete a partition.
| partitionNum | [IN] Partition number, less than the value defined by CONFIG_MTD_PATTITION_NUM. |
| type | [IN] Storage medium type, support "nand" and "spinor" currently. |
| #-EINVAL | Invalid parameter. |
| #ENOERR | The partition is successfully deleted. |