うおーるぼっとをWiiリモコンでコントロールする新しいプログラムです。 以前のものより、Wiiリモコンが早く繋がる様になりました。 It is a program which controls A with the Wii remote. ※ A Bluetooth dongle and a Wii remote control are needed.

Dependencies:   USBHost mbed FATFileSystem mbed-rtos

Committer:
jksoft
Date:
Mon Jun 10 16:01:50 2013 +0000
Revision:
0:fccb789424fc
1.0

Who changed what in which revision?

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