Skip to content

Commit 8cb78e0

Browse files
committed
extmod/vfs_fat_diskio: Reusable FatFs module, move from stmhal/diskio.
1 parent 72085a6 commit 8cb78e0

4 files changed

Lines changed: 6 additions & 2 deletions

File tree

stmhal/diskio.c renamed to extmod/vfs_fat_diskio.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
* THE SOFTWARE.
2828
*/
2929

30+
#include "py/mpconfig.h"
31+
#if MICROPY_FSUSERMOUNT
32+
3033
#include <stdint.h>
3134
#include <stdio.h>
3235

@@ -248,3 +251,5 @@ DRESULT disk_ioctl (
248251
}
249252
}
250253
#endif
254+
255+
#endif // MICROPY_FSUSERMOUNT

py/py.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ PY_O_BASENAME = \
171171
../extmod/modurandom.o \
172172
../extmod/fsusermount.o \
173173
../extmod/vfs_fat.o \
174+
../extmod/vfs_fat_diskio.o \
174175
../extmod/moduos_dupterm.o \
175176

176177
# prepend the build destination prefix to the py object files

stmhal/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ SRC_C = \
156156
file.c \
157157
builtin_open.c \
158158
sdcard.c \
159-
diskio.c \
160159
fatfs_port.c \
161160
ffconf.c \
162161
lcd.c \

unix/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ SRC_C = \
148148
$(SRC_MOD)
149149

150150
STMHAL_SRC_C = \
151-
stmhal/diskio.c \
152151
stmhal/ffconf.c \
153152
stmhal/file.c
154153

0 commit comments

Comments
 (0)