Skip to content

Commit

Permalink
extmod/vfs_fat_ffconf: Reusable FatFs module, move from stmhal/ffconf.
Browse files Browse the repository at this point in the history
TODO: Probably merge into vfs_fat_diskio.
  • Loading branch information
Paul Sokolovsky committed Feb 14, 2016
1 parent 6b0c882 commit 46a0ac0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions stmhal/ffconf.c → extmod/vfs_fat_ffconf.c
Expand Up @@ -24,6 +24,9 @@
* THE SOFTWARE.
*/

#include "py/mpconfig.h"
#if MICROPY_FSUSERMOUNT

#include <string.h>

#include "py/mpstate.h"
Expand Down Expand Up @@ -75,3 +78,5 @@ void ff_get_volname(BYTE vol, TCHAR **dest) {
memcpy(*dest, vfs->str, vfs->len);
*dest += vfs->len;
}

#endif // MICROPY_FSUSERMOUNT
1 change: 1 addition & 0 deletions py/py.mk
Expand Up @@ -171,6 +171,7 @@ PY_O_BASENAME = \
../extmod/modurandom.o \
../extmod/fsusermount.o \
../extmod/vfs_fat.o \
../extmod/vfs_fat_ffconf.o \
../extmod/vfs_fat_diskio.o \
../extmod/vfs_fat_file.o \
../extmod/moduos_dupterm.o \
Expand Down
1 change: 0 additions & 1 deletion stmhal/Makefile
Expand Up @@ -156,7 +156,6 @@ SRC_C = \
builtin_open.c \
sdcard.c \
fatfs_port.c \
ffconf.c \
lcd.c \
accel.c \
servo.c \
Expand Down
3 changes: 0 additions & 3 deletions unix/Makefile
Expand Up @@ -147,9 +147,6 @@ SRC_C = \
fatfs_port.c \
$(SRC_MOD)

STMHAL_SRC_C = \
stmhal/ffconf.c

# Include builtin package manager in the standard build (and coverage)
ifeq ($(PROG),micropython)
SRC_C += $(BUILD)/_frozen_upip.c
Expand Down

0 comments on commit 46a0ac0

Please sign in to comment.