mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
tests/driver_adt7310: simplified Makefile
This commit is contained in:
parent
77b58144f0
commit
b7f2c5f7ee
@ -6,17 +6,12 @@ FEATURES_REQUIRED = periph_spi periph_gpio
|
||||
USEMODULE += adt7310
|
||||
USEMODULE += xtimer
|
||||
|
||||
ifneq (,$(TEST_ADT7310_SPI))
|
||||
CFLAGS += -DTEST_ADT7310_SPI=$(TEST_ADT7310_SPI)
|
||||
else
|
||||
# set arbitrary default
|
||||
CFLAGS += -DTEST_ADT7310_SPI=SPI_0
|
||||
endif
|
||||
ifneq (,$(TEST_ADT7310_CS))
|
||||
CFLAGS += -DTEST_ADT7310_CS=$(TEST_ADT7310_CS)
|
||||
else
|
||||
# set arbitrary default
|
||||
CFLAGS += -DTEST_ADT7310_CS=GPIO_PIN\(0,0\)
|
||||
endif
|
||||
# set default device parameters in case they are undefined
|
||||
TEST_ADT7310_SPI ?= SPI_0
|
||||
TEST_ADT7310_CS ?= GPIO_PIN\(0,0\)
|
||||
|
||||
# export parameters
|
||||
CFLAGS += -DTEST_ADT7310_SPI=$(TEST_ADT7310_SPI)
|
||||
CFLAGS += -DTEST_ADT7310_CS=$(TEST_ADT7310_CS)
|
||||
|
||||
include $(RIOTBASE)/Makefile.include
|
||||
|
Loading…
Reference in New Issue
Block a user