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-10-13 14:59:54 +02:00

29 lines
553 B
Makefile

APPLICATION = driver_dht
include ../Makefile.tests_common
FEATURES_REQUIRED = periph_gpio
# define default pin mappings for some boards:
ifneq (,$(filter stm32f4discovery,$(BOARD)))
export DHT_GPIO ?= GPIO_PIN\(4,3\)
endif
USEMODULE += dht
USEMODULE += xtimer
ifneq (,$(DHT_TYPE))
CFLAGS += -DDHT_TYPE=$(DHT_TYPE)
else
# set random default
CFLAGS += -DDHT_TYPE=DHT11
endif
ifneq (,$(DHT_GPIO))
CFLAGS += -DDHT_GPIO=$(DHT_GPIO)
else
# set random default
CFLAGS += -DDHT_GPIO=GPIO_PIN\(0,0\)
endif
include $(RIOTBASE)/Makefile.include