diff options
author | mux <freelancer.c@gmail.com> | 2014-02-22 22:09:00 +0200 |
---|---|---|
committer | mux <freelancer.c@gmail.com> | 2014-02-22 22:09:00 +0200 |
commit | 1e2cf746d40cbd36b088dfaf4ba008962290209a (patch) | |
tree | 2c85b9b1a1546046900d8360c2cd7e77af06ac88 /stm/fatfs/ffconf.h | |
parent | 2613ffde431594f3fe0562042c32105623fbe4dc (diff) | |
download | micropython-1e2cf746d40cbd36b088dfaf4ba008962290209a.tar.gz micropython-1e2cf746d40cbd36b088dfaf4ba008962290209a.zip |
Add Configurable LFN support to FatFS
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.
/
|