2017-01-20 18:10:54 +01:00
|
|
|
# the cpu to build for
|
|
|
|
export CPU = stm32f1
|
|
|
|
export CPU_MODEL = stm32f103cb
|
|
|
|
|
|
|
|
# custom linkerscript
|
2017-03-02 13:57:43 +01:00
|
|
|
export LINKER_SCRIPT = stm32f103cb_opencm904.ld
|
2017-01-20 18:10:54 +01:00
|
|
|
|
|
|
|
# custom flasher to use with the bootloader
|
|
|
|
export FLASHER = $(RIOTBOARD)/$(BOARD)/dist/robotis-loader.py
|
|
|
|
export DEBUGGER =
|
|
|
|
export DEBUGSERVER =
|
|
|
|
|
|
|
|
export OFLAGS = -O binary
|
|
|
|
export HEXFILE = $(ELFFILE:.elf=.bin)
|
|
|
|
export FFLAGS =
|
|
|
|
export DEBUGGER_FLAGS =
|
|
|
|
|
|
|
|
# define the default port depending on the host OS
|
|
|
|
PORT_LINUX ?= /dev/ttyACM0
|
|
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
|
|
|
|
|
|
|
# setup serial terminal
|
2016-01-27 10:47:12 +01:00
|
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|