From a949179f69f457682c653ca362fe85a33ec20f93 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Tue, 12 Nov 2019 15:54:00 +0100 Subject: [PATCH] boards/stm32f030f4-demo: Use STM32 programmer conf --- boards/stm32f030f4-demo/Makefile.include | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/boards/stm32f030f4-demo/Makefile.include b/boards/stm32f030f4-demo/Makefile.include index aa3f38dfad..236f122411 100644 --- a/boards/stm32f030f4-demo/Makefile.include +++ b/boards/stm32f030f4-demo/Makefile.include @@ -1,18 +1,4 @@ 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 - -# stm32 boards can become un-flashable after a hardfault, -# use connect_assert_srst to always be able to flash or reset the boards. -export OPENOCD_RESET_USE_CONNECT_ASSERT_SRST ?= 1 - -# all Nucleo boards have an on-board ST-link adapter -DEBUG_ADAPTER ?= stlink - -# stlink use openocd -include $(RIOTMAKE)/tools/openocd.inc.mk +# Setup of programmer and serial is shared between STM32 based boards +include $(RIOTMAKE)/boards/stm32.inc.mk