2023-03-30 16:12:49 +02:00
|
|
|
include ../Makefile.drivers_common
|
2018-02-27 10:56:44 +01:00
|
|
|
|
2021-12-01 14:32:41 +01:00
|
|
|
USEMODULE += ztimer
|
|
|
|
USEMODULE += ztimer_msec
|
2018-02-27 10:56:44 +01:00
|
|
|
|
|
|
|
# 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
|