Line buffer mode. sammple code with MIP8F_SPI_Ver40

Dependencies:   MIP8F_SPI_Ver40 mbed

Dependents:   MIP8f_FRDM_TransferMode_sample MIP8f_FRDM_Animation_sample

Introduction

Line buffer mode sample with MIP8F_SPI_Ver40 Display some color and monochrome bitmap.

Other information , please refer to https://os.mbed.com/teams/JapanDisplayInc/code/MIP8f_FRDM_sample/

Usage

Copy Setting File and Image to micro SD-CARD. (Same setting File and bitmap of MIP8f_FRDM_sample.)

a) Download the following file corresponding to the target panel, and rename file identifier (.bin -> .zip), and unzip the file on micro SD Card's root directory.

b) Insert micro SD-CARD to FRDM-K64F. c) Upload binary file to FRDM-K64F.and push Reset Button.

Other information

refer to Usage on https://os.mbed.com/teams/JapanDisplayInc/code/MIP8f_FRDM_sample/

this Sample Code (.bin)

/media/uploads/JDI_Mbed_Team/mip8f_frdm_linebuffer_sample.k64f.bin

Committer:
JDI_Mbed_Team
Date:
Tue Nov 06 03:57:02 2018 +0000
Revision:
13:855affe061f7
Parent:
0:33fe30a2b785
Line buffer mode. sample code with MIP8F_SPI_Ver40

Who changed what in which revision?

