Skip to content

Commit 3e57a71

Browse files
committed
gui tols:update ffconf
Signed-off-by: xiaoming <[email protected]>
1 parent 96af7d0 commit 3e57a71

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

quard_star_tools/lib/ff15/ff.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5939,7 +5939,7 @@ FRESULT f_mkfs (
59395939
if (sz_buf == 0) return FR_NOT_ENOUGH_CORE;
59405940
buf = (BYTE*)work; /* Working buffer */
59415941
#if FF_USE_LFN == 3
5942-
if (!buf) buf = ff_memalloc(sz_buf * ss); /* Use heap memory for working buffer */
5942+
if (!buf) buf = (BYTE *)ff_memalloc(sz_buf * ss); /* Use heap memory for working buffer */
59435943
#endif
59445944
if (!buf) return FR_NOT_ENOUGH_CORE;
59455945

@@ -6400,7 +6400,7 @@ FRESULT f_fdisk (
64006400
if (stat & STA_PROTECT) return FR_WRITE_PROTECTED;
64016401

64026402
#if FF_USE_LFN == 3
6403-
if (!buf) buf = ff_memalloc(FF_MAX_SS); /* Use heap memory for working buffer */
6403+
if (!buf) buf = (BYTE *)ff_memalloc(FF_MAX_SS); /* Use heap memory for working buffer */
64046404
#endif
64056405
if (!buf) return FR_NOT_ENOUGH_CORE;
64066406

quard_star_tools/lib/ff15/ffconf.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,38 +25,38 @@
2525
/ 3: f_lseek() function is removed in addition to 2. */
2626

2727

28-
#define FF_USE_FIND 0
28+
#define FF_USE_FIND 2
2929
/* This option switches filtered directory read functions, f_findfirst() and
3030
/ f_findnext(). (0:Disable, 1:Enable 2:Enable with matching altname[] too) */
3131

3232

33-
#define FF_USE_MKFS 0
33+
#define FF_USE_MKFS 1
3434
/* This option switches f_mkfs() function. (0:Disable or 1:Enable) */
3535

3636

37-
#define FF_USE_FASTSEEK 0
37+
#define FF_USE_FASTSEEK 1
3838
/* This option switches fast seek function. (0:Disable or 1:Enable) */
3939

4040

41-
#define FF_USE_EXPAND 0
41+
#define FF_USE_EXPAND 1
4242
/* This option switches f_expand function. (0:Disable or 1:Enable) */
4343

4444

45-
#define FF_USE_CHMOD 0
45+
#define FF_USE_CHMOD 1
4646
/* This option switches attribute manipulation functions, f_chmod() and f_utime().
4747
/ (0:Disable or 1:Enable) Also FF_FS_READONLY needs to be 0 to enable this option. */
4848

4949

50-
#define FF_USE_LABEL 0
50+
#define FF_USE_LABEL 1
5151
/* This option switches volume label functions, f_getlabel() and f_setlabel().
5252
/ (0:Disable or 1:Enable) */
5353

5454

55-
#define FF_USE_FORWARD 0
55+
#define FF_USE_FORWARD 1
5656
/* This option switches f_forward() function. (0:Disable or 1:Enable) */
5757

5858

59-
#define FF_USE_STRFUNC 0
59+
#define FF_USE_STRFUNC 2
6060
#define FF_PRINT_LLI 1
6161
#define FF_PRINT_FLOAT 1
6262
#define FF_STRF_ENCODE 3
@@ -84,7 +84,7 @@
8484
/ Locale and Namespace Configurations
8585
/---------------------------------------------------------------------------*/
8686

87-
#define FF_CODE_PAGE 932
87+
#define FF_CODE_PAGE 0
8888
/* This option specifies the OEM code page to be used on the target system.
8989
/ Incorrect code page setting can cause a file open failure.
9090
/
@@ -153,7 +153,7 @@
153153
/ on character encoding. When LFN is not enabled, these options have no effect. */
154154

155155

156-
#define FF_FS_RPATH 0
156+
#define FF_FS_RPATH 1
157157
/* This option configures support for relative path.
158158
/
159159
/ 0: Disable relative path and remove related functions.
@@ -203,7 +203,7 @@
203203
/ GET_SECTOR_SIZE command. */
204204

205205

206-
#define FF_LBA64 0
206+
#define FF_LBA64 1
207207
/* This option switches support for 64-bit LBA. (0:Disable or 1:Enable)
208208
/ To enable the 64-bit LBA, also exFAT needs to be enabled. (FF_FS_EXFAT == 1) */
209209

0 commit comments

Comments
 (0)