2014-08-12 22:22:21 +02:00
|
|
|
include ../Makefile.tests_common
|
|
|
|
|
2014-10-01 17:24:27 +02:00
|
|
|
FEATURES_REQUIRED = periph_gpio
|
2018-09-20 18:02:24 +02:00
|
|
|
FEATURES_OPTIONAL = periph_gpio_irq
|
2014-08-12 22:22:21 +02:00
|
|
|
|
2015-06-03 18:13:41 +02:00
|
|
|
USEMODULE += shell
|
2020-07-07 13:28:04 +02:00
|
|
|
USEMODULE += shell_commands
|
2017-11-15 14:18:51 +01:00
|
|
|
USEMODULE += benchmark
|
2014-08-12 22:22:21 +02:00
|
|
|
|
2020-07-21 11:45:02 +02:00
|
|
|
BOARDS_BENCH_PORT_1 = \
|
|
|
|
slstk3402a \
|
|
|
|
#
|
|
|
|
|
|
|
|
# port 0 pins are used for serial output on these boards, e.g.: on slstk3402a
|
|
|
|
# PA5 (or port 0, pin 5) is used to control the BC enabling serial output,
|
|
|
|
# therefore test on port 1.
|
|
|
|
ifneq (,$(filter $(BOARD),$(BOARDS_BENCH_PORT_1)))
|
|
|
|
PORT_UNDER_TEST ?= 1
|
|
|
|
else
|
|
|
|
PORT_UNDER_TEST ?= 0
|
|
|
|
endif
|
|
|
|
|
2014-08-12 22:22:21 +02:00
|
|
|
include $(RIOTBASE)/Makefile.include
|
2017-11-15 14:20:28 +01:00
|
|
|
|
2020-07-21 11:45:02 +02:00
|
|
|
$(call target-export-variables,test,PORT_UNDER_TEST)
|
|
|
|
|
2017-11-15 14:20:28 +01:00
|
|
|
bench:
|
|
|
|
tests/02-bench.py
|