1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/common/nucleo/Makefile.include
Alexandre Abadie de15af4c87 boards/common/stm32-link: add common place for stlink
- introduce common place for boards using stlink: same serial, all use openocd
- apply this to nucleos
2018-06-26 20:45:23 +02:00

20 lines
563 B
Makefile

# export this module and its includes
USEMODULE += boards_common_nucleo
INCLUDES += -I$(RIOTBOARD)/common/nucleo/include
# we use shared STM32 configuration snippets
INCLUDES += -I$(RIOTBOARD)/common/stm32/include
# configure the serial terminal
PORT_LINUX ?= /dev/ttyACM0
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
# setup serial terminal
include $(RIOTMAKE)/tools/serial.inc.mk
# all Nucleo boards have an on-board ST-link adapter
export DEBUG_ADAPTER ?= stlink
# nucleo boards use openocd
include $(RIOTMAKE)/tools/openocd.inc.mk