1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/makefiles/tools/openocd-adapters/ftdi.inc.mk
2024-03-26 18:42:43 +01:00

21 lines
589 B
Makefile

# Select default FTDI debug adapter board
OPENOCD_FTDI_ADAPTER ?= tigard
# FTDI debug adapter interface
OPENOCD_ADAPTER_INIT ?= -c 'source [find interface/ftdi/$(OPENOCD_FTDI_ADAPTER).cfg]'
# default to SWD
OPENOCD_TRANSPORT ?= swd
# Add serial matching command, only if DEBUG_ADAPTER_ID was specified
ifneq (,$(DEBUG_ADAPTER_ID))
OPENOCD_ADAPTER_INIT += -c 'ftdi_serial $(DEBUG_ADAPTER_ID)'
endif
ifeq (swd, $(OPENOCD_TRANSPORT))
ifeq (tigard, $(OPENOCD_FTDI_ADAPTER))
# Add dummy SWD_EN signal
OPENOCD_ADAPTER_INIT += -c 'ftdi layout_signal SWD_EN -data 0'
endif
endif