Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Homepage FreeRTOS+ Products FreeRTOS Labs Integration Services Contact / Enquiries

FreeRTOS+FAT SL Configuration


Applications that use FreeRTOS+FAT SL must provide a very simple header configuration header file called config_fat_sl.h. A template is provided in FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/config.

The configuration header file contains the following items:

Configuration Constant Description
F_FS_THREAD_AWARE If the file system is accessed from more than one task then F_FS_THREAD_AWARE must be set to 1. If the file system is only going to be accessed from a single task then setting F_FS_THREAD_AWARE to 0 will reduce code size and improve run time.

F_MAX_LOCK_WAIT_TICKS   When F_FS_THREAD_AWARE is set to 1 a FreeRTOS mutex is used to protect file system data structures from being accessed by more than one task simultaniously. F_MAX_LOCK_WAIT_TICKS sets the maximum amount of time a file system API function will wait to obtain the mutex. If the mutex cannot be obtained within this time the API function is aborted.

F_MAX_LOCK_WAIT_TICKS is specified in RTOS ticks. If configTICK_RATE_MS is at or below 1000 then milliseconds can be converted to RTOS ticks by dividing the millisecond value by portTICK_PERIOD_MS. configTICK_RATE_HZ is set in FreeRTOSConfig.h. portTICK_PERIOD_MS is provided by FreeRTOS.

F_MAXPATH A file name, including its full path, cannot be longer than F_MAXPATH characters.

F_SECTOR_SIZE Sets the file system sector size in bytes.

[ Back to the top ]    [ About FreeRTOS ]    [ FreeRTOS+ Sitemap ]    [ Main FreeRTOS Sitemap ]    [ ]

Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.