diff options
| author | StereoRocker | 2021-02-03 22:59:36 +0000 |
|---|---|---|
| committer | Damien George | 2021-03-11 17:56:21 +1100 |
| commit | 8610bababed3703f52c57f7e7b575c9d50be38a4 (patch) | |
| tree | c6c4403eebd1471bee2f3ee93e0d13db40a9f548 /ports/rp2/mpconfigport.h | |
| parent | 23ce25a7c3175e2251af9af34a6c5eafa871bfcd (diff) | |
rp2: Enable VfsFat class for FAT filesystem support.
Allows interfacing with SD cards, for example.
Diffstat (limited to 'ports/rp2/mpconfigport.h')
| -rw-r--r-- | ports/rp2/mpconfigport.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ports/rp2/mpconfigport.h b/ports/rp2/mpconfigport.h index b3214acfc..69db4449d 100644 --- a/ports/rp2/mpconfigport.h +++ b/ports/rp2/mpconfigport.h @@ -118,6 +118,12 @@ #define MICROPY_PY_FRAMEBUF (1) #define MICROPY_VFS (1) #define MICROPY_VFS_LFS2 (1) +#define MICROPY_VFS_FAT (1) + +// fatfs configuration +#define MICROPY_FATFS_ENABLE_LFN (1) +#define MICROPY_FATFS_LFN_CODE_PAGE 437 /* 1=SFN/ANSI 437=LFN/U.S.(OEM) */ +#define MICROPY_FATFS_RPATH (2) // Use VfsLfs2's types for fileio/textio #define mp_type_fileio mp_type_vfs_lfs2_fileio |
