Skip to content

Commit 46a0ac0

Browse files
committed
extmod/vfs_fat_ffconf: Reusable FatFs module, move from stmhal/ffconf.
TODO: Probably merge into vfs_fat_diskio.
1 parent 6b0c882 commit 46a0ac0

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

stmhal/ffconf.c renamed to extmod/vfs_fat_ffconf.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
* THE SOFTWARE.
2525
*/
2626

27+
#include "py/mpconfig.h"
28+
#if MICROPY_FSUSERMOUNT
29+
2730
#include <string.h>
2831

2932
#include "py/mpstate.h"
@@ -75,3 +78,5 @@ void ff_get_volname(BYTE vol, TCHAR **dest) {
7578
memcpy(*dest, vfs->str, vfs->len);
7679
*dest += vfs->len;
7780
}
81+
82+
#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_ffconf.o \
174175
../extmod/vfs_fat_diskio.o \
175176
../extmod/vfs_fat_file.o \
176177
../extmod/moduos_dupterm.o \

stmhal/Makefile

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

unix/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,6 @@ SRC_C = \
147147
fatfs_port.c \
148148
$(SRC_MOD)
149149

150-
STMHAL_SRC_C = \
151-
stmhal/ffconf.c
152-
153150
# Include builtin package manager in the standard build (and coverage)
154151
ifeq ($(PROG),micropython)
155152
SRC_C += $(BUILD)/_frozen_upip.c

0 commit comments

Comments
 (0)