1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

boards/msbiot: Use common stm32 serial/programmer settings

This commit is contained in:
Marian Buschsieweke 2020-04-09 09:57:45 +02:00
parent a06d9bbb66
commit c989205d8f
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F

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