[riot-notifications] [RIOT-OS/RIOT] pkg/fatfs: add vfs integration for FatFs (#7104)

Vincent Dupont notifications at github.com
Mon Dec 18 15:39:03 CET 2017


vincent-d commented on this pull request.



> +
+  #overwrite default mtd_native-config to use fat image as flash device
+  MTD_NATIVE_FILENAME    ?= \"./bin/riot_fatfs_disk.img\"
+  MTD_NATIVE_PAGE_SIZE   ?= 512
+  MTD_NATIVE_SECTOR_SIZE ?= 512
+  MTD_NATIVE_SECTOR_NUM  ?= \(\(\(FATFS_IMAGE_FILE_SIZE_MIB\)*1024*1024\)/MTD_NATIVE_SECTOR_SIZE\)
+  CFLAGS += -DMTD_NATIVE_FILENAME=$(MTD_NATIVE_FILENAME)
+  CFLAGS += -DMTD_NATIVE_PAGE_SIZE=$(MTD_NATIVE_PAGE_SIZE)
+  CFLAGS += -DMTD_NATIVE_SECTOR_SIZE=$(MTD_NATIVE_SECTOR_SIZE)
+  CFLAGS += -DFATFS_IMAGE_FILE_SIZE_MIB=$(FATFS_IMAGE_FILE_SIZE_MIB)
+  CFLAGS += -DMTD_NATIVE_SECTOR_NUM=$(MTD_NATIVE_SECTOR_NUM)
+else
+  USEMODULE += mtd_sdcard
+endif
+
+# whitelist can be removed when the problem described in #6063 was resolved

#6063 is now closed, I guess this can be improved

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/7104#pullrequestreview-84151854
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20171218/585fdba7/attachment-0001.html>


More information about the notifications mailing list