mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 19:50:30 +01:00
extmod/modvfs: Add vfs.rom_ioctl function and its ioctl constants.
This is a generic interface to allow querying and modifying the read-only memory area of a device, if it has such an area. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -1006,6 +1006,11 @@ typedef double mp_float_t;
|
||||
#define MICROPY_VFS_WRITABLE (1)
|
||||
#endif
|
||||
|
||||
// Whether to enable the mp_vfs_rom_ioctl C function, and vfs.rom_ioctl Python function
|
||||
#ifndef MICROPY_VFS_ROM_IOCTL
|
||||
#define MICROPY_VFS_ROM_IOCTL (MICROPY_VFS_ROM)
|
||||
#endif
|
||||
|
||||
// Support for VFS POSIX component, to mount a POSIX filesystem within VFS
|
||||
#ifndef MICROPY_VFS_POSIX
|
||||
#define MICROPY_VFS_POSIX (0)
|
||||
|
||||
Reference in New Issue
Block a user