summaryrefslogtreecommitdiffstatshomepage
path: root/stm/fatfs/ffconf.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-02-22 22:36:24 +0000
committerDamien George <damien.p.george@gmail.com>2014-02-22 22:36:24 +0000
commited73fcd7d212aea31a9d8cfa2800d5f2f068370f (patch)
treea94b8f2d45100ad381bc71ba0d8f9715432ea314 /stm/fatfs/ffconf.h
parent9982f2795dfafca0934dd89982fedec6df75806e (diff)
parent1e2cf746d40cbd36b088dfaf4ba008962290209a (diff)
downloadmicropython-ed73fcd7d212aea31a9d8cfa2800d5f2f068370f.tar.gz
micropython-ed73fcd7d212aea31a9d8cfa2800d5f2f068370f.zip
Merge pull request #316 from iabdalkader/fatfs_lfn
Add Configurable LFN support to FatFS
Diffstat (limited to 'stm/fatfs/ffconf.h')
-rw-r--r--stm/fatfs/ffconf.h6
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.
/