Only Yesterday 制御プログラム

Dependencies:   mbed FATFileSystem

Fork of OnlyYestaerday by Junichi Katsu

Committer:
jksoft
Date:
Wed Apr 02 01:43:55 2014 +0000
Revision:
0:5975af170e43
1st Prototype

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jksoft 0:5975af170e43 1 /*---------------------------------------------------------------------------/
jksoft 0:5975af170e43 2 / FatFs - FAT file system module configuration file R0.09a (C)ChaN, 2012
jksoft 0:5975af170e43 3 /----------------------------------------------------------------------------/
jksoft 0:5975af170e43 4 /
jksoft 0:5975af170e43 5 / CAUTION! Do not forget to make clean the project after any changes to
jksoft 0:5975af170e43 6 / the configuration options.
jksoft 0:5975af170e43 7 /
jksoft 0:5975af170e43 8 /----------------------------------------------------------------------------*/
jksoft 0:5975af170e43 9 #ifndef _FFCONF
jksoft 0:5975af170e43 10 #define _FFCONF 4004 /* Revision ID */
jksoft 0:5975af170e43 11
jksoft 0:5975af170e43 12 #define FFS_DBG 0
jksoft 0:5975af170e43 13
jksoft 0:5975af170e43 14 /*---------------------------------------------------------------------------/
jksoft 0:5975af170e43 15 / Functions and Buffer Configurations
jksoft 0:5975af170e43 16 /----------------------------------------------------------------------------*/
jksoft 0:5975af170e43 17
jksoft 0:5975af170e43 18 #define _FS_TINY 0 /* 0:Normal or 1:Tiny */
jksoft 0:5975af170e43 19 /* When _FS_TINY is set to 1, FatFs uses the sector buffer in the file system
jksoft 0:5975af170e43 20 / object instead of the sector buffer in the individual file object for file
jksoft 0:5975af170e43 21 / data transfer. This reduces memory consumption 512 bytes each file object. */
jksoft 0:5975af170e43 22
jksoft 0:5975af170e43 23
jksoft 0:5975af170e43 24 #define _FS_READONLY 0 /* 0:Read/Write or 1:Read only */
jksoft 0:5975af170e43 25 /* Setting _FS_READONLY to 1 defines read only configuration. This removes
jksoft 0:5975af170e43 26 / writing functions, f_write, f_sync, f_unlink, f_mkdir, f_chmod, f_rename,
jksoft 0:5975af170e43 27 / f_truncate and useless f_getfree. */
jksoft 0:5975af170e43 28
jksoft 0:5975af170e43 29
jksoft 0:5975af170e43 30 #define _FS_MINIMIZE 0 /* 0 to 3 */
jksoft 0:5975af170e43 31 /* The _FS_MINIMIZE option defines minimization level to remove some functions.
jksoft 0:5975af170e43 32 /
jksoft 0:5975af170e43 33 / 0: Full function.
jksoft 0:5975af170e43 34 / 1: f_stat, f_getfree, f_unlink, f_mkdir, f_chmod, f_truncate and f_rename
jksoft 0:5975af170e43 35 / are removed.
jksoft 0:5975af170e43 36 / 2: f_opendir and f_readdir are removed in addition to 1.
jksoft 0:5975af170e43 37 / 3: f_lseek is removed in addition to 2. */
jksoft 0:5975af170e43 38
jksoft 0:5975af170e43 39
jksoft 0:5975af170e43 40 #define _USE_STRFUNC 0 /* 0:Disable or 1-2:Enable */
jksoft 0:5975af170e43 41 /* To enable string functions, set _USE_STRFUNC to 1 or 2. */
jksoft 0:5975af170e43 42
jksoft 0:5975af170e43 43
jksoft 0:5975af170e43 44 #define _USE_MKFS 1 /* 0:Disable or 1:Enable */
jksoft 0:5975af170e43 45 /* To enable f_mkfs function, set _USE_MKFS to 1 and set _FS_READONLY to 0 */
jksoft 0:5975af170e43 46
jksoft 0:5975af170e43 47
jksoft 0:5975af170e43 48 #define _USE_FORWARD 0 /* 0:Disable or 1:Enable */
jksoft 0:5975af170e43 49 /* To enable f_forward function, set _USE_FORWARD to 1 and set _FS_TINY to 1. */
jksoft 0:5975af170e43 50
jksoft 0:5975af170e43 51
jksoft 0:5975af170e43 52 #define _USE_FASTSEEK 0 /* 0:Disable or 1:Enable */
jksoft 0:5975af170e43 53 /* To enable fast seek feature, set _USE_FASTSEEK to 1. */
jksoft 0:5975af170e43 54
jksoft 0:5975af170e43 55
jksoft 0:5975af170e43 56
jksoft 0:5975af170e43 57 /*---------------------------------------------------------------------------/
jksoft 0:5975af170e43 58 / Locale and Namespace Configurations
jksoft 0:5975af170e43 59 /----------------------------------------------------------------------------*/
jksoft 0:5975af170e43 60
jksoft 0:5975af170e43 61 #define _CODE_PAGE 858
jksoft 0:5975af170e43 62 /* The _CODE_PAGE specifies the OEM code page to be used on the target system.
jksoft 0:5975af170e43 63 / Incorrect setting of the code page can cause a file open failure.
jksoft 0:5975af170e43 64 /
jksoft 0:5975af170e43 65 / 932 - Japanese Shift-JIS (DBCS, OEM, Windows)
jksoft 0:5975af170e43 66 / 936 - Simplified Chinese GBK (DBCS, OEM, Windows)
jksoft 0:5975af170e43 67 / 949 - Korean (DBCS, OEM, Windows)
jksoft 0:5975af170e43 68 / 950 - Traditional Chinese Big5 (DBCS, OEM, Windows)
jksoft 0:5975af170e43 69 / 1250 - Central Europe (Windows)
jksoft 0:5975af170e43 70 / 1251 - Cyrillic (Windows)
jksoft 0:5975af170e43 71 / 1252 - Latin 1 (Windows)
jksoft 0:5975af170e43 72 / 1253 - Greek (Windows)
jksoft 0:5975af170e43 73 / 1254 - Turkish (Windows)
jksoft 0:5975af170e43 74 / 1255 - Hebrew (Windows)
jksoft 0:5975af170e43 75 / 1256 - Arabic (Windows)
jksoft 0:5975af170e43 76 / 1257 - Baltic (Windows)
jksoft 0:5975af170e43 77 / 1258 - Vietnam (OEM, Windows)
jksoft 0:5975af170e43 78 / 437 - U.S. (OEM)
jksoft 0:5975af170e43 79 / 720 - Arabic (OEM)
jksoft 0:5975af170e43 80 / 737 - Greek (OEM)
jksoft 0:5975af170e43 81 / 775 - Baltic (OEM)
jksoft 0:5975af170e43 82 / 850 - Multilingual Latin 1 (OEM)
jksoft 0:5975af170e43 83 / 858 - Multilingual Latin 1 + Euro (OEM)
jksoft 0:5975af170e43 84 / 852 - Latin 2 (OEM)
jksoft 0:5975af170e43 85 / 855 - Cyrillic (OEM)
jksoft 0:5975af170e43 86 / 866 - Russian (OEM)
jksoft 0:5975af170e43 87 / 857 - Turkish (OEM)
jksoft 0:5975af170e43 88 / 862 - Hebrew (OEM)
jksoft 0:5975af170e43 89 / 874 - Thai (OEM, Windows)
jksoft 0:5975af170e43 90 / 1 - ASCII only (Valid for non LFN cfg.)
jksoft 0:5975af170e43 91 */
jksoft 0:5975af170e43 92
jksoft 0:5975af170e43 93
jksoft 0:5975af170e43 94 #define _USE_LFN 1 /* 0 to 3 */
jksoft 0:5975af170e43 95 #define _MAX_LFN 255 /* Maximum LFN length to handle (12 to 255) */
jksoft 0:5975af170e43 96 /* The _USE_LFN option switches the LFN support.
jksoft 0:5975af170e43 97 /
jksoft 0:5975af170e43 98 / 0: Disable LFN feature. _MAX_LFN and _LFN_UNICODE have no effect.
jksoft 0:5975af170e43 99 / 1: Enable LFN with static working buffer on the BSS. Always NOT reentrant.
jksoft 0:5975af170e43 100 / 2: Enable LFN with dynamic working buffer on the STACK.
jksoft 0:5975af170e43 101 / 3: Enable LFN with dynamic working buffer on the HEAP.
jksoft 0:5975af170e43 102 /
jksoft 0:5975af170e43 103 / The LFN working buffer occupies (_MAX_LFN + 1) * 2 bytes. To enable LFN,
jksoft 0:5975af170e43 104 / Unicode handling functions ff_convert() and ff_wtoupper() must be added
jksoft 0:5975af170e43 105 / to the project. When enable to use heap, memory control functions
jksoft 0:5975af170e43 106 / ff_memalloc() and ff_memfree() must be added to the project. */
jksoft 0:5975af170e43 107
jksoft 0:5975af170e43 108
jksoft 0:5975af170e43 109 #define _LFN_UNICODE 0 /* 0:ANSI/OEM or 1:Unicode */
jksoft 0:5975af170e43 110 /* To switch the character code set on FatFs API to Unicode,
jksoft 0:5975af170e43 111 / enable LFN feature and set _LFN_UNICODE to 1. */
jksoft 0:5975af170e43 112
jksoft 0:5975af170e43 113
jksoft 0:5975af170e43 114 #define _FS_RPATH 0 /* 0 to 2 */
jksoft 0:5975af170e43 115 /* The _FS_RPATH option configures relative path feature.
jksoft 0:5975af170e43 116 /
jksoft 0:5975af170e43 117 / 0: Disable relative path feature and remove related functions.
jksoft 0:5975af170e43 118 / 1: Enable relative path. f_chdrive() and f_chdir() are available.
jksoft 0:5975af170e43 119 / 2: f_getcwd() is available in addition to 1.
jksoft 0:5975af170e43 120 /
jksoft 0:5975af170e43 121 / Note that output of the f_readdir fnction is affected by this option. */
jksoft 0:5975af170e43 122
jksoft 0:5975af170e43 123
jksoft 0:5975af170e43 124
jksoft 0:5975af170e43 125 /*---------------------------------------------------------------------------/
jksoft 0:5975af170e43 126 / Physical Drive Configurations
jksoft 0:5975af170e43 127 /----------------------------------------------------------------------------*/
jksoft 0:5975af170e43 128
jksoft 0:5975af170e43 129 #define _VOLUMES 1
jksoft 0:5975af170e43 130 /* Number of volumes (logical drives) to be used. */
jksoft 0:5975af170e43 131
jksoft 0:5975af170e43 132
jksoft 0:5975af170e43 133 #define _MAX_SS 512 /* 512, 1024, 2048 or 4096 */
jksoft 0:5975af170e43 134 /* Maximum sector size to be handled.
jksoft 0:5975af170e43 135 / Always set 512 for memory card and hard disk but a larger value may be
jksoft 0:5975af170e43 136 / required for on-board flash memory, floppy disk and optical disk.
jksoft 0:5975af170e43 137 / When _MAX_SS is larger than 512, it configures FatFs to variable sector size
jksoft 0:5975af170e43 138 / and GET_SECTOR_SIZE command must be implememted to the disk_ioctl function. */
jksoft 0:5975af170e43 139
jksoft 0:5975af170e43 140
jksoft 0:5975af170e43 141 #define _MULTI_PARTITION 0 /* 0:Single partition, 1/2:Enable multiple partition */
jksoft 0:5975af170e43 142 /* When set to 0, each volume is bound to the same physical drive number and
jksoft 0:5975af170e43 143 / it can mount only first primaly partition. When it is set to 1, each volume
jksoft 0:5975af170e43 144 / is tied to the partitions listed in VolToPart[]. */
jksoft 0:5975af170e43 145
jksoft 0:5975af170e43 146
jksoft 0:5975af170e43 147 #define _USE_ERASE 0 /* 0:Disable or 1:Enable */
jksoft 0:5975af170e43 148 /* To enable sector erase feature, set _USE_ERASE to 1. CTRL_ERASE_SECTOR command
jksoft 0:5975af170e43 149 / should be added to the disk_ioctl functio. */
jksoft 0:5975af170e43 150
jksoft 0:5975af170e43 151
jksoft 0:5975af170e43 152
jksoft 0:5975af170e43 153 /*---------------------------------------------------------------------------/
jksoft 0:5975af170e43 154 / System Configurations
jksoft 0:5975af170e43 155 /----------------------------------------------------------------------------*/
jksoft 0:5975af170e43 156
jksoft 0:5975af170e43 157 #define _WORD_ACCESS 0 /* 0 or 1 */
jksoft 0:5975af170e43 158 /* Set 0 first and it is always compatible with all platforms. The _WORD_ACCESS
jksoft 0:5975af170e43 159 / option defines which access method is used to the word data on the FAT volume.
jksoft 0:5975af170e43 160 /
jksoft 0:5975af170e43 161 / 0: Byte-by-byte access.
jksoft 0:5975af170e43 162 / 1: Word access. Do not choose this unless following condition is met.
jksoft 0:5975af170e43 163 /
jksoft 0:5975af170e43 164 / When the byte order on the memory is big-endian or address miss-aligned word
jksoft 0:5975af170e43 165 / access results incorrect behavior, the _WORD_ACCESS must be set to 0.
jksoft 0:5975af170e43 166 / If it is not the case, the value can also be set to 1 to improve the
jksoft 0:5975af170e43 167 / performance and code size.
jksoft 0:5975af170e43 168 */
jksoft 0:5975af170e43 169
jksoft 0:5975af170e43 170
jksoft 0:5975af170e43 171 /* A header file that defines sync object types on the O/S, such as
jksoft 0:5975af170e43 172 / windows.h, ucos_ii.h and semphr.h, must be included prior to ff.h. */
jksoft 0:5975af170e43 173
jksoft 0:5975af170e43 174 #define _FS_REENTRANT 0 /* 0:Disable or 1:Enable */
jksoft 0:5975af170e43 175 #define _FS_TIMEOUT 1000 /* Timeout period in unit of time ticks */
jksoft 0:5975af170e43 176 #define _SYNC_t HANDLE /* O/S dependent type of sync object. e.g. HANDLE, OS_EVENT*, ID and etc.. */
jksoft 0:5975af170e43 177
jksoft 0:5975af170e43 178 /* The _FS_REENTRANT option switches the reentrancy (thread safe) of the FatFs module.
jksoft 0:5975af170e43 179 /
jksoft 0:5975af170e43 180 / 0: Disable reentrancy. _SYNC_t and _FS_TIMEOUT have no effect.
jksoft 0:5975af170e43 181 / 1: Enable reentrancy. Also user provided synchronization handlers,
jksoft 0:5975af170e43 182 / ff_req_grant, ff_rel_grant, ff_del_syncobj and ff_cre_syncobj
jksoft 0:5975af170e43 183 / function must be added to the project. */
jksoft 0:5975af170e43 184
jksoft 0:5975af170e43 185
jksoft 0:5975af170e43 186 #define _FS_LOCK 0 /* 0:Disable or >=1:Enable */
jksoft 0:5975af170e43 187 /* To enable file lock control feature, set _FS_LOCK to 1 or greater.
jksoft 0:5975af170e43 188 The value defines how many files can be opened simultaneously. */
jksoft 0:5975af170e43 189
jksoft 0:5975af170e43 190
jksoft 0:5975af170e43 191 #endif /* _FFCONFIG */