1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/drivers/ft5x06/Makefile
Gunar Schorcht 4af04c846f tests/drivers/ft5x06: introduce FT5X06_POLLING_MODE
To be able to test the FT5x06 device driver in polling mode, variable `FT5X06_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 `FT5X06_POLLING_PERIOD` variable.
2023-08-25 17:32:24 +02:00

17 lines
356 B
Makefile

BOARD ?= stm32f746g-disco
include ../Makefile.drivers_common
FT5X06_POLLING_MODE ?= 0
FT5X06_POLLING_PERIOD ?= 50
CFLAGS += -DFT5X06_POLLING_MODE=$(FT5X06_POLLING_MODE)
CFLAGS += -DFT5X06_POLLING_PERIOD=$(FT5X06_POLLING_PERIOD)
USEMODULE += ft5x06
ifneq (0,$(FT5X06_POLLING_MODE))
USEMODULE += ztimer_msec
endif
include $(RIOTBASE)/Makefile.include