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.
void ff_rewind( FF_FILE *pxStream );
Moves the current read/write position back to the start of a file.
ff_rewind( pxStream );
...is equivalent to calling
( void ) ff_fseek( pxStream, 0, FF_SEEK_SET );.
The file in which the current read/write position is
being set back to the start of the file.
void vSampleFunction( void )
char pcBuffer1[ 4 ], pcBuffer2[ 4 ];
pxFile = ff_fopen( "afile.bin", "r" );
if( pxFile != NULL )
ff_fread( pcBuffer1, 4, 1, pxFile );
ff_rewind( pxFile );
ff_fread( pcBuffer2, 4, 1, pxFile );
ff_fclose( pxFile );
Example use of the ff_rewind() API function