|Hint: Use the tree menu to navigate groups of related pages|
Creating a Media Driver: The FF_Disk_t Structure
FreeRTOS+FAT stores information that is common to all media types in a
structure of type FF_Disk_t. Media drivers can extended the FF_Disk_t structure
to include additional information that is specific to the media in use.
For example, the initialisation
function used by FreeRTOS+FAT’s RAM disk driver extends the FF_Disk_t
structure to include a pointer to the RAM buffer used as the disk.
Creating a FreeRTOS+FAT Media Driver
The pxIOManager member of the FF_Disk_t structure is created by calling FF_CreateIOManager().
It is advisable to clear the entire structure to zero after it has been allocated – that way the media driver will be compatible with future FreeRTOS+FAT versions, in which the FF_Disk_t structure may include additional members.