![](/media/cache/profiles/0df840aed5f513a02964d0c27bc4f277.jpg.50x50_q85.jpg)
Attempts to merge SPI_TFT2 & SPI_TFT_ILI9341
Dependencies: SPI_TFTx2 TFT_fonts TOUCH_TFTx2 mbed
Fork of CANary by
CHAN_FS/ffconf.h@109:3e6f0e8fca0d, 2013-06-30 (annotated)
- Committer:
- TickTock
- Date:
- Sun Jun 30 17:52:58 2013 +0000
- Branch:
- Metric
- Revision:
- 109:3e6f0e8fca0d
Change filesystem library. Got logging and playback working.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
TickTock | 109:3e6f0e8fca0d | 1 | /*---------------------------------------------------------------------------/ |
TickTock | 109:3e6f0e8fca0d | 2 | / FatFs - FAT file system module configuration file R0.07e (C)ChaN, 2009 |
TickTock | 109:3e6f0e8fca0d | 3 | /----------------------------------------------------------------------------/ |
TickTock | 109:3e6f0e8fca0d | 4 | / |
TickTock | 109:3e6f0e8fca0d | 5 | / CAUTION! Do not forget to make clean the project after any changes to |
TickTock | 109:3e6f0e8fca0d | 6 | / the configuration options. |
TickTock | 109:3e6f0e8fca0d | 7 | / |
TickTock | 109:3e6f0e8fca0d | 8 | /----------------------------------------------------------------------------*/ |
TickTock | 109:3e6f0e8fca0d | 9 | #ifndef _FFCONFIG |
TickTock | 109:3e6f0e8fca0d | 10 | #define _FFCONFIG 0x007E |
TickTock | 109:3e6f0e8fca0d | 11 | |
TickTock | 109:3e6f0e8fca0d | 12 | |
TickTock | 109:3e6f0e8fca0d | 13 | /*---------------------------------------------------------------------------/ |
TickTock | 109:3e6f0e8fca0d | 14 | / Function and Buffer Configurations |
TickTock | 109:3e6f0e8fca0d | 15 | /----------------------------------------------------------------------------*/ |
TickTock | 109:3e6f0e8fca0d | 16 | |
TickTock | 109:3e6f0e8fca0d | 17 | #define _FS_TINY 0 /* 0 or 1 */ |
TickTock | 109:3e6f0e8fca0d | 18 | /* When _FS_TINY is set to 1, FatFs uses the sector buffer in the file system |
TickTock | 109:3e6f0e8fca0d | 19 | / object instead of the sector buffer in the individual file object for file |
TickTock | 109:3e6f0e8fca0d | 20 | / data transfer. This reduces memory consumption 512 bytes each file object. */ |
TickTock | 109:3e6f0e8fca0d | 21 | |
TickTock | 109:3e6f0e8fca0d | 22 | |
TickTock | 109:3e6f0e8fca0d | 23 | #define _FS_READONLY 0 /* 0 or 1 */ |
TickTock | 109:3e6f0e8fca0d | 24 | /* Setting _FS_READONLY to 1 defines read only configuration. This removes |
TickTock | 109:3e6f0e8fca0d | 25 | / writing functions, f_write, f_sync, f_unlink, f_mkdir, f_chmod, f_rename, |
TickTock | 109:3e6f0e8fca0d | 26 | / f_truncate and useless f_getfree. */ |
TickTock | 109:3e6f0e8fca0d | 27 | |
TickTock | 109:3e6f0e8fca0d | 28 | |
TickTock | 109:3e6f0e8fca0d | 29 | #define _FS_MINIMIZE 0 /* 0, 1, 2 or 3 */ |
TickTock | 109:3e6f0e8fca0d | 30 | /* The _FS_MINIMIZE option defines minimization level to remove some functions. |
TickTock | 109:3e6f0e8fca0d | 31 | / |
TickTock | 109:3e6f0e8fca0d | 32 | / 0: Full function. |
TickTock | 109:3e6f0e8fca0d | 33 | / 1: f_stat, f_getfree, f_unlink, f_mkdir, f_chmod, f_truncate and f_rename |
TickTock | 109:3e6f0e8fca0d | 34 | / are removed. |
TickTock | 109:3e6f0e8fca0d | 35 | / 2: f_opendir and f_readdir are removed in addition to level 1. |
TickTock | 109:3e6f0e8fca0d | 36 | / 3: f_lseek is removed in addition to level 2. */ |
TickTock | 109:3e6f0e8fca0d | 37 | |
TickTock | 109:3e6f0e8fca0d | 38 | |
TickTock | 109:3e6f0e8fca0d | 39 | #define _USE_STRFUNC 1 /* 0, 1 or 2 */ |
TickTock | 109:3e6f0e8fca0d | 40 | /* To enable string functions, set _USE_STRFUNC to 1 or 2. */ |
TickTock | 109:3e6f0e8fca0d | 41 | |
TickTock | 109:3e6f0e8fca0d | 42 | |
TickTock | 109:3e6f0e8fca0d | 43 | #define _USE_MKFS 0 /* 0 or 1 */ |
TickTock | 109:3e6f0e8fca0d | 44 | /* To enable f_mkfs function, set _USE_MKFS to 1 and set _FS_READONLY to 0 */ |
TickTock | 109:3e6f0e8fca0d | 45 | |
TickTock | 109:3e6f0e8fca0d | 46 | |
TickTock | 109:3e6f0e8fca0d | 47 | #define _USE_FORWARD 0 /* 0 or 1 */ |
TickTock | 109:3e6f0e8fca0d | 48 | /* To enable f_forward function, set _USE_FORWARD to 1 and set _FS_TINY to 1. */ |
TickTock | 109:3e6f0e8fca0d | 49 | |
TickTock | 109:3e6f0e8fca0d | 50 | |
TickTock | 109:3e6f0e8fca0d | 51 | |
TickTock | 109:3e6f0e8fca0d | 52 | /*---------------------------------------------------------------------------/ |
TickTock | 109:3e6f0e8fca0d | 53 | / Locale and Namespace Configurations |
TickTock | 109:3e6f0e8fca0d | 54 | /----------------------------------------------------------------------------*/ |
TickTock | 109:3e6f0e8fca0d | 55 | |
TickTock | 109:3e6f0e8fca0d | 56 | #define _CODE_PAGE 437 |
TickTock | 109:3e6f0e8fca0d | 57 | /* The _CODE_PAGE specifies the OEM code page to be used on the target system. |
TickTock | 109:3e6f0e8fca0d | 58 | / Incorrect setting of the code page can cause a file open failure. |
TickTock | 109:3e6f0e8fca0d | 59 | / |
TickTock | 109:3e6f0e8fca0d | 60 | / 932 - Japanese Shift-JIS (DBCS, OEM, Windows) |
TickTock | 109:3e6f0e8fca0d | 61 | / 936 - Simplified Chinese GBK (DBCS, OEM, Windows) |
TickTock | 109:3e6f0e8fca0d | 62 | / 949 - Korean (DBCS, OEM, Windows) |
TickTock | 109:3e6f0e8fca0d | 63 | / 950 - Traditional Chinese Big5 (DBCS, OEM, Windows) |
TickTock | 109:3e6f0e8fca0d | 64 | / 1250 - Central Europe (Windows) |
TickTock | 109:3e6f0e8fca0d | 65 | / 1251 - Cyrillic (Windows) |
TickTock | 109:3e6f0e8fca0d | 66 | / 1252 - Latin 1 (Windows) |
TickTock | 109:3e6f0e8fca0d | 67 | / 1253 - Greek (Windows) |
TickTock | 109:3e6f0e8fca0d | 68 | / 1254 - Turkish (Windows) |
TickTock | 109:3e6f0e8fca0d | 69 | / 1255 - Hebrew (Windows) |
TickTock | 109:3e6f0e8fca0d | 70 | / 1256 - Arabic (Windows) |
TickTock | 109:3e6f0e8fca0d | 71 | / 1257 - Baltic (Windows) |
TickTock | 109:3e6f0e8fca0d | 72 | / 1258 - Vietnam (OEM, Windows) |
TickTock | 109:3e6f0e8fca0d | 73 | / 437 - U.S. (OEM) |
TickTock | 109:3e6f0e8fca0d | 74 | / 720 - Arabic (OEM) |
TickTock | 109:3e6f0e8fca0d | 75 | / 737 - Greek (OEM) |
TickTock | 109:3e6f0e8fca0d | 76 | / 775 - Baltic (OEM) |
TickTock | 109:3e6f0e8fca0d | 77 | / 850 - Multilingual Latin 1 (OEM) |
TickTock | 109:3e6f0e8fca0d | 78 | / 858 - Multilingual Latin 1 + Euro (OEM) |
TickTock | 109:3e6f0e8fca0d | 79 | / 852 - Latin 2 (OEM) |
TickTock | 109:3e6f0e8fca0d | 80 | / 855 - Cyrillic (OEM) |
TickTock | 109:3e6f0e8fca0d | 81 | / 866 - Russian (OEM) |
TickTock | 109:3e6f0e8fca0d | 82 | / 857 - Turkish (OEM) |
TickTock | 109:3e6f0e8fca0d | 83 | / 862 - Hebrew (OEM) |
TickTock | 109:3e6f0e8fca0d | 84 | / 874 - Thai (OEM, Windows) |
TickTock | 109:3e6f0e8fca0d | 85 | / 1 - ASCII only (Valid for non LFN cfg.) |
TickTock | 109:3e6f0e8fca0d | 86 | */ |
TickTock | 109:3e6f0e8fca0d | 87 | |
TickTock | 109:3e6f0e8fca0d | 88 | |
TickTock | 109:3e6f0e8fca0d | 89 | #define _USE_LFN 1 /* 0, 1 or 2 */ |
TickTock | 109:3e6f0e8fca0d | 90 | #define _MAX_LFN 255 /* Maximum LFN length to handle (12 to 255) */ |
TickTock | 109:3e6f0e8fca0d | 91 | /* The _USE_LFN option switches the LFN support. |
TickTock | 109:3e6f0e8fca0d | 92 | / |
TickTock | 109:3e6f0e8fca0d | 93 | / 0: Disable LFN. _MAX_LFN and _LFN_UNICODE have no effect. |
TickTock | 109:3e6f0e8fca0d | 94 | / 1: Enable LFN with static working buffer on the bss. NOT REENTRANT. |
TickTock | 109:3e6f0e8fca0d | 95 | / 2: Enable LFN with dynamic working buffer on the STACK. |
TickTock | 109:3e6f0e8fca0d | 96 | / |
TickTock | 109:3e6f0e8fca0d | 97 | / The LFN working buffer occupies (_MAX_LFN + 1) * 2 bytes. When enable LFN, |
TickTock | 109:3e6f0e8fca0d | 98 | / two Unicode handling functions ff_convert() and ff_wtoupper() must be added |
TickTock | 109:3e6f0e8fca0d | 99 | / to the project. */ |
TickTock | 109:3e6f0e8fca0d | 100 | |
TickTock | 109:3e6f0e8fca0d | 101 | |
TickTock | 109:3e6f0e8fca0d | 102 | #define _LFN_UNICODE 0 /* 0 or 1 */ |
TickTock | 109:3e6f0e8fca0d | 103 | /* To switch the character code set on FatFs API to Unicode, |
TickTock | 109:3e6f0e8fca0d | 104 | / enable LFN feature and set _LFN_UNICODE to 1. |
TickTock | 109:3e6f0e8fca0d | 105 | */ |
TickTock | 109:3e6f0e8fca0d | 106 | |
TickTock | 109:3e6f0e8fca0d | 107 | |
TickTock | 109:3e6f0e8fca0d | 108 | #define _FS_RPATH 0 /* 0 or 1 */ |
TickTock | 109:3e6f0e8fca0d | 109 | /* When _FS_RPATH is set to 1, relative path feature is enabled and f_chdir, |
TickTock | 109:3e6f0e8fca0d | 110 | / f_chdrive function are available. |
TickTock | 109:3e6f0e8fca0d | 111 | / Note that output of the f_readdir fnction is affected by this option. */ |
TickTock | 109:3e6f0e8fca0d | 112 | |
TickTock | 109:3e6f0e8fca0d | 113 | |
TickTock | 109:3e6f0e8fca0d | 114 | |
TickTock | 109:3e6f0e8fca0d | 115 | /*---------------------------------------------------------------------------/ |
TickTock | 109:3e6f0e8fca0d | 116 | / Physical Drive Configurations |
TickTock | 109:3e6f0e8fca0d | 117 | /----------------------------------------------------------------------------*/ |
TickTock | 109:3e6f0e8fca0d | 118 | |
TickTock | 109:3e6f0e8fca0d | 119 | #define _DRIVES 1 |
TickTock | 109:3e6f0e8fca0d | 120 | /* Number of volumes (logical drives) to be used. */ |
TickTock | 109:3e6f0e8fca0d | 121 | |
TickTock | 109:3e6f0e8fca0d | 122 | |
TickTock | 109:3e6f0e8fca0d | 123 | #define _MAX_SS 1024 /* 512, 1024, 2048 or 4096 */ |
TickTock | 109:3e6f0e8fca0d | 124 | /* Maximum sector size to be handled. |
TickTock | 109:3e6f0e8fca0d | 125 | / Always set 512 for memory card and hard disk but a larger value may be |
TickTock | 109:3e6f0e8fca0d | 126 | / required for floppy disk (512/1024) and optical disk (512/2048). |
TickTock | 109:3e6f0e8fca0d | 127 | / When _MAX_SS is larger than 512, GET_SECTOR_SIZE command must be implememted |
TickTock | 109:3e6f0e8fca0d | 128 | / to the disk_ioctl function. */ |
TickTock | 109:3e6f0e8fca0d | 129 | |
TickTock | 109:3e6f0e8fca0d | 130 | |
TickTock | 109:3e6f0e8fca0d | 131 | #define _MULTI_PARTITION 0 /* 0 or 1 */ |
TickTock | 109:3e6f0e8fca0d | 132 | /* When _MULTI_PARTITION is set to 0, each volume is bound to the same physical |
TickTock | 109:3e6f0e8fca0d | 133 | / drive number and can mount only first primaly partition. When it is set to 1, |
TickTock | 109:3e6f0e8fca0d | 134 | / each volume is tied to the partitions listed in Drives[]. */ |
TickTock | 109:3e6f0e8fca0d | 135 | |
TickTock | 109:3e6f0e8fca0d | 136 | |
TickTock | 109:3e6f0e8fca0d | 137 | |
TickTock | 109:3e6f0e8fca0d | 138 | /*---------------------------------------------------------------------------/ |
TickTock | 109:3e6f0e8fca0d | 139 | / System Configurations |
TickTock | 109:3e6f0e8fca0d | 140 | /----------------------------------------------------------------------------*/ |
TickTock | 109:3e6f0e8fca0d | 141 | |
TickTock | 109:3e6f0e8fca0d | 142 | #define _WORD_ACCESS 0 /* 0 or 1 */ |
TickTock | 109:3e6f0e8fca0d | 143 | /* The _WORD_ACCESS option defines which access method is used to the word |
TickTock | 109:3e6f0e8fca0d | 144 | / data on the FAT volume. |
TickTock | 109:3e6f0e8fca0d | 145 | / |
TickTock | 109:3e6f0e8fca0d | 146 | / 0: Byte-by-byte access. Always compatible with all platforms. |
TickTock | 109:3e6f0e8fca0d | 147 | / 1: Word access. Do not choose this unless following condition is met. |
TickTock | 109:3e6f0e8fca0d | 148 | / |
TickTock | 109:3e6f0e8fca0d | 149 | / When the byte order on the memory is big-endian or address miss-aligned |
TickTock | 109:3e6f0e8fca0d | 150 | / word access results incorrect behavior, the _WORD_ACCESS must be set to 0. |
TickTock | 109:3e6f0e8fca0d | 151 | / If it is not the case, the value can also be set to 1 to improve the |
TickTock | 109:3e6f0e8fca0d | 152 | / performance and code size. */ |
TickTock | 109:3e6f0e8fca0d | 153 | |
TickTock | 109:3e6f0e8fca0d | 154 | |
TickTock | 109:3e6f0e8fca0d | 155 | #define _FS_REENTRANT 0 /* 0 or 1 */ |
TickTock | 109:3e6f0e8fca0d | 156 | #define _FS_TIMEOUT 1000 /* Timeout period in unit of time ticks */ |
TickTock | 109:3e6f0e8fca0d | 157 | #define _SYNC_t HANDLE /* O/S dependent type of sync object. e.g. HANDLE, OS_EVENT*, ID and etc.. */ |
TickTock | 109:3e6f0e8fca0d | 158 | /* The _FS_REENTRANT option switches the reentrancy of the FatFs module. |
TickTock | 109:3e6f0e8fca0d | 159 | / |
TickTock | 109:3e6f0e8fca0d | 160 | / 0: Disable reentrancy. _SYNC_t and _FS_TIMEOUT have no effect. |
TickTock | 109:3e6f0e8fca0d | 161 | / 1: Enable reentrancy. Also user provided synchronization handlers, |
TickTock | 109:3e6f0e8fca0d | 162 | / ff_req_grant, ff_rel_grant, ff_del_syncobj and ff_cre_syncobj |
TickTock | 109:3e6f0e8fca0d | 163 | / function must be added to the project. */ |
TickTock | 109:3e6f0e8fca0d | 164 | |
TickTock | 109:3e6f0e8fca0d | 165 | |
TickTock | 109:3e6f0e8fca0d | 166 | #endif /* _FFCONFIG */ |