2022-02-25 17:17:44 +01:00
|
|
|
BOARD ?= samr34-xpro
|
|
|
|
|
2023-05-05 10:26:35 +02:00
|
|
|
include ../Makefile.periph_common
|
2014-08-12 22:22:21 +02:00
|
|
|
|
2020-09-08 16:12:32 +02:00
|
|
|
FEATURES_REQUIRED += periph_gpio
|
|
|
|
FEATURES_OPTIONAL += periph_gpio_irq
|
2020-09-10 22:00:46 +02:00
|
|
|
FEATURES_OPTIONAL += periph_gpio_fast_read
|
2020-09-08 16:12:32 +02:00
|
|
|
FEATURES_OPTIONAL += periph_gpio_tamper_wake
|
2014-08-12 22:22:21 +02:00
|
|
|
|
2022-08-16 16:35:20 +02:00
|
|
|
USEMODULE += shell_cmds_default
|
2017-11-15 14:18:51 +01:00
|
|
|
USEMODULE += benchmark
|
2014-08-12 22:22:21 +02:00
|
|
|
|
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
|
|
|
|
|
2020-07-21 11:45:02 +02:00
|
|
|
BOARDS_BENCH_PORT_1 = \
|
|
|
|
slstk3402a \
|
tests/periph_gpio: bench port 1 on z1
/* Port 1:
* P1.0 is not assigned by default
* P1.1 is the bootstrap-loader (BSL) TX pin -> input, special function, default to GND
* THIS PIN MUST *NEVER* BE USED IN NORMAL EXECUTION, SINCE IT INTERFERES WITH UART0 !!!
* P1.2 receives the FIFOP interrupt from CC2420 -> input, GPIO, default to GND
* P1.3 receives the FIFO/GIO0 interrupt from CC2420 -> input, GPIO, default to GND
* P1.4 receives the CCA/GIO1 signal from CC2420 -> input, GPIO, default to GND
* P1.5 is wired to Vcc -> input, GPIO, default to Vcc
* P1.6 receives interrupt INT1 from accelerometer -> input, GPIO, default to GND
* P1.7 receives interrupt INT2 from accelerometer -> input, GPIO, default to GND
*/
(test starts indexing at 0)
2020-07-30 13:32:39 +02:00
|
|
|
z1 \
|
2020-07-21 11:45:02 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2020-09-24 15:44:52 +02:00
|
|
|
# avoid running Kconfig by default
|
|
|
|
SHOULD_RUN_KCONFIG ?=
|
|
|
|
|
2022-04-01 12:21:20 +02:00
|
|
|
# microbit qemu failing currently
|
|
|
|
TEST_ON_CI_BLACKLIST += microbit
|
|
|
|
|
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
|