Code for autonomous ground vehicle, Data Bus, 3rd place winner in 2012 Sparkfun AVC.

Dependencies:   Watchdog mbed Schedule SimpleFilter LSM303DLM PinDetect DebounceIn Servo

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ffconf.h Source File

ffconf.h

00001 //Modified by Thomas Hamilton, Copyright 2010
00002 
00003 /*---------------------------------------------------------------------------/
00004 /  FatFs - FAT file system module configuration file  R0.08  (C)ChaN, 2010   /
00005 /----------------------------------------------------------------------------/
00006 /
00007 / CAUTION! Do not forget to make clean the project after any changes to
00008 / the configuration options.
00009 /
00010 /---------------------------------------------------------------------------*/
00011 
00012 #ifndef _FFCONF
00013 #define _FFCONF 8085    /* Revision ID */
00014 
00015 /*---------------------------------------------------------------------------/
00016 / Function and Buffer Configurations                                         /
00017 /---------------------------------------------------------------------------*/
00018 
00019 #define _FS_TINY            0       /* 0:Normal or 1:Tiny */
00020 /* When _FS_TINY is set to 1, FatFs uses the sector buffer in the file system
00021 /  object instead of the sector buffer in the individual file object for file
00022 /  data transfer. This reduces memory consumption 512 bytes each file object. */
00023 
00024 #define _FS_READONLY        0       /* 0:Read/Write or 1:Read only */
00025 /* Setting _FS_READONLY to 1 defines read only configuration. This removes
00026 /  writing functions, f_write, f_sync, f_unlink, f_mkdir, f_chmod, f_rename,
00027 /  f_truncate and useless f_getfree. */
00028 
00029 #define _FS_MINIMIZE        0       /* 0, 1, 2 or 3 */
00030 /* The _FS_MINIMIZE option defines minimization level to remove some functions.
00031 /
00032 /   0: Full function.
00033 /   1: f_stat, f_getfree, f_unlink, f_mkdir, f_chmod, f_truncate and f_rename
00034 /      are removed.
00035 /   2: f_opendir and f_readdir are removed in addition to level 1.
00036 /   3: f_lseek is removed in addition to level 2. */
00037 
00038 #define _USE_STRFUNC        2       /* 0:Disable or 1/2:Enable */
00039 /* To enable string functions, set _USE_STRFUNC to 1 or 2. */
00040 
00041 #define _USE_MKFS           1       /* 0:Disable or 1:Enable */
00042 /* To enable f_mkfs function, set _USE_MKFS to 1 and set _FS_READONLY to 0 */
00043 
00044 #define _USE_FORWARD        0       /* 0:Disable or 1:Enable */
00045 /* To enable f_forward function, set _USE_FORWARD to 1 and set _FS_TINY to 1. */
00046 
00047 #define _USE_FASTSEEK       0       /* 0:Disable or 1:Enable */
00048 /* To enable fast seek feature, set _USE_FASTSEEK to 1. */
00049 
00050 /*---------------------------------------------------------------------------/
00051 / Locale and Namespace Configurations
00052 /----------------------------------------------------------------------------*/
00053 
00054 #define _CODE_PAGE          1
00055 /* The _CODE_PAGE specifies the OEM code page to be used on the target system.
00056 /  Incorrect setting of the code page can cause a file open failure.
00057 /
00058 /   932  - Japanese Shift-JIS (DBCS, OEM, Windows)
00059 /   936  - Simplified Chinese GBK (DBCS, OEM, Windows)
00060 /   949  - Korean (DBCS, OEM, Windows)
00061 /   950  - Traditional Chinese Big5 (DBCS, OEM, Windows)
00062 /   1250 - Central Europe (Windows)
00063 /   1251 - Cyrillic (Windows)
00064 /   1252 - Latin 1 (Windows)
00065 /   1253 - Greek (Windows)
00066 /   1254 - Turkish (Windows)
00067 /   1255 - Hebrew (Windows)
00068 /   1256 - Arabic (Windows)
00069 /   1257 - Baltic (Windows)
00070 /   1258 - Vietnam (OEM, Windows)
00071 /   437  - U.S. (OEM)
00072 /   720  - Arabic (OEM)
00073 /   737  - Greek (OEM)
00074 /   775  - Baltic (OEM)
00075 /   850  - Multilingual Latin 1 (OEM)
00076 /   858  - Multilingual Latin 1 + Euro (OEM)
00077 /   852  - Latin 2 (OEM)
00078 /   855  - Cyrillic (OEM)
00079 /   866  - Russian (OEM)
00080 /   857  - Turkish (OEM)
00081 /   862  - Hebrew (OEM)
00082 /   874  - Thai (OEM, Windows)
00083 /    1    - ASCII only (Valid for non LFN cfg.) */
00084 
00085 #define _USE_LFN            0       /* 0 to 3 */
00086 #define _MAX_LFN            255     /* Maximum LFN length to handle (12 to 255) */
00087 /* The _USE_LFN option switches the LFN support.
00088 /
00089 /   0: Disable LFN. _MAX_LFN and _LFN_UNICODE have no effect.
00090 /   1: Enable LFN with static working buffer on the bss. NOT REENTRANT.
00091 /   2: Enable LFN with dynamic working buffer on the STACK.
00092 /   3: Enable LFN with dynamic working buffer on the HEAP.
00093 /
00094 /  The LFN working buffer occupies (_MAX_LFN + 1) * 2 bytes. When enable LFN,
00095 /  Unicode handling functions ff_convert() and ff_wtoupper() must be added
00096 /  to the project. When enable to use heap, memory control functions
00097 /  ff_memalloc() and ff_memfree() must be added to the project. */
00098 
00099 #define _LFN_UNICODE        0       /* 0:ANSI/OEM or 1:Unicode */
00100 /* To switch the character code set on FatFs API to Unicode,
00101 /  enable LFN feature and set _LFN_UNICODE to 1. */
00102 
00103 #define _FS_RPATH           0       /* 0:Disable or 1:Enable */
00104 /* When _FS_RPATH is set to 1, relative path feature is enabled and f_chdir,
00105 /  f_chdrive function are available.
00106 /  Note that output of the f_readdir fnction is affected by this option. */
00107 
00108 /*---------------------------------------------------------------------------/
00109 / Physical Drive Configurations
00110 /----------------------------------------------------------------------------*/
00111 
00112 #define _DRIVES             7
00113 /* Number of volumes (logical drives) to be used. */
00114 
00115 #define _MAX_SS             512     /* 512, 1024, 2048 or 4096 */
00116 /* Maximum sector size to be handled.
00117 /  Always set 512 for memory card and hard disk but a larger value may be
00118 /  required for floppy disk (512/1024) and optical disk (512/2048).
00119 /  When _MAX_SS is larger than 512, GET_SECTOR_SIZE command must be implememted
00120 /  to the disk_ioctl function. */
00121 
00122 #define _MULTI_PARTITION    0       /* 0:Single parition or 1:Multiple partition */
00123 /* When _MULTI_PARTITION is set to 0, each volume is bound to the same physical
00124 / drive number and can mount only first primaly partition. When it is set to 1,
00125 / each volume is tied to the partitions listed in Drives[]. */
00126 
00127 /*---------------------------------------------------------------------------/
00128 / System Configurations
00129 /----------------------------------------------------------------------------*/
00130 
00131 #define _WORD_ACCESS        0       /* 0 or 1 */
00132 /* Set 0 first and it is always compatible with all platforms. The _WORD_ACCESS
00133 /  option defines which access method is used to the word data on the FAT volume.
00134 /
00135 /   0: Byte-by-byte access.
00136 /   1: Word access. Do not choose this unless following condition is met.
00137 /
00138 /  When the byte order on the memory is big-endian or address miss-aligned word
00139 /  access results incorrect behavior, the _WORD_ACCESS must be set to 0.
00140 /  If it is not the case, the value can also be set to 1 to improve the
00141 /  performance and code size. */
00142 
00143 #define _FS_REENTRANT       0       /* 0:Disable or 1:Enable */
00144 #define _FS_TIMEOUT         1024    /* Timeout period in unit of time ticks */
00145 #define _SYNC_t             HANDLE  /* O/S dependent type of sync object.
00146                                     e.g. HANDLE, OS_EVENT*, ID and etc.. */
00147 /* Include a header file here to define O/S system calls */
00148 /* #include <windows.h>, <ucos_ii.h.h>, <semphr.h> or ohters. */
00149 
00150 /* The _FS_REENTRANT option switches the reentrancy of the FatFs module.
00151 /
00152 /   0: Disable reentrancy. _SYNC_t and _FS_TIMEOUT have no effect.
00153 /   1: Enable reentrancy. Also user provided synchronization handlers,
00154 /      ff_req_grant, ff_rel_grant, ff_del_syncobj and ff_cre_syncobj
00155 /      function must be added to the project. */
00156 
00157 #define _FS_SHARE           0       /* 0:Disable or >=1:Enable */
00158 /* To enable file sharing feature, set _FS_SHARE to >= 1 and also user
00159    provided memory handlers, ff_memalloc and ff_memfree function must be
00160    added to the project. The value defines number of files can be opened
00161    per volume. */
00162 
00163 #endif