Real time embedded FreeRTOS RSS feed 
Homepage FreeRTOS+ Products FreeRTOS Labs Support Forum 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 ]    [ Privacy ]    [ FreeRTOS+ Sitemap ]    [ Main FreeRTOS Sitemap ]    [ ]

Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.