f_initvolume


Use this function to initialize the volume.

Call this every time the file system is started. 

Format

unsigned char f_initvolume ( void )

Arguments

None.

Return values

Argument Description
F_NOERR Successful execution.
Else See Error Codes.

Example

void myinitfs( void ) 
{
    unsigned char ret;

    /* Initialize the drive */

    ret = f_initvolume();
    if (ret)
        printf( "Drive init error %d\n", ret );
    ...
}