Blame view

RIOT/tests/driver_pcd8544/Makefile 615 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_pdc8544
  include ../Makefile.tests_common
  
  FEATURES_REQUIRED = periph_gpio periph_spi
  
  USEMODULE += shell
  USEMODULE += pcd8544
  
  # set default device parameters in case they are undefined
  TEST_PCD8544_SPI   ?= SPI_DEV\(0\)
  TEST_PCD8544_CS    ?= GPIO_PIN\(0,0\)
  TEST_PCD8544_RESET ?= GPIO_PIN\(0,1\)
  TEST_PCD8544_MODE  ?= GPIO_PIN\(0,2\)
  
  # export parameters
  CFLAGS += -DTEST_PCD8544_SPI=$(TEST_PCD8544_SPI)
  CFLAGS += -DTEST_PCD8544_CS=$(TEST_PCD8544_CS)
  CFLAGS += -DTEST_PCD8544_RESET=$(TEST_PCD8544_RESET)
  CFLAGS += -DTEST_PCD8544_MODE=$(TEST_PCD8544_MODE)
  
  include $(RIOTBASE)/Makefile.include