2015-05-15 23:18:32 +02:00
|
|
|
APPLICATION = driver_dht
|
|
|
|
include ../Makefile.tests_common
|
|
|
|
|
|
|
|
FEATURES_REQUIRED = periph_gpio
|
|
|
|
|
|
|
|
USEMODULE += dht
|
2015-09-03 18:53:45 +02:00
|
|
|
USEMODULE += xtimer
|
2015-05-15 23:18:32 +02:00
|
|
|
|
2015-11-03 15:27:24 +01:00
|
|
|
# define parameters for selected boards
|
|
|
|
ifneq (,$(filter stm32f4discovery,$(BOARD)))
|
|
|
|
DHT_GPIO ?= GPIO_PIN\(4,3\)
|
2015-05-15 23:18:32 +02:00
|
|
|
endif
|
|
|
|
|
2015-11-03 15:27:24 +01:00
|
|
|
# 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)
|
2015-05-15 23:18:32 +02:00
|
|
|
|
|
|
|
include $(RIOTBASE)/Makefile.include
|