mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 06:23:53 +01:00
15 lines
336 B
Makefile
15 lines
336 B
Makefile
# 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)'
|