2023-03-30 16:12:49 +02:00
|
|
|
include ../Makefile.drivers_common
|
2017-06-12 22:29:29 +02:00
|
|
|
|
|
|
|
USEMODULE += my9221
|
|
|
|
|
2020-07-21 23:40:40 +02:00
|
|
|
# disable native GPIOs for automatic test
|
2024-02-01 13:55:02 +01:00
|
|
|
ifneq (,$(filter native native64,$(BOARD)))
|
2020-07-21 23:40:40 +02:00
|
|
|
USEMODULE += periph_gpio_mock
|
|
|
|
endif
|
|
|
|
|
2017-06-12 22:29:29 +02:00
|
|
|
# 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
|