1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/microbit-v2/Makefile.include

25 lines
883 B
Makefile
Raw Normal View History

# for this board, flash with OpenOCD by default. PyOCD is also supported.
PROGRAMMER ?= openocd
PROGRAMMERS_SUPPORTED += pyocd
# The model text used has double quotes around the name. That's an odd enough
# choice to warrant making them optional in the detection, in case later
# programmer firmware revisions "fix" that.
TTY_BOARD_FILTER := --model ".?BBC micro:bit CMSIS-DAP.?"
# The TTY serial also is the ID of the debug adapter, as the TTY is provided by
# the debug adapter
DEBUG_ADAPTER_ID_IS_TTY_SERIAL := 1
# The board is not recognized automatically by pyocd, so the CPU target
# option is passed explicitly
PYOCD_FLASH_TARGET_TYPE ?= -t $(CPU)
OPENOCD_DEBUG_ADAPTER = dap
ifneq (,$(filter microbit,$(USEMODULE)))
INCLUDES += -I$(RIOTBOARD)/common/microbit/include
endif
# include nrf52 boards common configuration
include $(RIOTBOARD)/common/nrf52/Makefile.include