Skip to content

Commit

Permalink
Merge pull request #16353 from fjmolinas/pr_test_dbgpin_frdm-k64f
Browse files Browse the repository at this point in the history
tests/dbgpin: user port 1 for frdm-k64f
  • Loading branch information
kaspar030 committed Apr 26, 2021
2 parents 285ea20 + f3999be commit a43b6b3
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion tests/dbgpin/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,20 @@ include ../Makefile.tests_common
USEMODULE += dbgpin
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)"

include $(RIOTBASE)/Makefile.include

0 comments on commit a43b6b3

Please sign in to comment.