UserRevisionLine numberNew contents of line
JDI_Mbed_Team 0:33fe30a2b785 1 /*---------------------------------------------------------------------------/
JDI_Mbed_Team 0:33fe30a2b785 2 / FatFs - FAT file system module configuration file R0.11a (C)ChaN, 2015
JDI_Mbed_Team 0:33fe30a2b785 3 /---------------------------------------------------------------------------*/
JDI_Mbed_Team 0:33fe30a2b785 4
JDI_Mbed_Team 0:33fe30a2b785 5 #define _FFCONF 64180 /* Revision ID */
JDI_Mbed_Team 0:33fe30a2b785 6
JDI_Mbed_Team 0:33fe30a2b785 7 #define FFS_DBG 0
JDI_Mbed_Team 0:33fe30a2b785 8
JDI_Mbed_Team 0:33fe30a2b785 9 /*---------------------------------------------------------------------------/
JDI_Mbed_Team 0:33fe30a2b785 10 / Function Configurations
JDI_Mbed_Team 0:33fe30a2b785 11 /---------------------------------------------------------------------------*/
JDI_Mbed_Team 0:33fe30a2b785 12
JDI_Mbed_Team 0:33fe30a2b785 13 #define _FS_READONLY 0
JDI_Mbed_Team 0:33fe30a2b785 14 /* This option switches read-only configuration. (0:Read/Write or 1:Read-only)
JDI_Mbed_Team 0:33fe30a2b785 15 / Read-only configuration removes writing API functions, f_write(), f_sync(),
JDI_Mbed_Team 0:33fe30a2b785 16 / f_unlink(), f_mkdir(), f_chmod(), f_rename(), f_truncate(), f_getfree()
JDI_Mbed_Team 0:33fe30a2b785 17 / and optional writing functions as well. */
JDI_Mbed_Team 0:33fe30a2b785 18
JDI_Mbed_Team 0:33fe30a2b785 19
JDI_Mbed_Team 0:33fe30a2b785 20 #define _FS_MINIMIZE 0
JDI_Mbed_Team 0:33fe30a2b785 21 /* This option defines minimization level to remove some basic API functions.
JDI_Mbed_Team 0:33fe30a2b785 22 /
JDI_Mbed_Team 0:33fe30a2b785 23 / 0: All basic functions are enabled.
JDI_Mbed_Team 0:33fe30a2b785 24 / 1: f_stat(), f_getfree(), f_unlink(), f_mkdir(), f_chmod(), f_utime(),
JDI_Mbed_Team 0:33fe30a2b785 25 / f_truncate() and f_rename() function are removed.
JDI_Mbed_Team 0:33fe30a2b785 26 / 2: f_opendir(), f_readdir() and f_closedir() are removed in addition to 1.
JDI_Mbed_Team 0:33fe30a2b785 27 / 3: f_lseek() function is removed in addition to 2. */
JDI_Mbed_Team 0:33fe30a2b785 28
JDI_Mbed_Team 0:33fe30a2b785 29
JDI_Mbed_Team 0:33fe30a2b785 30 #define _USE_STRFUNC 0
JDI_Mbed_Team 0:33fe30a2b785 31 /* This option switches string functions, f_gets(), f_putc(), f_puts() and
JDI_Mbed_Team 0:33fe30a2b785 32 / f_printf().
JDI_Mbed_Team 0:33fe30a2b785 33 /
JDI_Mbed_Team 0:33fe30a2b785 34 / 0: Disable string functions.
JDI_Mbed_Team 0:33fe30a2b785 35 / 1: Enable without LF-CRLF conversion.
JDI_Mbed_Team 0:33fe30a2b785 36 / 2: Enable with LF-CRLF conversion. */
JDI_Mbed_Team 0:33fe30a2b785 37
JDI_Mbed_Team 0:33fe30a2b785 38
JDI_Mbed_Team 0:33fe30a2b785 39 #define _USE_FIND 0
JDI_Mbed_Team 0:33fe30a2b785 40 /* This option switches filtered directory read feature and related functions,
JDI_Mbed_Team 0:33fe30a2b785 41 / f_findfirst() and f_findnext(). (0:Disable or 1:Enable) */
JDI_Mbed_Team 0:33fe30a2b785 42
JDI_Mbed_Team 0:33fe30a2b785 43
JDI_Mbed_Team 0:33fe30a2b785 44 #define _USE_MKFS 1
JDI_Mbed_Team 0:33fe30a2b785 45 /* This option switches f_mkfs() function. (0:Disable or 1:Enable) */
JDI_Mbed_Team 0:33fe30a2b785 46
JDI_Mbed_Team 0:33fe30a2b785 47
JDI_Mbed_Team 0:33fe30a2b785 48 #define _USE_FASTSEEK 0
JDI_Mbed_Team 0:33fe30a2b785 49 /* This option switches fast seek feature. (0:Disable or 1:Enable) */
JDI_Mbed_Team 0:33fe30a2b785 50
JDI_Mbed_Team 0:33fe30a2b785 51
JDI_Mbed_Team 0:33fe30a2b785 52 #define _USE_LABEL 0
JDI_Mbed_Team 0:33fe30a2b785 53 /* This option switches volume label functions, f_getlabel() and f_setlabel().
JDI_Mbed_Team 0:33fe30a2b785 54 / (0:Disable or 1:Enable) */
JDI_Mbed_Team 0:33fe30a2b785 55
JDI_Mbed_Team 0:33fe30a2b785 56
JDI_Mbed_Team 0:33fe30a2b785 57 #define _USE_FORWARD 0
JDI_Mbed_Team 0:33fe30a2b785 58 /* This option switches f_forward() function. (0:Disable or 1:Enable)
JDI_Mbed_Team 0:33fe30a2b785 59 / To enable it, also _FS_TINY need to be set to 1. */
JDI_Mbed_Team 0:33fe30a2b785 60
JDI_Mbed_Team 0:33fe30a2b785 61
JDI_Mbed_Team 0:33fe30a2b785 62 /*---------------------------------------------------------------------------/
JDI_Mbed_Team 0:33fe30a2b785 63 / Locale and Namespace Configurations
JDI_Mbed_Team 0:33fe30a2b785 64 /---------------------------------------------------------------------------*/
JDI_Mbed_Team 0:33fe30a2b785 65
JDI_Mbed_Team 0:33fe30a2b785 66 #define _CODE_PAGE 850
JDI_Mbed_Team 0:33fe30a2b785 67 /* This option specifies the OEM code page to be used on the target system.
JDI_Mbed_Team 0:33fe30a2b785 68 / Incorrect setting of the code page can cause a file open failure.
JDI_Mbed_Team 0:33fe30a2b785 69 /
JDI_Mbed_Team 0:33fe30a2b785 70 / 1 - ASCII (No extended character. Non-LFN cfg. only)
JDI_Mbed_Team 0:33fe30a2b785 71 / 437 - U.S.
JDI_Mbed_Team 0:33fe30a2b785 72 / 720 - Arabic
JDI_Mbed_Team 0:33fe30a2b785 73 / 737 - Greek
JDI_Mbed_Team 0:33fe30a2b785 74 / 771 - KBL
JDI_Mbed_Team 0:33fe30a2b785 75 / 775 - Baltic
JDI_Mbed_Team 0:33fe30a2b785 76 / 850 - Latin 1
JDI_Mbed_Team 0:33fe30a2b785 77 / 852 - Latin 2
JDI_Mbed_Team 0:33fe30a2b785 78 / 855 - Cyrillic
JDI_Mbed_Team 0:33fe30a2b785 79 / 857 - Turkish
JDI_Mbed_Team 0:33fe30a2b785 80 / 860 - Portuguese
JDI_Mbed_Team 0:33fe30a2b785 81 / 861 - Icelandic
JDI_Mbed_Team 0:33fe30a2b785 82 / 862 - Hebrew
JDI_Mbed_Team 0:33fe30a2b785 83 / 863 - Canadian French
JDI_Mbed_Team 0:33fe30a2b785 84 / 864 - Arabic
JDI_Mbed_Team 0:33fe30a2b785 85 / 865 - Nordic
JDI_Mbed_Team 0:33fe30a2b785 86 / 866 - Russian
JDI_Mbed_Team 0:33fe30a2b785 87 / 869 - Greek 2
JDI_Mbed_Team 0:33fe30a2b785 88 / 932 - Japanese (DBCS)
JDI_Mbed_Team 0:33fe30a2b785 89 / 936 - Simplified Chinese (DBCS)
JDI_Mbed_Team 0:33fe30a2b785 90 / 949 - Korean (DBCS)
JDI_Mbed_Team 0:33fe30a2b785 91 / 950 - Traditional Chinese (DBCS)
JDI_Mbed_Team 0:33fe30a2b785 92 */
JDI_Mbed_Team 0:33fe30a2b785 93
JDI_Mbed_Team 0:33fe30a2b785 94
JDI_Mbed_Team 0:33fe30a2b785 95 #define _USE_LFN 1
JDI_Mbed_Team 0:33fe30a2b785 96 #define _MAX_LFN 255
JDI_Mbed_Team 0:33fe30a2b785 97 /* The _USE_LFN option switches the LFN feature.
JDI_Mbed_Team 0:33fe30a2b785 98 /
JDI_Mbed_Team 0:33fe30a2b785 99 / 0: Disable LFN feature. _MAX_LFN has no effect.
JDI_Mbed_Team 0:33fe30a2b785 100 / 1: Enable LFN with static working buffer on the BSS. Always NOT thread-safe.
JDI_Mbed_Team 0:33fe30a2b785 101 / 2: Enable LFN with dynamic working buffer on the STACK.
JDI_Mbed_Team 0:33fe30a2b785 102 / 3: Enable LFN with dynamic working buffer on the HEAP.
JDI_Mbed_Team 0:33fe30a2b785 103 /
JDI_Mbed_Team 0:33fe30a2b785 104 / When enable the LFN feature, Unicode handling functions (option/unicode.c) must
JDI_Mbed_Team 0:33fe30a2b785 105 / be added to the project. The LFN working buffer occupies (_MAX_LFN + 1) * 2 bytes.
JDI_Mbed_Team 0:33fe30a2b785 106 / When use stack for the working buffer, take care on stack overflow. When use heap
JDI_Mbed_Team 0:33fe30a2b785 107 / memory for the working buffer, memory management functions, ff_memalloc() and
JDI_Mbed_Team 0:33fe30a2b785 108 / ff_memfree(), must be added to the project. */
JDI_Mbed_Team 0:33fe30a2b785 109
JDI_Mbed_Team 0:33fe30a2b785 110
JDI_Mbed_Team 0:33fe30a2b785 111 #define _LFN_UNICODE 0
JDI_Mbed_Team 0:33fe30a2b785 112 /* This option switches character encoding on the API. (0:ANSI/OEM or 1:Unicode)
JDI_Mbed_Team 0:33fe30a2b785 113 / To use Unicode string for the path name, enable LFN feature and set _LFN_UNICODE
JDI_Mbed_Team 0:33fe30a2b785 114 / to 1. This option also affects behavior of string I/O functions. */
JDI_Mbed_Team 0:33fe30a2b785 115
JDI_Mbed_Team 0:33fe30a2b785 116
JDI_Mbed_Team 0:33fe30a2b785 117 #define _STRF_ENCODE 3
JDI_Mbed_Team 0:33fe30a2b785 118 /* When _LFN_UNICODE is 1, this option selects the character encoding on the file to
JDI_Mbed_Team 0:33fe30a2b785 119 / be read/written via string I/O functions, f_gets(), f_putc(), f_puts and f_printf().
JDI_Mbed_Team 0:33fe30a2b785 120 /
JDI_Mbed_Team 0:33fe30a2b785 121 / 0: ANSI/OEM
JDI_Mbed_Team 0:33fe30a2b785 122 / 1: UTF-16LE
JDI_Mbed_Team 0:33fe30a2b785 123 / 2: UTF-16BE
JDI_Mbed_Team 0:33fe30a2b785 124 / 3: UTF-8
JDI_Mbed_Team 0:33fe30a2b785 125 /
JDI_Mbed_Team 0:33fe30a2b785 126 / When _LFN_UNICODE is 0, this option has no effect. */
JDI_Mbed_Team 0:33fe30a2b785 127
JDI_Mbed_Team 0:33fe30a2b785 128
JDI_Mbed_Team 0:33fe30a2b785 129 #define _FS_RPATH 0
JDI_Mbed_Team 0:33fe30a2b785 130 /* This option configures relative path feature.
JDI_Mbed_Team 0:33fe30a2b785 131 /
JDI_Mbed_Team 0:33fe30a2b785 132 / 0: Disable relative path feature and remove related functions.
JDI_Mbed_Team 0:33fe30a2b785 133 / 1: Enable relative path feature. f_chdir() and f_chdrive() are available.
JDI_Mbed_Team 0:33fe30a2b785 134 / 2: f_getcwd() function is available in addition to 1.
JDI_Mbed_Team 0:33fe30a2b785 135 /
JDI_Mbed_Team 0:33fe30a2b785 136 / Note that directory items read via f_readdir() are affected by this option. */
JDI_Mbed_Team 0:33fe30a2b785 137
JDI_Mbed_Team 0:33fe30a2b785 138
JDI_Mbed_Team 0:33fe30a2b785 139 /*---------------------------------------------------------------------------/
JDI_Mbed_Team 0:33fe30a2b785 140 / Drive/Volume Configurations
JDI_Mbed_Team 0:33fe30a2b785 141 /---------------------------------------------------------------------------*/
JDI_Mbed_Team 0:33fe30a2b785 142
JDI_Mbed_Team 0:33fe30a2b785 143 #define _VOLUMES 1
JDI_Mbed_Team 0:33fe30a2b785 144 /* Number of volumes (logical drives) to be used. */
JDI_Mbed_Team 0:33fe30a2b785 145
JDI_Mbed_Team 0:33fe30a2b785 146
JDI_Mbed_Team 0:33fe30a2b785 147 #define _STR_VOLUME_ID 0
JDI_Mbed_Team 0:33fe30a2b785 148 #define _VOLUME_STRS "RAM","NAND","CF","SD1","SD2","USB1","USB2","USB3"
JDI_Mbed_Team 0:33fe30a2b785 149 /* _STR_VOLUME_ID option switches string volume ID feature.
JDI_Mbed_Team 0:33fe30a2b785 150 / When _STR_VOLUME_ID is set to 1, also pre-defined strings can be used as drive
JDI_Mbed_Team 0:33fe30a2b785 151 / number in the path name. _VOLUME_STRS defines the drive ID strings for each
JDI_Mbed_Team 0:33fe30a2b785 152 / logical drives. Number of items must be equal to _VOLUMES. Valid characters for
JDI_Mbed_Team 0:33fe30a2b785 153 / the drive ID strings are: A-Z and 0-9. */
JDI_Mbed_Team 0:33fe30a2b785 154
JDI_Mbed_Team 0:33fe30a2b785 155
JDI_Mbed_Team 0:33fe30a2b785 156 #define _MULTI_PARTITION 0
JDI_Mbed_Team 0:33fe30a2b785 157 /* This option switches multi-partition feature. By default (0), each logical drive
JDI_Mbed_Team 0:33fe30a2b785 158 / number is bound to the same physical drive number and only an FAT volume found on
JDI_Mbed_Team 0:33fe30a2b785 159 / the physical drive will be mounted. When multi-partition feature is enabled (1),
JDI_Mbed_Team 0:33fe30a2b785 160 / each logical drive number is bound to arbitrary physical drive and partition
JDI_Mbed_Team 0:33fe30a2b785 161 / listed in the VolToPart[]. Also f_fdisk() funciton will be available. */
JDI_Mbed_Team 0:33fe30a2b785 162
JDI_Mbed_Team 0:33fe30a2b785 163
JDI_Mbed_Team 0:33fe30a2b785 164 #define _MIN_SS 512
JDI_Mbed_Team 0:33fe30a2b785 165 #define _MAX_SS 512
JDI_Mbed_Team 0:33fe30a2b785 166 /* These options configure the range of sector size to be supported. (512, 1024,
JDI_Mbed_Team 0:33fe30a2b785 167 / 2048 or 4096) Always set both 512 for most systems, all type of memory cards and
JDI_Mbed_Team 0:33fe30a2b785 168 / harddisk. But a larger value may be required for on-board flash memory and some
JDI_Mbed_Team 0:33fe30a2b785 169 / type of optical media. When _MAX_SS is larger than _MIN_SS, FatFs is configured
JDI_Mbed_Team 0:33fe30a2b785 170 / to variable sector size and GET_SECTOR_SIZE command must be implemented to the
JDI_Mbed_Team 0:33fe30a2b785 171 / disk_ioctl() function. */
JDI_Mbed_Team 0:33fe30a2b785 172
JDI_Mbed_Team 0:33fe30a2b785 173
JDI_Mbed_Team 0:33fe30a2b785 174 #define _USE_TRIM 0
JDI_Mbed_Team 0:33fe30a2b785 175 /* This option switches ATA-TRIM feature. (0:Disable or 1:Enable)
JDI_Mbed_Team 0:33fe30a2b785 176 / To enable Trim feature, also CTRL_TRIM command should be implemented to the
JDI_Mbed_Team 0:33fe30a2b785 177 / disk_ioctl() function. */
JDI_Mbed_Team 0:33fe30a2b785 178
JDI_Mbed_Team 0:33fe30a2b785 179
JDI_Mbed_Team 0:33fe30a2b785 180 #define _FS_NOFSINFO 0
JDI_Mbed_Team 0:33fe30a2b785 181 /* If you need to know correct free space on the FAT32 volume, set bit 0 of this
JDI_Mbed_Team 0:33fe30a2b785 182 / option, and f_getfree() function at first time after volume mount will force
JDI_Mbed_Team 0:33fe30a2b785 183 / a full FAT scan. Bit 1 controls the use of last allocated cluster number.
JDI_Mbed_Team 0:33fe30a2b785 184 /
JDI_Mbed_Team 0:33fe30a2b785 185 / bit0=0: Use free cluster count in the FSINFO if available.
JDI_Mbed_Team 0:33fe30a2b785 186 / bit0=1: Do not trust free cluster count in the FSINFO.
JDI_Mbed_Team 0:33fe30a2b785 187 / bit1=0: Use last allocated cluster number in the FSINFO if available.
JDI_Mbed_Team 0:33fe30a2b785 188 / bit1=1: Do not trust last allocated cluster number in the FSINFO.
JDI_Mbed_Team 0:33fe30a2b785 189 */
JDI_Mbed_Team 0:33fe30a2b785 190
JDI_Mbed_Team 0:33fe30a2b785 191
JDI_Mbed_Team 0:33fe30a2b785 192
JDI_Mbed_Team 0:33fe30a2b785 193 /*---------------------------------------------------------------------------/
JDI_Mbed_Team 0:33fe30a2b785 194 / System Configurations
JDI_Mbed_Team 0:33fe30a2b785 195 /---------------------------------------------------------------------------*/
JDI_Mbed_Team 0:33fe30a2b785 196
JDI_Mbed_Team 0:33fe30a2b785 197 #define _FS_TINY 0
JDI_Mbed_Team 0:33fe30a2b785 198 /* This option switches tiny buffer configuration. (0:Normal or 1:Tiny)
JDI_Mbed_Team 0:33fe30a2b785 199 / At the tiny configuration, size of the file object (FIL) is reduced _MAX_SS
JDI_Mbed_Team 0:33fe30a2b785 200 / bytes. Instead of private sector buffer eliminated from the file object,
JDI_Mbed_Team 0:33fe30a2b785 201 / common sector buffer in the file system object (FATFS) is used for the file
JDI_Mbed_Team 0:33fe30a2b785 202 / data transfer. */
JDI_Mbed_Team 0:33fe30a2b785 203
JDI_Mbed_Team 0:33fe30a2b785 204
JDI_Mbed_Team 0:33fe30a2b785 205 #define _FS_NORTC 0
JDI_Mbed_Team 0:33fe30a2b785 206 #define _NORTC_MON 1
JDI_Mbed_Team 0:33fe30a2b785 207 #define _NORTC_MDAY 1
JDI_Mbed_Team 0:33fe30a2b785 208 #define _NORTC_YEAR 2015
JDI_Mbed_Team 0:33fe30a2b785 209 /* The _FS_NORTC option switches timestamp feature. If the system does not have
JDI_Mbed_Team 0:33fe30a2b785 210 / an RTC function or valid timestamp is not needed, set _FS_NORTC to 1 to disable
JDI_Mbed_Team 0:33fe30a2b785 211 / the timestamp feature. All objects modified by FatFs will have a fixed timestamp
JDI_Mbed_Team 0:33fe30a2b785 212 / defined by _NORTC_MON, _NORTC_MDAY and _NORTC_YEAR.
JDI_Mbed_Team 0:33fe30a2b785 213 / When timestamp feature is enabled (_FS_NORTC == 0), get_fattime() function need
JDI_Mbed_Team 0:33fe30a2b785 214 / to be added to the project to read current time form RTC. _NORTC_MON,
JDI_Mbed_Team 0:33fe30a2b785 215 / _NORTC_MDAY and _NORTC_YEAR have no effect.
JDI_Mbed_Team 0:33fe30a2b785 216 / These options have no effect at read-only configuration (_FS_READONLY == 1). */
JDI_Mbed_Team 0:33fe30a2b785 217
JDI_Mbed_Team 0:33fe30a2b785 218
JDI_Mbed_Team 0:33fe30a2b785 219 #define _FS_LOCK 0
JDI_Mbed_Team 0:33fe30a2b785 220 /* The _FS_LOCK option switches file lock feature to control duplicated file open
JDI_Mbed_Team 0:33fe30a2b785 221 / and illegal operation to open objects. This option must be 0 when _FS_READONLY
JDI_Mbed_Team 0:33fe30a2b785 222 / is 1.
JDI_Mbed_Team 0:33fe30a2b785 223 /
JDI_Mbed_Team 0:33fe30a2b785 224 / 0: Disable file lock feature. To avoid volume corruption, application program
JDI_Mbed_Team 0:33fe30a2b785 225 / should avoid illegal open, remove and rename to the open objects.
JDI_Mbed_Team 0:33fe30a2b785 226 / >0: Enable file lock feature. The value defines how many files/sub-directories
JDI_Mbed_Team 0:33fe30a2b785 227 / can be opened simultaneously under file lock control. Note that the file
JDI_Mbed_Team 0:33fe30a2b785 228 / lock feature is independent of re-entrancy. */
JDI_Mbed_Team 0:33fe30a2b785 229
JDI_Mbed_Team 0:33fe30a2b785 230
JDI_Mbed_Team 0:33fe30a2b785 231 #define _FS_REENTRANT 0
JDI_Mbed_Team 0:33fe30a2b785 232 #define _FS_TIMEOUT 1000
JDI_Mbed_Team 0:33fe30a2b785 233 #define _SYNC_t HANDLE
JDI_Mbed_Team 0:33fe30a2b785 234 /* The _FS_REENTRANT option switches the re-entrancy (thread safe) of the FatFs
JDI_Mbed_Team 0:33fe30a2b785 235 / module itself. Note that regardless of this option, file access to different
JDI_Mbed_Team 0:33fe30a2b785 236 / volume is always re-entrant and volume control functions, f_mount(), f_mkfs()
JDI_Mbed_Team 0:33fe30a2b785 237 / and f_fdisk() function, are always not re-entrant. Only file/directory access
JDI_Mbed_Team 0:33fe30a2b785 238 / to the same volume is under control of this feature.
JDI_Mbed_Team 0:33fe30a2b785 239 /
JDI_Mbed_Team 0:33fe30a2b785 240 / 0: Disable re-entrancy. _FS_TIMEOUT and _SYNC_t have no effect.
JDI_Mbed_Team 0:33fe30a2b785 241 / 1: Enable re-entrancy. Also user provided synchronization handlers,
JDI_Mbed_Team 0:33fe30a2b785 242 / ff_req_grant(), ff_rel_grant(), ff_del_syncobj() and ff_cre_syncobj()
JDI_Mbed_Team 0:33fe30a2b785 243 / function, must be added to the project. Samples are available in
JDI_Mbed_Team 0:33fe30a2b785 244 / option/syscall.c.
JDI_Mbed_Team 0:33fe30a2b785 245 /
JDI_Mbed_Team 0:33fe30a2b785 246 / The _FS_TIMEOUT defines timeout period in unit of time tick.
JDI_Mbed_Team 0:33fe30a2b785 247 / The _SYNC_t defines O/S dependent sync object type. e.g. HANDLE, ID, OS_EVENT*,
JDI_Mbed_Team 0:33fe30a2b785 248 / SemaphoreHandle_t and etc.. A header file for O/S definitions needs to be
JDI_Mbed_Team 0:33fe30a2b785 249 / included somewhere in the scope of ff.c. */
JDI_Mbed_Team 0:33fe30a2b785 250
JDI_Mbed_Team 0:33fe30a2b785 251
JDI_Mbed_Team 0:33fe30a2b785 252 #define _WORD_ACCESS 0
JDI_Mbed_Team 0:33fe30a2b785 253 /* The _WORD_ACCESS option is an only platform dependent option. It defines
JDI_Mbed_Team 0:33fe30a2b785 254 / which access method is used to the word data on the FAT volume.
JDI_Mbed_Team 0:33fe30a2b785 255 /
JDI_Mbed_Team 0:33fe30a2b785 256 / 0: Byte-by-byte access. Always compatible with all platforms.
JDI_Mbed_Team 0:33fe30a2b785 257 / 1: Word access. Do not choose this unless under both the following conditions.
JDI_Mbed_Team 0:33fe30a2b785 258 /
JDI_Mbed_Team 0:33fe30a2b785 259 / * Address misaligned memory access is always allowed to ALL instructions.
JDI_Mbed_Team 0:33fe30a2b785 260 / * Byte order on the memory is little-endian.
JDI_Mbed_Team 0:33fe30a2b785 261 /
JDI_Mbed_Team 0:33fe30a2b785 262 / If it is the case, _WORD_ACCESS can also be set to 1 to reduce code size.
JDI_Mbed_Team 0:33fe30a2b785 263 / Following table shows allowable settings of some type of processors.
JDI_Mbed_Team 0:33fe30a2b785 264 /
JDI_Mbed_Team 0:33fe30a2b785 265 / ARM7TDMI 0 *2 ColdFire 0 *1 V850E 0 *2
JDI_Mbed_Team 0:33fe30a2b785 266 / Cortex-M3 0 *3 Z80 0/1 V850ES 0/1
JDI_Mbed_Team 0:33fe30a2b785 267 / Cortex-M0 0 *2 x86 0/1 TLCS-870 0/1
JDI_Mbed_Team 0:33fe30a2b785 268 / AVR 0/1 RX600(LE) 0/1 TLCS-900 0/1
JDI_Mbed_Team 0:33fe30a2b785 269 / AVR32 0 *1 RL78 0 *2 R32C 0 *2
JDI_Mbed_Team 0:33fe30a2b785 270 / PIC18 0/1 SH-2 0 *1 M16C 0/1
JDI_Mbed_Team 0:33fe30a2b785 271 / PIC24 0 *2 H8S 0 *1 MSP430 0 *2
JDI_Mbed_Team 0:33fe30a2b785 272 / PIC32 0 *1 H8/300H 0 *1 8051 0/1
JDI_Mbed_Team 0:33fe30a2b785 273 /
JDI_Mbed_Team 0:33fe30a2b785 274 / *1:Big-endian.
JDI_Mbed_Team 0:33fe30a2b785 275 / *2:Unaligned memory access is not supported.
JDI_Mbed_Team 0:33fe30a2b785 276 / *3:Some compilers generate LDM/STM for mem_cpy function.
JDI_Mbed_Team 0:33fe30a2b785 277 */
JDI_Mbed_Team 0:33fe30a2b785 278
JDI_Mbed_Team 0:33fe30a2b785 279 #define FLUSH_ON_NEW_CLUSTER 0 /* Sync the file on every new cluster */
JDI_Mbed_Team 0:33fe30a2b785 280 #define FLUSH_ON_NEW_SECTOR 1 /* Sync the file on every new sector */
JDI_Mbed_Team 0:33fe30a2b785 281 /* Only one of these two defines needs to be set to 1. If both are set to 0
JDI_Mbed_Team 0:33fe30a2b785 282 the file is only sync when closed.
JDI_Mbed_Team 0:33fe30a2b785 283 Clusters are group of sectors (eg: 8 sectors). Flushing on new cluster means
JDI_Mbed_Team 0:33fe30a2b785 284 it would be less often than flushing on new sector. Sectors are generally
JDI_Mbed_Team 0:33fe30a2b785 285 512 Bytes long. */