1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/driver_my9221/Makefile
Leandro Lanzieri 9abf3247c8
tests/driver_{g,h,i,j}*: add Kconfig configuration files
This also adds these applications to the CI tests. The following drivers
have been modelled:

gp2y10xx
grove_ledbar
hd44780
hdc1000
hih6130
hmc5883l
hts221
ili9341
ina2xx
ina3221
io1_xplained
isl29020
isl29125
itg320x
jc42
my9221
2020-11-27 09:20:08 +01:00

28 lines
784 B
Makefile

include ../Makefile.tests_common
USEMODULE += my9221
# disable native GPIOs for automatic test
ifeq (native,$(BOARD))
USEMODULE += periph_gpio_mock
# the same for Kconfig
ifeq (1,$(TEST_KCONFIG))
KCONFIG_ADD_CONFIG += $(APPDIR)/app.config.test.native
endif
endif
# set default device parameters in case they are undefined
# the following params are for board pba-d-01-kw2x and pins PA01 and PA02
TEST_MY9221_CLK ?= GPIO_PIN\(0,1\)
TEST_MY9221_DAT ?= GPIO_PIN\(0,2\)
TEST_MY9221_DIR ?= MY9221_DIR_FWD
TEST_MY9221_NUM ?= 10
# export parameters
CFLAGS += -DTEST_MY9221_CLK=$(TEST_MY9221_CLK)
CFLAGS += -DTEST_MY9221_DAT=$(TEST_MY9221_DAT)
CFLAGS += -DTEST_MY9221_DIR=$(TEST_MY9221_DIR)
CFLAGS += -DTEST_MY9221_NUM=$(TEST_MY9221_NUM)
include $(RIOTBASE)/Makefile.include