summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/file.c')
-rw-r--r--stmhal/file.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/stmhal/file.c b/stmhal/file.c
index b3e811231a..37e43a7db3 100644
--- a/stmhal/file.c
+++ b/stmhal/file.c
@@ -33,6 +33,11 @@
#include "lib/fatfs/ff.h"
#include "file.h"
+#if MICROPY_VFS_FAT
+#define mp_type_fileio fatfs_type_fileio
+#define mp_type_textio fatfs_type_textio
+#endif
+
extern const mp_obj_type_t mp_type_fileio;
extern const mp_obj_type_t mp_type_textio;