mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
20 lines
539 B
Makefile
20 lines
539 B
Makefile
## 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
|
|
|
|
# this board has an on-board ST-link adapter
|
|
export DEBUG_ADAPTER ?= stlink
|
|
|
|
# call a 'reset halt' command before starting the debugger
|
|
export OPENOCD_DBG_START_CMD = -c 'reset halt'
|
|
|
|
# this board uses openocd
|
|
include $(RIOTMAKE)/tools/openocd.inc.mk
|