diff --git a/boards/weact-g030f6/Makefile.include b/boards/weact-g030f6/Makefile.include index 15a610973e..232ae1d6e6 100644 --- a/boards/weact-g030f6/Makefile.include +++ b/boards/weact-g030f6/Makefile.include @@ -1,18 +1,13 @@ # we use shared STM32 configuration snippets INCLUDES += -I$(RIOTBASE)/boards/common/stm32/include -# define the default port depending on the host OS -PORT_LINUX ?= /dev/ttyACM0 -PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*))) - -# setup serial terminal -include $(RIOTMAKE)/tools/serial.inc.mk - +# setup programmer +PROGRAMMERS_SUPPORTED += openocd PROGRAMMER ?= openocd OPENOCD_DEBUG_ADAPTER ?= stlink - -# openocd programmer is supported -PROGRAMMERS_SUPPORTED += openocd - -# this board uses openocd include $(RIOTMAKE)/tools/openocd.inc.mk + +# setup serial terminal +PORT_LINUX ?= /dev/ttyACM0 +PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*))) +include $(RIOTMAKE)/tools/serial.inc.mk