fatfs update

ugfx_release_2.6
Joel Bodenmann 2014-06-28 06:33:59 +02:00
parent dad27f76ba
commit 31d85d16e7
4 changed files with 6 additions and 5 deletions

View File

@ -16,5 +16,6 @@
#if GFX_USE_GFILE && GFILE_NEED_FATFS
#include "src/ff.c"
#include "src/option/unicode.c"
#endif // GFX_USE_GFILE && GFILE_NEED_FATFS

View File

@ -1,7 +1,6 @@
GFXSRC += $(GFXLIB)/src/gfile/fatfs/fatfs.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

View File

@ -56,7 +56,7 @@
/ 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.
/ Incorrect setting of the code page can cause a file open failure.
/
@ -88,7 +88,7 @@
/ 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) */
/* The _USE_LFN option switches the LFN feature.
/
@ -188,7 +188,7 @@
/ 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
#include "gfx.h"
#endif

View File

@ -535,6 +535,7 @@ bool_t gfileUnmount(char fs, const char* drive) {
0, 0, 0, 0,
0, 0, StringRead, StringWrite,
0, 0, 0,
0, 0
};
#endif