summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2023-10-13 14:53:02 +1100
committerDamien George <damien@micropython.org>2024-02-07 13:25:08 +1100
commite7020463f1114317988ffef21663df5cc8c62ba9 (patch)
tree30235251cd25ad935fcc1a5c1210c634488ab662 /py
parentaaba1d8a6c8ee6edae0025df56055e309dd05234 (diff)
extmod/modvfs: Add new "vfs" module with mount/umount and Vfs classes.
They have been moved from the "os" module. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py')
-rw-r--r--py/mpconfig.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index 9a1f04568..837115ab5 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -1744,6 +1744,11 @@ typedef double mp_float_t;
#define MICROPY_PY_SSL_FINALISER (MICROPY_ENABLE_FINALISER)
#endif
+// Whether to provide the "vfs" module
+#ifndef MICROPY_PY_VFS
+#define MICROPY_PY_VFS (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_EXTRA_FEATURES && MICROPY_VFS)
+#endif
+
#ifndef MICROPY_PY_WEBSOCKET
#define MICROPY_PY_WEBSOCKET (0)
#endif