fatfs update
This commit is contained in:
parent
dad27f76ba
commit
31d85d16e7
4 changed files with 6 additions and 5 deletions
|
@ -16,5 +16,6 @@
|
||||||
#if GFX_USE_GFILE && GFILE_NEED_FATFS
|
#if GFX_USE_GFILE && GFILE_NEED_FATFS
|
||||||
|
|
||||||
#include "src/ff.c"
|
#include "src/ff.c"
|
||||||
|
#include "src/option/unicode.c"
|
||||||
|
|
||||||
#endif // GFX_USE_GFILE && GFILE_NEED_FATFS
|
#endif // GFX_USE_GFILE && GFILE_NEED_FATFS
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
GFXSRC += $(GFXLIB)/src/gfile/fatfs/fatfs.c \
|
GFXSRC += $(GFXLIB)/src/gfile/fatfs/fatfs.c \
|
||||||
$(GFXLIB)/src/gfile/fatfs/fatfs_syscall.c \
|
$(GFXLIB)/src/gfile/fatfs/fatfs_syscall.c \
|
||||||
$(GFXLIB)/src/gfile/fatfs/fatfs_chibios_diskio.c
|
$(GFXLIB)/src/gfile/fatfs/fatfs_chibios_diskio.c \
|
||||||
|
|
||||||
|
|
||||||
GFXINC += $(GFXLIB)/src/gfile/fatfs/src
|
GFXINC += $(GFXLIB)/src/gfile/fatfs/src
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
/ Locale and Namespace Configurations
|
/ Locale and Namespace Configurations
|
||||||
/---------------------------------------------------------------------------*/
|
/---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#define _CODE_PAGE 932
|
#define _CODE_PAGE 1252
|
||||||
/* The _CODE_PAGE specifies the OEM code page to be used on the target system.
|
/* The _CODE_PAGE specifies the OEM code page to be used on the target system.
|
||||||
/ Incorrect setting of the code page can cause a file open failure.
|
/ Incorrect setting of the code page can cause a file open failure.
|
||||||
/
|
/
|
||||||
|
@ -88,7 +88,7 @@
|
||||||
/ 1 - ASCII (Valid for only non-LFN configuration) */
|
/ 1 - ASCII (Valid for only non-LFN configuration) */
|
||||||
|
|
||||||
|
|
||||||
#define _USE_LFN 0 /* 0 to 3 */
|
#define _USE_LFN 3 /* 0 to 3 */
|
||||||
#define _MAX_LFN 255 /* Maximum LFN length to handle (12 to 255) */
|
#define _MAX_LFN 255 /* Maximum LFN length to handle (12 to 255) */
|
||||||
/* The _USE_LFN option switches the LFN feature.
|
/* The _USE_LFN option switches the LFN feature.
|
||||||
/
|
/
|
||||||
|
@ -188,7 +188,7 @@
|
||||||
/ with file lock control. This feature uses bss _FS_LOCK * 12 bytes. */
|
/ with file lock control. This feature uses bss _FS_LOCK * 12 bytes. */
|
||||||
|
|
||||||
|
|
||||||
#define _FS_REENTRANT 1 /* 0:Disable or 1:Enable */
|
#define _FS_REENTRANT 0 /* 0:Disable or 1:Enable */
|
||||||
#if _FS_REENTRANT
|
#if _FS_REENTRANT
|
||||||
#include "gfx.h"
|
#include "gfx.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -535,6 +535,7 @@ bool_t gfileUnmount(char fs, const char* drive) {
|
||||||
0, 0, 0, 0,
|
0, 0, 0, 0,
|
||||||
0, 0, StringRead, StringWrite,
|
0, 0, StringRead, StringWrite,
|
||||||
0, 0, 0,
|
0, 0, 0,
|
||||||
|
0, 0
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue