diff options
Diffstat (limited to 'stm/fatfs/ffconf.h')
-rw-r--r-- | stm/fatfs/ffconf.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stm/fatfs/ffconf.h b/stm/fatfs/ffconf.h index 3d1ce0964e..2d075a68bc 100644 --- a/stm/fatfs/ffconf.h +++ b/stm/fatfs/ffconf.h @@ -9,6 +9,7 @@ #ifndef _FFCONF
#define _FFCONF 80960 /* Revision ID */
+#include "mpconfigport.h"
/*---------------------------------------------------------------------------/
/ Functions and Buffer Configurations
@@ -60,7 +61,7 @@ / Locale and Namespace Configurations
/----------------------------------------------------------------------------*/
-#define _CODE_PAGE 1
+#define _CODE_PAGE (MICROPY_LFN_CODE_PAGE)
/* 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.
/
@@ -92,8 +93,7 @@ / 1 - ASCII (Valid for only non-LFN cfg.)
*/
-
-#define _USE_LFN 0 /* 0 to 3 */
+#define _USE_LFN (MICROPY_ENABLE_LFN) /* 0 to 3 */
#define _MAX_LFN 255 /* Maximum LFN length to handle (12 to 255) */
/* The _USE_LFN option switches the LFN feature.
/
|