mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Alexandre Abadie
f8822b5f8f
They defined the same in serial.inc.mk. Some Darwin default are changed because they are probably wrong
26 lines
958 B
Makefile
26 lines
958 B
Makefile
# include this module into the build
|
|
INCLUDES += -I$(RIOTBOARD)/common/nrf52/include
|
|
|
|
ifeq (bmp,$(PROGRAMMER))
|
|
# On Blackmagic Probe, the first ACM is used to connect to the gdb server,
|
|
# the second is the BMP's UART interface
|
|
PORT_LINUX ?= /dev/ttyACM1
|
|
PORT_DARWIN ?= $(wordlist 2, 2, $(sort $(wildcard /dev/tty.usbmodem*)))
|
|
endif
|
|
|
|
PROGRAMMER ?= jlink
|
|
ifeq (jlink,$(PROGRAMMER))
|
|
# setup JLink for flashing
|
|
JLINK_DEVICE = nrf52
|
|
else ifeq (openocd,$(PROGRAMMER))
|
|
ifneq (,$(filter $(BOARD),ruuvitag thingy52))
|
|
# openocd doesn't fully work with ruuvitag and thingy52
|
|
$(error Cannot use OpenOCD with $(BOARD) board)
|
|
endif
|
|
# setup OpenOCD for flashing. Version 0.10 of OpenOCD doesn't contain support
|
|
# for nrf52dk and nrf52840dk boards. To use OpenOCD with these a version
|
|
# build from source (master > 2018, August the 13rd) is required.
|
|
DEBUG_ADAPTER ?= jlink
|
|
OPENOCD_CONFIG = $(RIOTBOARD)/common/nrf52/dist/openocd.cfg
|
|
endif
|