2016-03-18 18:33:53 +01:00
|
|
|
# define the default port depending on the host OS
|
|
|
|
PORT_LINUX ?= /dev/ttyUSB1
|
2016-10-11 15:23:37 +02:00
|
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbserial*B)))
|
2016-03-18 18:33:53 +01:00
|
|
|
|
|
|
|
# setup serial terminal
|
2020-06-10 13:32:05 +02:00
|
|
|
BAUD ?= 500000
|
2016-03-18 18:33:53 +01:00
|
|
|
|
2021-02-11 14:13:07 +01:00
|
|
|
# openocd programmer is supported
|
|
|
|
PROGRAMMERS_SUPPORTED += openocd
|
|
|
|
|
2020-11-19 18:38:41 +01:00
|
|
|
# Use openocd by default
|
|
|
|
PROGRAMMER ?= openocd
|
|
|
|
|
2019-09-02 16:12:55 +02:00
|
|
|
# Using connect_assert_srst removes errors on flash from invalid state
|
2020-02-24 10:26:14 +01:00
|
|
|
OPENOCD_RESET_USE_CONNECT_ASSERT_SRST ?= 1
|
2018-04-18 17:54:07 +02:00
|
|
|
|
2021-02-18 17:15:55 +01:00
|
|
|
OPENOCD_DEBUG_ADAPTER ?= iotlab
|
2020-01-28 11:56:56 +01:00
|
|
|
|
2020-02-22 11:33:19 +01:00
|
|
|
OPENOCD_CONFIG ?= $(RIOTBOARD)/common/iotlab/dist/openocd.cfg
|
2020-01-28 11:52:37 +01:00
|
|
|
|
2016-03-18 18:33:53 +01:00
|
|
|
# add the common header files to the include path
|
2020-08-30 12:47:55 +02:00
|
|
|
INCLUDES += -I$(RIOTBOARD)/common/stm32/include
|
2017-11-16 12:21:26 +01:00
|
|
|
INCLUDES += -I$(RIOTBOARD)/common/iotlab/include
|