2017-04-24 09:33:53 +02:00
|
|
|
## the cpu to build for
|
|
|
|
export CPU = stm32l0
|
|
|
|
export CPU_MODEL = stm32l072cz
|
|
|
|
|
|
|
|
# define the default port depending on the host OS
|
|
|
|
PORT_LINUX ?= /dev/ttyACM0
|
|
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
|
|
|
|
|
|
|
# setup serial terminal
|
|
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|
|
|
|
|
2018-01-30 08:38:31 +01:00
|
|
|
# this board has an on-board ST-link adapter
|
2017-10-06 14:59:07 +02:00
|
|
|
export DEBUG_ADAPTER ?= stlink
|
|
|
|
|
2018-04-11 15:28:38 +02:00
|
|
|
# call a 'reset halt' command before starting the debugger
|
|
|
|
export OPENOCD_DBG_START_CMD = -c 'reset halt'
|
|
|
|
|
2017-04-24 09:33:53 +02:00
|
|
|
# this board uses openocd
|
|
|
|
include $(RIOTMAKE)/tools/openocd.inc.mk
|