1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/driver_dht/Makefile
2015-11-03 16:04:31 +01:00

23 lines
482 B
Makefile

APPLICATION = driver_dht
include ../Makefile.tests_common
FEATURES_REQUIRED = periph_gpio
USEMODULE += dht
USEMODULE += xtimer
# define parameters for selected boards
ifneq (,$(filter stm32f4discovery,$(BOARD)))
DHT_GPIO ?= GPIO_PIN\(4,3\)
endif
# set default device parameters in case they are undefined
DHT_GPIO ?= GPIO_PIN\(0,0\)
DHT_TYPE ?= DHT11
# export parameters
CFLAGS += -DDHT_TYPE=$(DHT_TYPE)
CFLAGS += -DDHT_GPIO=$(DHT_GPIO)
include $(RIOTBASE)/Makefile.include