|Hint: Use the tree menu to navigate groups of related pages|
[FreeRTOS+FAT Native API Reference]
FF_Error_t FF_Partition( FF_Disk_t *pxDisk, FF_PartitionParameters *pxFormatParameters );
The media is the physical device on which files are stored. Examples of media suitable for use in an embedded file system include SD cards, solid state disks, NOR flash memory chips, NAND flash chips, and RAM chips.
Media cannot be used to hold a FreeRTOS+FAT file system until it has been partitioned.
Partitioning divides the media into multiple units, each of which is called a partition. Each partition can then be formatted to hold its own file system.
How the media is to be partitioned is described by a structure of type FF_PartitionParameters, which is shown below. A single partition that fills all available space on the media can be created by simply leaving the structure’s xSizes and xPrimaryCount members at zero.
The FF_Disk_t structure that describes the media being
A pointer to a structure that describes how the media will be
If the media is successfully partitioned then FF_ERR_NONE is returned. If the media could not be partitioned then an error code is returned. FF_GetErrMessage() converts error codes into error descriptions.