|
|
@@ -1,3 +1,4 @@
|
|
|
+#include "luat_conf_bsp.h"
|
|
|
/*---------------------------------------------------------------------------/
|
|
|
/ Configurations of FatFs Module
|
|
|
/---------------------------------------------------------------------------*/
|
|
|
@@ -112,8 +113,11 @@
|
|
|
/ 0 - Include all code pages above and configured by f_setcp()
|
|
|
*/
|
|
|
|
|
|
-
|
|
|
-#define FF_USE_LFN 2
|
|
|
+#ifdef LUAT_FF_USE_LFN
|
|
|
+#define FF_USE_LFN LUAT_FF_USE_LFN
|
|
|
+#else
|
|
|
+#define FF_USE_LFN 0
|
|
|
+#endif
|
|
|
#define FF_MAX_LFN 255
|
|
|
/* The FF_USE_LFN switches the support for LFN (long file name).
|
|
|
/
|
|
|
@@ -132,8 +136,11 @@
|
|
|
/ memory for the working buffer, memory management functions, ff_memalloc() and
|
|
|
/ ff_memfree() exemplified in ffsystem.c, need to be added to the project. */
|
|
|
|
|
|
-
|
|
|
-#define FF_LFN_UNICODE 2
|
|
|
+#ifdef LUAT_FF_LFN_UNICODE
|
|
|
+#define FF_LFN_UNICODE LUAT_FF_LFN_UNICODE
|
|
|
+#else
|
|
|
+#define FF_LFN_UNICODE 0
|
|
|
+#endif
|
|
|
/* This option switches the character encoding on the API when LFN is enabled.
|
|
|
/
|
|
|
/ 0: ANSI/OEM in current CP (TCHAR = char)
|