[ ]
Real time embedded FreeRTOS mailing list 
Homepage FreeRTOS Labs FreeRTOS+TCP FreeRTOS+FAT FreeRTOS+POSIX Contact / Enquiries


FreeRTOS+FAT is still in the lab
FreeRTOS+FAT is already in use in commercial products and we encourage you to try it yourself. Be aware however that FreeRTOS+FAT was acquired by Real Time Engineers Ltd., and is still being documented and updated to ensure it meets our strict quality standards. Please use the forum for support, or contact us directly if you have a specific business interest.

FF_Mount()

[FreeRTOS+FAT Native API Reference]

ff_ioman.h
FF_Error_t FF_Mount( FF_Disk_t *pxDisk, BaseType_t xPartitionNumber );
		

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.

Partitioning divides the media into multiple units, each of which is called a partition. A partition cannot be used to hold a FreeRTOS+FAT file system until it has been formatted.

Formatted partitions must be mounted before they can be used with the FreeRTOS+Fat standard API.

Parameters:

pxDisk   The FF_Disk_t structure that holds the formatted partition to be mounted.

xPartitionNumber   The number of the partition on the media to mount. Partition numbers start from 0.

Returns:

If the partition was successfully mounted then FF_ERR_NONE is returned. If the partition could not be mounted then an error code is returned. FF_GetErrMessage() converts error codes into error descriptions.

Example usage:

The page that documents how to create a FreeRTOS+FAT media driver also demonstrates how to use the FF_Mount() function.


[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ FreeRTOS Labs Sitemap ]    [ Main FreeRTOS Sitemap ]    [ ]




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.