Blame view

RIOT/tests/driver_nvram_spi/Makefile 665 Bytes
a752c7ab   elopes   add first test an...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  APPLICATION = driver_nvram_spi
  include ../Makefile.tests_common
  
  FEATURES_REQUIRED = periph_spi periph_gpio
  
  USEMODULE += nvram_spi
  USEMODULE += xtimer
  
  # set default device parameters in case they are undefined
  TEST_NVRAM_SPI_DEV           ?= SPI_DEV\(0\)
  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)
  
  include $(RIOTBASE)/Makefile.include