mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
makefiles/buspirate: add Bus Pirate as Debug Adapter
Flash with PROGRAMMER=openocd DEBUG_ADAPTER=buspirate
This commit is contained in:
parent
42eb044ec6
commit
1a04425d7b
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…
Reference in New Issue
Block a user