1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #18628 from benpicco/openocd-adapters-ftdi

tools/openocd: add generic FTDI adapter
This commit is contained in:
Marian Buschsieweke 2022-09-23 23:58:30 +02:00 committed by GitHub
commit d6a9e5b590
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,13 @@
# 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