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:
commit
77be30dee6
14
makefiles/tools/openocd-adapters/buspirate.inc.mk
Normal file
14
makefiles/tools/openocd-adapters/buspirate.inc.mk
Normal 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)'
|
||||
Loading…
x
Reference in New Issue
Block a user