Xbee CountUp

Dependencies:   mbed

Fork of HeptaXbee_CountUp by 智也 大野

Committer:
tomoya123
Date:
Tue Dec 13 07:55:03 2016 +0000
Revision:
1:715b80d2a02b
Parent:
0:0a7fa0911e6c
Xbee CountUp

Who changed what in which revision?

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