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

Merge pull request #13844 from maribu/msbiot

boards/msbiot: Use common stm32 serial/programmer settings
This commit is contained in:
benpicco 2020-04-14 13:54:58 +02:00 committed by GitHub
commit 1c22ee8782
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,15 +1,13 @@
# we use shared STM32 configuration snippets
INCLUDES += -I$(RIOTBOARD)/common/stm32/include
#define the default port depending on the host OS
PORT_LINUX ?= /dev/ttyUSB0
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# setup serial terminal
include $(RIOTMAKE)/tools/serial.inc.mk
PROGRAMMER ?= openocd
DEBUG_ADAPTER ?= stlink
STLINK_VERSION ?= 2
ifeq (openocd,$(PROGRAMMER))
STLINK_VERSION ?= 2
PORT_LINUX ?= /dev/ttyUSB0
endif
# this board uses openocd
include $(RIOTMAKE)/tools/openocd.inc.mk
# Setup of programmer and serial is shared between STM32 based boards
include $(RIOTMAKE)/boards/stm32.inc.mk