summaryrefslogtreecommitdiffstatshomepage
path: root/lib/oofatfs
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-01-31 12:32:24 +1100
committerDamien George <damien.p.george@gmail.com>2017-01-31 12:32:24 +1100
commitb039d93d7e0d43bb45e0c36a28f02d580acbf5ea (patch)
tree17c7ea97950b7c8c19f96bccd41eba448a8f6b9a /lib/oofatfs
parent80dfd650908eaac9a9c8601c655990812e879f7f (diff)
downloadmicropython-b039d93d7e0d43bb45e0c36a28f02d580acbf5ea.tar.gz
micropython-b039d93d7e0d43bb45e0c36a28f02d580acbf5ea.zip
lib/oofatfs/ffconf.h: Allow to configure FS_EXFAT option.
Using MICROPY_FATFS_EXFAT. Enabling this has licensing implications; see https://www.microsoft.com/en-us/legal/intellectualproperty/mtl/exfat-licensing.aspx
Diffstat (limited to 'lib/oofatfs')
-rw-r--r--lib/oofatfs/ffconf.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/oofatfs/ffconf.h b/lib/oofatfs/ffconf.h
index 4f37bb9cad..71dfaabcb9 100644
--- a/lib/oofatfs/ffconf.h
+++ b/lib/oofatfs/ffconf.h
@@ -268,7 +268,11 @@
/ buffer in the file system object (FATFS) is used for the file data transfer. */
+#ifdef MICROPY_FATFS_EXFAT
+#define _FS_EXFAT (MICROPY_FATFS_EXFAT)
+#else
#define _FS_EXFAT 0
+#endif
/* This option switches support of exFAT file system. (0:Disable or 1:Enable)
/ When enable exFAT, also LFN needs to be enabled. (_USE_LFN >= 1)
/ Note that enabling exFAT discards C89 compatibility. */