SAM4S-EK_FreeRTOS+FAT-SL  1.0
An example project to test the functionality of FreeRTOS+FAT-SL using SD card as data storage medium
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules
config_fat_sl.h
Go to the documentation of this file.
1 /*
2  * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
3  *
4  * FreeRTOS+FAT SL is an complementary component provided to Real Time Engineers
5  * Ltd. by HCC Embedded for use with FreeRTOS. It is not, in itself, part of
6  * the FreeRTOS kernel. FreeRTOS+FAT SL is licensed separately from FreeRTOS,
7  * and uses a different license to FreeRTOS. FreeRTOS+FAT SL uses a dual
8  * license model, information on which is provided below:
9  *
10  * - Open source licensing -
11  * FreeRTOS+FAT SL is a free download and may be used, modified and distributed
12  * without charge provided the user adheres to version two of the GNU General
13  * Public license (GPL) and does not remove the copyright notice or this text.
14  * The GPL V2 text is available on the gnu.org web site, and on the following
15  * URL: http://www.FreeRTOS.org/gpl-2.0.txt
16  *
17  * - Commercial licensing -
18  * Businesses and individuals who wish to incorporate FreeRTOS+FAT SL into
19  * proprietary software for redistribution in any form must first obtain a
20  * commercial license - and in-so-doing support the maintenance, support and
21  * further development of the FreeRTOS+FAT SL product. Commercial licenses can
22  * be obtained from http://shop.freertos.org and do not require any source files
23  * to be changed.
24  *
25  * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
26  * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
27  * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
28  * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
29  * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
30  * conditions and terms, be they implied, expressed, or statutory.
31  *
32  * http://www.FreeRTOS.org
33  * http://www.FreeRTOS.org/FreeRTOS-Plus
34  *
35  */
36 
37 #ifndef _CONFIG_FAT_SL_H
38 #define _CONFIG_FAT_SL_H
39 
40 #include "ver_fat_sl.h"
41 #if VER_FAT_SL_MAJOR != 5 || VER_FAT_SL_MINOR != 2
42  #error Incompatible FAT_SL version number!
43 #endif
44 
45 #include "api_mdriver.h"
46 
47 #ifdef __cplusplus
48 extern "C" {
49 #endif
50 
51 
52 /**************************************************************************
53 **
54 ** FAT SL user settings
55 **
56 **************************************************************************/
57 #define F_SECTOR_SIZE 512u /* Disk sector size. */
58 #define F_FS_THREAD_AWARE 1 /* Set to one if the file system will be access from more than one task. */
59 #define F_MAXPATH 64 /* Maximum length a file name (including its full path) can be. */
60 #define F_MAX_LOCK_WAIT_TICKS 20 /* The maximum number of RTOS ticks to wait when attempting to obtain a lock on the file system when F_FS_THREAD_AWARE is set to 1. */
61 
62 #ifdef __cplusplus
63 }
64 #endif
65 
66 #endif /* _CONFIG_FAT_SL_H */
67