Attempts to merge SPI_TFT2 & SPI_TFT_ILI9341

Dependencies:   SPI_TFTx2 TFT_fonts TOUCH_TFTx2 mbed

Fork of CANary by Tick Tock

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ffconf.h Source File

ffconf.h

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