2015-01-26 14:23:35 +01:00
|
|
|
include ../Makefile.tests_common
|
|
|
|
|
|
|
|
USEMODULE += nvram_spi
|
2015-09-03 21:36:13 +02:00
|
|
|
USEMODULE += xtimer
|
2015-01-26 14:23:35 +01:00
|
|
|
|
2015-11-03 15:27:25 +01:00
|
|
|
# set default device parameters in case they are undefined
|
2016-11-08 18:44:44 +01:00
|
|
|
TEST_NVRAM_SPI_DEV ?= SPI_DEV\(0\)
|
2015-11-03 15:27:25 +01:00
|
|
|
TEST_NVRAM_SPI_CS ?= GPIO_PIN\(0,0\)
|
|
|
|
TEST_NVRAM_SPI_SIZE ?= 64
|
|
|
|
TEST_NVRAM_SPI_ADDRESS_COUNT ?= 1
|
|
|
|
|
|
|
|
# export parameters
|
|
|
|
CFLAGS += -DTEST_NVRAM_SPI_DEV=$(TEST_NVRAM_SPI_DEV)
|
|
|
|
CFLAGS += -DTEST_NVRAM_SPI_CS=$(TEST_NVRAM_SPI_CS)
|
|
|
|
CFLAGS += -DTEST_NVRAM_SPI_SIZE=$(TEST_NVRAM_SPI_SIZE)
|
|
|
|
CFLAGS += -DTEST_NVRAM_SPI_ADDRESS_COUNT=$(TEST_NVRAM_SPI_ADDRESS_COUNT)
|
2015-01-26 14:23:35 +01:00
|
|
|
|
|
|
|
include $(RIOTBASE)/Makefile.include
|