2016-11-07 21:34:08 +01:00
|
|
|
APPLICATION = pkg_fatfs
|
|
|
|
include ../Makefile.tests_common
|
|
|
|
|
|
|
|
USEMODULE += shell
|
|
|
|
|
|
|
|
BOARD ?= native
|
|
|
|
|
2017-10-18 23:59:37 +02:00
|
|
|
FEATURES_OPTIONAL += periph_rtc
|
|
|
|
|
2016-11-07 21:34:08 +01:00
|
|
|
# whitelist can be removed when the problem described in #6063 was resolved
|
|
|
|
# this list is composed of boards that support spi + native
|
|
|
|
BOARD_WHITELIST := native airfy-beacon arduino-due arduino-duemilanove arduino-mega2560 \
|
|
|
|
arduino-uno arduino-zero avsextrem cc2538dk fox frdm-k64f iotlab-a8-m3 \
|
|
|
|
iotlab-m3 limifrog-v1 maple-mini msb-430 msb-430h msba2 msbiot mulle \
|
|
|
|
nrf52840dk nrf52dk nrf6310 nucleo-f072 nucleo-f091 nucleo-f103 \
|
|
|
|
nucleo-f302 nucleo-f303 nucleo-f334 nucleo-f401 nucleo-f410 nucleo-f411 \
|
2017-07-17 18:24:15 +02:00
|
|
|
nucleo-f446 nucleo-l053 nucleo-l073 nucleo-l152 nucleo-l476 nucleo144-f207 \
|
2016-11-07 21:34:08 +01:00
|
|
|
nucleo144-f303 nucleo144-f413 nucleo144-f429 nucleo144-f446 nucleo32-f031 \
|
|
|
|
nucleo32-f042 nucleo32-f303 nucleo32-l031 nucleo32-l432 openmote-cc2538 \
|
2017-11-09 13:59:18 +01:00
|
|
|
pba-d-01-kw2x remote-pa remote-reva remote-revb samd21-xpro \
|
2016-11-07 21:34:08 +01:00
|
|
|
saml21-xpro samr21-xpro sodaq-autonomo spark-core stm32f0discovery \
|
2017-08-24 17:10:27 +02:00
|
|
|
stm32f3discovery stm32f4discovery telosb udoo waspmote-pro \
|
2016-11-07 21:34:08 +01:00
|
|
|
wsn430-v1_3b wsn430-v1_4 yunjia-nrf51822 z1
|
|
|
|
|
|
|
|
ifeq ($(BOARD),native)
|
|
|
|
USEMODULE += fatfs_diskio_native
|
|
|
|
FATFS_DISKIO_NATIVE_DEFAULT_FILE ?= \"riot_fatfs_disk.img\"
|
|
|
|
else
|
|
|
|
USEMODULE += fatfs_diskio_sdcard_spi
|
|
|
|
USEMODULE += auto_init_storage
|
|
|
|
endif
|
|
|
|
|
|
|
|
USEPKG += fatfs
|
|
|
|
|
|
|
|
include $(RIOTBASE)/Makefile.include
|