unsigned char f_format( unsigned char ucFATType );
Format the drive. Formatting a drive will close any files that were open
and destroy any data that already exists on the drive, including the master boot record.
The formatted drive will start with boot sector information created from
the information retrieved from the f_getphy()
routine, and use the entire physical space for the volume.
The format operation will fail if the format type is incompatible with
the size of the physical media.
void vFormatDrive( void )
unsigned char ucReturned;
ucReturned = f_format( F_FAT16_MEDIA );
if( ucReturned != F_NO_ERROR )
/* The drive could not be formatted (is the disk in?). ucReturned
holds the error code. */
/* The drive was formatted successfully. */