diff --git a/ports/zephyr/Makefile b/ports/zephyr/Makefile index 435778611..0d62e5a7a 100644 --- a/ports/zephyr/Makefile +++ b/ports/zephyr/Makefile @@ -18,6 +18,8 @@ MICROPY_HEAP_SIZE = 16384 FROZEN_DIR = scripts MICROPY_VFS_FAT ?= 1 +MICROPY_VFS_LFS1 ?= 0 +MICROPY_VFS_LFS2 ?= 1 # Default target all: diff --git a/ports/zephyr/moduos.c b/ports/zephyr/moduos.c index d33c317ce..46745e656 100644 --- a/ports/zephyr/moduos.c +++ b/ports/zephyr/moduos.c @@ -32,6 +32,10 @@ #include "extmod/vfs_fat.h" #endif +#if MICROPY_VFS_LFS1 || MICROPY_VFS_LFS2 +#include "extmod/vfs_lfs.h" +#endif + #if MICROPY_PY_UOS STATIC const mp_rom_map_elem_t uos_module_globals_table[] = { @@ -54,6 +58,12 @@ STATIC const mp_rom_map_elem_t uos_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(uos_module_globals, uos_module_globals_table);