summaryrefslogtreecommitdiff
path: root/py/qstrdefs.h
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2025-02-21 00:37:49 +1100
committerDamien George <damien@micropython.org>2025-03-06 12:52:35 +1100
commitd4b8ca2ffc3967007297d17e995d955ca39b1d6d (patch)
treec6bb5594d84e520c039fad2741ff717d308871f0 /py/qstrdefs.h
parent89e6c58c8007e2628741e73c32866c23e8478ae1 (diff)
extmod/vfs: Add mp_vfs_mount_romfs_protected() helper.
This function will attempt to create a `VfsRom` instance and mount it at location "/rom" in the filesystem. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/qstrdefs.h')
-rw-r--r--py/qstrdefs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/py/qstrdefs.h b/py/qstrdefs.h
index 5003636df..0b50d279f 100644
--- a/py/qstrdefs.h
+++ b/py/qstrdefs.h
@@ -68,6 +68,11 @@ Q(utf-8)
Q(.frozen)
#endif
+#if MICROPY_VFS_ROM && MICROPY_VFS_ROM_IOCTL
+Q(/rom)
+Q(/rom/lib)
+#endif
+
#if MICROPY_ENABLE_PYSTACK
Q(pystack exhausted)
#endif