1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 22:43:50 +01:00

Merge pull request #14613 from benpicco/openocd-buspirate

makefiles/buspirate: add Bus Pirate as Debug Adapter
This commit is contained in:
benpicco 2020-08-03 15:34:49 +02:00 committed by GitHub
commit 77be30dee6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,14 @@
# Bus Pirate debug adapter
#
# For SWD mode connect:
# MOSI - SWDIO
# CLK - SWCLK
ifeq ($(OS),Darwin)
PROG_DEV ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
else
PROG_DEV ?= /dev/ttyUSB0
endif
OPENOCD_ADAPTER_INIT ?= -c 'source [find interface/buspirate.cfg]' \
-c 'buspirate_port $(PROG_DEV)'