File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 133133 #define MICROPY_FATFS_MAX_SS (4096)
134134#endif
135135
136- // TODO these should be generic, not bound to fatfs
136+ #if MICROPY_VFS
137+ // TODO these should be generic, not bound to a particular FS implementation
138+ #if MICROPY_VFS_FAT
139+ #define mp_type_fileio mp_type_vfs_fat_fileio
140+ #define mp_type_textio mp_type_vfs_fat_textio
141+ #elif MICROPY_VFS_LFS1
142+ #define mp_type_fileio mp_type_vfs_lfs1_fileio
143+ #define mp_type_textio mp_type_vfs_lfs1_textio
144+ #elif MICROPY_VFS_LFS2
145+ #define mp_type_fileio mp_type_vfs_lfs2_fileio
146+ #define mp_type_textio mp_type_vfs_lfs2_textio
147+ #endif
148+ #else // !MICROPY_VFS_FAT
137149#define mp_type_fileio fatfs_type_fileio
138150#define mp_type_textio fatfs_type_textio
151+ #endif
139152
140153// Use port specific uos module rather than extmod variant.
141154#define MICROPY_PY_UOS (0)
You can’t perform that action at this time.
0 commit comments