2014-10-22 15:49:49 +02:00
|
|
|
# define the cpu used by the OpenMote board
|
|
|
|
export CPU = cc2538
|
|
|
|
export CPU_MODEL = cc2538sf53
|
|
|
|
|
2015-04-22 15:45:34 +02:00
|
|
|
# define the default port depending on the host OS
|
|
|
|
PORT_LINUX ?= /dev/ttyUSB0
|
|
|
|
PORT_DARWIN ?= $(shell ls -1 /dev/tty.usbserial-* | head -n 1)
|
2014-10-22 15:49:49 +02:00
|
|
|
|
2015-04-22 15:45:34 +02:00
|
|
|
#
|
2014-10-22 15:49:49 +02:00
|
|
|
export FLASHER = $(RIOTBOARD)/$(BOARD)/dist/flash.sh
|
|
|
|
export DEBUGGER = $(RIOTBOARD)/$(BOARD)/dist/debug.sh
|
|
|
|
export DEBUGSERVER = JLinkGDBServer -device CC2538SF53
|
|
|
|
export RESET = $(RIOTBOARD)/$(BOARD)/dist/reset.sh
|
|
|
|
|
|
|
|
export OFLAGS = -O binary
|
|
|
|
export HEXFILE = $(ELFFILE:.elf=.bin)
|
|
|
|
export FFLAGS = $(BINDIR) $(HEXFILE)
|
|
|
|
export DEBUGGER_FLAGS = $(BINDIR) $(ELFFILE)
|
|
|
|
export RESET_FLAGS = $(BINDIR)
|
|
|
|
|
2015-04-22 15:45:34 +02:00
|
|
|
# setup serial terminal
|
|
|
|
include $(RIOTBOARD)/Makefile.include.serial
|
2014-11-18 19:07:47 +01:00
|
|
|
|
2015-04-22 15:45:34 +02:00
|
|
|
# include cortex defaults
|
2015-05-28 15:09:17 +02:00
|
|
|
include $(RIOTBOARD)/Makefile.include.cortexm_common
|