2015-05-14 15:37:56 +02:00
|
|
|
APPLICATION = driver_adt7310
|
|
|
|
include ../Makefile.tests_common
|
|
|
|
|
|
|
|
FEATURES_REQUIRED = periph_spi periph_gpio
|
|
|
|
|
|
|
|
USEMODULE += adt7310
|
2015-09-03 21:36:12 +02:00
|
|
|
USEMODULE += xtimer
|
2015-05-14 15:37:56 +02:00
|
|
|
|
|
|
|
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
|
2015-09-29 18:30:24 +02:00
|
|
|
CFLAGS += -DTEST_ADT7310_CS=GPIO_PIN\(0,0\)
|
2015-05-14 15:37:56 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
include $(RIOTBASE)/Makefile.include
|