Skip to content

Commit e7079f4

Browse files
committed
Enabled support for long file names
1 parent 199c236 commit e7079f4

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

kernel/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ OBJS = \
1111
fb.o \
1212
fatfs/diskio.o \
1313
fatfs/ff.o \
14+
fatfs/option/ccsbcs.o \
15+
fatfs/option/syscall.o \
1416
platform.o \
1517
syscalls.o \
1618
usb.o \

kernel/fatfs/ffconf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
/ 1 - ASCII (No extended character. Valid for only non-LFN configuration.) */
9898

9999

100-
#define _USE_LFN 0
100+
#define _USE_LFN 3
101101
#define _MAX_LFN 255
102102
/* The _USE_LFN option switches the LFN feature.
103103
/

kernel/fatfs/option/syscall.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
/* (C)ChaN, 2014 */
44
/*------------------------------------------------------------------------*/
55

6-
6+
#include <stdlib.h>
77
#include "../ff.h"
88

9+
#pragma GCC diagnostic ignored "-Wcomment"
910

1011
#if _FS_REENTRANT
1112
/*------------------------------------------------------------------------*/

0 commit comments

Comments
 (0)