Merge pull request #16353 from fjmolinas/pr_test_dbgpin_frdm-k64f

tests/dbgpin: user port 1 for frdm-k64f
This commit is contained in:
Kaspar Schleiser 2021-04-26 12:03:18 +02:00 committed by GitHub
commit a43b6b38cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,20 @@ include ../Makefile.tests_common
USEMODULE += dbgpin USEMODULE += dbgpin
USEMODULE += xtimer USEMODULE += xtimer
DBGPIN_PINS ?= GPIO_PIN(0,0) # Default port used is PORT 1
# - frdm-64f port A0-4 are connected to the JTAG, setting GPIO(0,0) will
# cause flashing to fail
BOARDS_DEBUG_PORT_1 = \
frdm-k64f \
#
ifneq (,$(filter $(BOARD),$(BOARDS_DEBUG_PORT_1)))
TEST_PORT ?= 1
else
TEST_PORT ?= 0
endif
DBGPIN_PINS ?= GPIO_PIN($(TEST_PORT),0)
CFLAGS += -DDBGPIN_PINS="$(DBGPIN_PINS)" CFLAGS += -DDBGPIN_PINS="$(DBGPIN_PINS)"
include $(RIOTBASE)/Makefile.include include $(RIOTBASE)/Makefile.include