Dependencies:   PinDetect TextLCD mbed mRotaryEncoder

Committer:
cicklaus
Date:
Mon Feb 13 02:11:20 2012 +0000
Revision:
0:afb2650fb49a

        

Who changed what in which revision?

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