diff options
author | Damien George <damien.p.george@gmail.com> | 2019-11-13 22:04:52 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-11-26 00:07:09 +1100 |
commit | 715e4fc25f7b103da48c9bc9513ee76e12a1471a (patch) | |
tree | a64e35a15c9acf215e1f8d03e7807fb41c3f937a | |
parent | 7897f5d9bea22a3a0d7474805af624d0683c6d52 (diff) | |
download | micropython-715e4fc25f7b103da48c9bc9513ee76e12a1471a.tar.gz micropython-715e4fc25f7b103da48c9bc9513ee76e12a1471a.zip |
stm32/moduos: Add VfsLfs1 and VfsLfs2 to uos module, if enabled.
-rw-r--r-- | ports/stm32/moduos.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ports/stm32/moduos.c b/ports/stm32/moduos.c index ead2380b33..8bf58623c9 100644 --- a/ports/stm32/moduos.c +++ b/ports/stm32/moduos.c @@ -36,6 +36,7 @@ #include "extmod/misc.h" #include "extmod/vfs.h" #include "extmod/vfs_fat.h" +#include "extmod/vfs_lfs.h" #include "genhdr/mpversion.h" #include "rng.h" #include "usb.h" @@ -174,6 +175,12 @@ STATIC const mp_rom_map_elem_t os_module_globals_table[] = { #if MICROPY_VFS_FAT { MP_ROM_QSTR(MP_QSTR_VfsFat), MP_ROM_PTR(&mp_fat_vfs_type) }, #endif + #if MICROPY_VFS_LFS1 + { MP_ROM_QSTR(MP_QSTR_VfsLfs1), MP_ROM_PTR(&mp_type_vfs_lfs1) }, + #endif + #if MICROPY_VFS_LFS2 + { MP_ROM_QSTR(MP_QSTR_VfsLfs2), MP_ROM_PTR(&mp_type_vfs_lfs2) }, + #endif }; STATIC MP_DEFINE_CONST_DICT(os_module_globals, os_module_globals_table); |