1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/drivers/stmpe811/Makefile
Gunar Schorcht 42c73bfcf1 tests/drivers/stmpe811: introduce STMPE811_POLLING_MODE
To be able to test the STMPE811 device driver in polling mode, variable `STMPE811_POLLING_MODE` is introduced. It is set to 0 by default and can be overriden by 1 to use the polling mode. The polling period can be controlled by the `STMPE811_POLLING_PERIOD` variable.
2023-08-13 17:11:54 +02:00

19 lines
397 B
Makefile

BOARD ?= stm32f429i-disc1
include ../Makefile.drivers_common
DRIVER ?= stmpe811_i2c
USEMODULE += $(DRIVER)
STMPE811_POLLING_MODE ?= 0
STMPE811_POLLING_PERIOD ?= 50
CFLAGS += -DSTMPE811_POLLING_MODE=$(STMPE811_POLLING_MODE)
CFLAGS += -DSTMPE811_POLLING_PERIOD=$(STMPE811_POLLING_PERIOD)
ifneq (0,$(STMPE811_POLLING_MODE))
USEMODULE += ztimer_msec
endif
include $(RIOTBASE)/Makefile.include