1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/drivers/mhz19/Makefile

26 lines
484 B
Makefile

include ../Makefile.drivers_common
USEMODULE += ztimer
USEMODULE += ztimer_msec
# set default device parameters in case they are undefined
TEST_MODE ?= 1
TEST_UART ?= UART_DEV\(1\)
TEST_PWM ?= GPIO_PIN\(PC,8\)
ifeq ($(TEST_MODE),1)
USEMODULE += mhz19_uart
endif
ifeq ($(TEST_MODE),2)
USEMODULE += mhz19_pwm
endif
# export parameters
CFLAGS += -DTEST_MODE=$(TEST_MODE)
CFLAGS += -DTEST_UART=$(TEST_UART)
CFLAGS += -DTEST_PWM=$(TEST_PWM)
include $(RIOTBASE)/Makefile.include