Du läser för närvarande dokumentationen för:
ECF_CreatePartition
The ECF_CreatePartition function creates a partition on the supplied block device.
ECF_ErrorCode ECF_CreatePartition(
   struct ECF_BlockDriver *pBlockDriver,
   uint8_t partitionType,
   uint32_t sizeInSectors,
   uint16_t flags
);
Parameters
pBlockDriver
This is a pointer to a struct ECF_BlockDriver of the disk you want to create the partition on.
partitionType
The partition type:
ECF_PARTITION_TYPE_FAT:
Create a FAT partition to store a FAT file system on.
ECF_PARTITION_TYPE_RAW:
Create a RAW partition to store raw data in.
sizeInSectors
The size of the partition in sectors. Specify 0 to use all of the remaining space.
flags
Flags. No flags are currently defined, just specify 0.
Return value
Returns one of the EcFAT error codes (ECFERR_SUCCESS on success)
Remarks
Call ECF_CreatePartitionTable() first to create/clear the partition table. Then call ECF_CreatePartition() for each partition you want to create. You need to specify ECF_OPT_SUPPORT_FORMAT in your Project.h for EcFAT to compile with support for this function.
Example Code
See example for ECF_CreatePartitionTable
See also