diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-02-15 00:08:37 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-02-15 00:08:37 +0200 |
commit | 8cb78e0e5356134e9313e745667297d6b9dc46ed (patch) | |
tree | 73d43b36aa7596a5d2695d49c9121a5d8c164198 | |
parent | 72085a669babf83774716e21f6191bf2f84936a5 (diff) | |
download | micropython-8cb78e0e5356134e9313e745667297d6b9dc46ed.tar.gz micropython-8cb78e0e5356134e9313e745667297d6b9dc46ed.zip |
extmod/vfs_fat_diskio: Reusable FatFs module, move from stmhal/diskio.
-rw-r--r-- | extmod/vfs_fat_diskio.c (renamed from stmhal/diskio.c) | 5 | ||||
-rw-r--r-- | py/py.mk | 1 | ||||
-rw-r--r-- | stmhal/Makefile | 1 | ||||
-rw-r--r-- | unix/Makefile | 1 |
4 files changed, 6 insertions, 2 deletions
diff --git a/stmhal/diskio.c b/extmod/vfs_fat_diskio.c index 03be24188e..7acdc82972 100644 --- a/stmhal/diskio.c +++ b/extmod/vfs_fat_diskio.c @@ -27,6 +27,9 @@ * THE SOFTWARE. */ +#include "py/mpconfig.h" +#if MICROPY_FSUSERMOUNT + #include <stdint.h> #include <stdio.h> @@ -248,3 +251,5 @@ DRESULT disk_ioctl ( } } #endif + +#endif // MICROPY_FSUSERMOUNT @@ -171,6 +171,7 @@ PY_O_BASENAME = \ ../extmod/modurandom.o \ ../extmod/fsusermount.o \ ../extmod/vfs_fat.o \ + ../extmod/vfs_fat_diskio.o \ ../extmod/moduos_dupterm.o \ # prepend the build destination prefix to the py object files diff --git a/stmhal/Makefile b/stmhal/Makefile index 3cad7d1da4..cd565a6f4a 100644 --- a/stmhal/Makefile +++ b/stmhal/Makefile @@ -156,7 +156,6 @@ SRC_C = \ file.c \ builtin_open.c \ sdcard.c \ - diskio.c \ fatfs_port.c \ ffconf.c \ lcd.c \ diff --git a/unix/Makefile b/unix/Makefile index 42f0edf811..342786debe 100644 --- a/unix/Makefile +++ b/unix/Makefile @@ -148,7 +148,6 @@ SRC_C = \ $(SRC_MOD) STMHAL_SRC_C = \ - stmhal/diskio.c \ stmhal/ffconf.c \ stmhal/file.c |