|
|
|
@ -2,11 +2,12 @@
|
|
|
|
/ FatFs Functional Configurations
|
|
|
|
/ FatFs Functional Configurations
|
|
|
|
/---------------------------------------------------------------------------*/
|
|
|
|
/---------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
|
|
#define FFCONF_DEF 86606 /* Revision ID */
|
|
|
|
#define FFCONF_DEF 86631 /* Revision ID */
|
|
|
|
|
|
|
|
|
|
|
|
/*---------------------------------------------------------------------------/
|
|
|
|
/*---------------------------------------------------------------------------/
|
|
|
|
/ Function Configurations
|
|
|
|
/ Function Configurations
|
|
|
|
/---------------------------------------------------------------------------*/
|
|
|
|
/---------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
|
|
#define FF_FS_READONLY 0
|
|
|
|
#define FF_FS_READONLY 0
|
|
|
|
/* This option switches read-only configuration. (0:Read/Write or 1:Read-only)
|
|
|
|
/* This option switches read-only configuration. (0:Read/Write or 1:Read-only)
|
|
|
|
/ Read-only configuration removes writing API functions, f_write(), f_sync(),
|
|
|
|
/ Read-only configuration removes writing API functions, f_write(), f_sync(),
|
|
|
|
@ -24,15 +25,7 @@
|
|
|
|
/ 3: f_lseek() function is removed in addition to 2. */
|
|
|
|
/ 3: f_lseek() function is removed in addition to 2. */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define FF_USE_STRFUNC 0
|
|
|
|
#define FF_USE_FIND 1
|
|
|
|
/* This option switches string functions, f_gets(), f_putc(), f_puts() and f_printf().
|
|
|
|
|
|
|
|
/
|
|
|
|
|
|
|
|
/ 0: Disable string functions.
|
|
|
|
|
|
|
|
/ 1: Enable without LF-CRLF conversion.
|
|
|
|
|
|
|
|
/ 2: Enable with LF-CRLF conversion. */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define FF_USE_FIND 0
|
|
|
|
|
|
|
|
/* This option switches filtered directory read functions, f_findfirst() and
|
|
|
|
/* This option switches filtered directory read functions, f_findfirst() and
|
|
|
|
/ f_findnext(). (0:Disable, 1:Enable 2:Enable with matching altname[] too) */
|
|
|
|
/ f_findnext(). (0:Disable, 1:Enable 2:Enable with matching altname[] too) */
|
|
|
|
|
|
|
|
|
|
|
|
@ -63,6 +56,30 @@
|
|
|
|
/* This option switches f_forward() function. (0:Disable or 1:Enable) */
|
|
|
|
/* This option switches f_forward() function. (0:Disable or 1:Enable) */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define FF_USE_STRFUNC 0
|
|
|
|
|
|
|
|
#define FF_PRINT_LLI 0
|
|
|
|
|
|
|
|
#define FF_PRINT_FLOAT 0
|
|
|
|
|
|
|
|
#define FF_STRF_ENCODE 0
|
|
|
|
|
|
|
|
/* FF_USE_STRFUNC switches string functions, f_gets(), f_putc(), f_puts() and
|
|
|
|
|
|
|
|
/ f_printf().
|
|
|
|
|
|
|
|
/
|
|
|
|
|
|
|
|
/ 0: Disable. FF_PRINT_LLI, FF_PRINT_FLOAT and FF_STRF_ENCODE have no effect.
|
|
|
|
|
|
|
|
/ 1: Enable without LF-CRLF conversion.
|
|
|
|
|
|
|
|
/ 2: Enable with LF-CRLF conversion.
|
|
|
|
|
|
|
|
/
|
|
|
|
|
|
|
|
/ FF_PRINT_LLI = 1 makes f_printf() support long long argument and FF_PRINT_FLOAT = 1/2
|
|
|
|
|
|
|
|
makes f_printf() support floating point argument. These features want C99 or later.
|
|
|
|
|
|
|
|
/ When FF_LFN_UNICODE >= 1 with LFN enabled, string functions convert the character
|
|
|
|
|
|
|
|
/ encoding in it. FF_STRF_ENCODE selects assumption of character encoding ON THE FILE
|
|
|
|
|
|
|
|
/ to be read/written via those functions.
|
|
|
|
|
|
|
|
/
|
|
|
|
|
|
|
|
/ 0: ANSI/OEM in current CP
|
|
|
|
|
|
|
|
/ 1: Unicode in UTF-16LE
|
|
|
|
|
|
|
|
/ 2: Unicode in UTF-16BE
|
|
|
|
|
|
|
|
/ 3: Unicode in UTF-8
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*---------------------------------------------------------------------------/
|
|
|
|
/*---------------------------------------------------------------------------/
|
|
|
|
/ Locale and Namespace Configurations
|
|
|
|
/ Locale and Namespace Configurations
|
|
|
|
/---------------------------------------------------------------------------*/
|
|
|
|
/---------------------------------------------------------------------------*/
|
|
|
|
@ -136,19 +153,6 @@
|
|
|
|
/ on character encoding. When LFN is not enabled, these options have no effect. */
|
|
|
|
/ on character encoding. When LFN is not enabled, these options have no effect. */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define FF_STRF_ENCODE 0
|
|
|
|
|
|
|
|
/* When FF_LFN_UNICODE >= 1 with LFN enabled, string I/O functions, f_gets(),
|
|
|
|
|
|
|
|
/ f_putc(), f_puts and f_printf() convert the character encoding in it.
|
|
|
|
|
|
|
|
/ This option selects assumption of character encoding ON THE FILE to be
|
|
|
|
|
|
|
|
/ read/written via those functions.
|
|
|
|
|
|
|
|
/
|
|
|
|
|
|
|
|
/ 0: ANSI/OEM in current CP
|
|
|
|
|
|
|
|
/ 1: Unicode in UTF-16LE
|
|
|
|
|
|
|
|
/ 2: Unicode in UTF-16BE
|
|
|
|
|
|
|
|
/ 3: Unicode in UTF-8
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define FF_FS_RPATH 0
|
|
|
|
#define FF_FS_RPATH 0
|
|
|
|
/* This option configures support for relative path.
|
|
|
|
/* This option configures support for relative path.
|
|
|
|
/
|
|
|
|
/
|
|
|
|
@ -193,7 +197,7 @@
|
|
|
|
#define FF_MAX_SS 512
|
|
|
|
#define FF_MAX_SS 512
|
|
|
|
/* This set of options configures the range of sector size to be supported. (512,
|
|
|
|
/* This set of options configures the range of sector size to be supported. (512,
|
|
|
|
/ 1024, 2048 or 4096) Always set both 512 for most systems, generic memory card and
|
|
|
|
/ 1024, 2048 or 4096) Always set both 512 for most systems, generic memory card and
|
|
|
|
/ harddisk. But a larger value may be required for on-board flash memory and some
|
|
|
|
/ harddisk, but a larger value may be required for on-board flash memory and some
|
|
|
|
/ type of optical media. When FF_MAX_SS is larger than FF_MIN_SS, FatFs is configured
|
|
|
|
/ type of optical media. When FF_MAX_SS is larger than FF_MIN_SS, FatFs is configured
|
|
|
|
/ for variable sector size mode and disk_ioctl() function needs to implement
|
|
|
|
/ for variable sector size mode and disk_ioctl() function needs to implement
|
|
|
|
/ GET_SECTOR_SIZE command. */
|
|
|
|
/ GET_SECTOR_SIZE command. */
|
|
|
|
@ -204,8 +208,8 @@
|
|
|
|
/ To enable the 64-bit LBA, also exFAT needs to be enabled. (FF_FS_EXFAT == 1) */
|
|
|
|
/ To enable the 64-bit LBA, also exFAT needs to be enabled. (FF_FS_EXFAT == 1) */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define FF_MIN_GPT 0x100000000
|
|
|
|
#define FF_MIN_GPT 0x10000000
|
|
|
|
/* Minimum number of sectors to switch GPT format to create partition in f_mkfs and
|
|
|
|
/* Minimum number of sectors to switch GPT as partitioning format in f_mkfs and
|
|
|
|
/ f_fdisk function. 0x100000000 max. This option has no effect when FF_LBA64 == 0. */
|
|
|
|
/ f_fdisk function. 0x100000000 max. This option has no effect when FF_LBA64 == 0. */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -236,7 +240,7 @@
|
|
|
|
#define FF_FS_NORTC 0
|
|
|
|
#define FF_FS_NORTC 0
|
|
|
|
#define FF_NORTC_MON 1
|
|
|
|
#define FF_NORTC_MON 1
|
|
|
|
#define FF_NORTC_MDAY 1
|
|
|
|
#define FF_NORTC_MDAY 1
|
|
|
|
#define FF_NORTC_YEAR 2019
|
|
|
|
#define FF_NORTC_YEAR 2020
|
|
|
|
/* The option FF_FS_NORTC switches timestamp functiton. If the system does not have
|
|
|
|
/* The option FF_FS_NORTC switches timestamp functiton. If the system does not have
|
|
|
|
/ any RTC function or valid timestamp is not needed, set FF_FS_NORTC = 1 to disable
|
|
|
|
/ any RTC function or valid timestamp is not needed, set FF_FS_NORTC = 1 to disable
|
|
|
|
/ the timestamp function. Every object modified by FatFs will have a fixed timestamp
|
|
|
|
/ the timestamp function. Every object modified by FatFs will have a fixed timestamp
|
|
|
|
|