2014-05-05 21:38:59 +02:00
|
|
|
# define the cpu used by the udoo board
|
2015-06-12 13:12:33 +02:00
|
|
|
export CPU = sam3
|
|
|
|
export CPU_MODEL = sam3x8e
|
2014-05-05 21:38:59 +02:00
|
|
|
|
2014-07-03 15:23:34 +02:00
|
|
|
#define the flash-tool and default port depending on the host operating system
|
2014-05-05 21:38:59 +02:00
|
|
|
OS := $(shell uname)
|
|
|
|
ifeq ($(OS),Linux)
|
|
|
|
PORT ?= /dev/ttyUSB0
|
|
|
|
FLASHER = $(RIOTBOARD)/$(BOARD)/dist/bossac_udoo
|
|
|
|
else ifeq ($(OS),Darwin)
|
|
|
|
PORT = /dev/tty.SLAB_USBtoUART
|
|
|
|
FLASHER = $(RIOTBOARD)/$(BOARD)/dist/bossac_udoo_osx
|
|
|
|
else
|
2014-07-03 15:23:34 +02:00
|
|
|
$(info CAUTION: No flash tool for your host system found!)
|
2014-05-05 21:38:59 +02:00
|
|
|
# TODO: add support for windows as host platform
|
|
|
|
endif
|
|
|
|
export FLASHER
|
|
|
|
export PORT
|
|
|
|
|
2015-04-22 15:45:35 +02:00
|
|
|
export OFLAGS = -O binary
|
|
|
|
export FFLAGS = -R -e -w -v -b bin/$(BOARD)/$(APPLICATION).hex
|
2014-11-18 18:11:25 +01:00
|
|
|
|
2015-04-22 15:45:35 +02:00
|
|
|
# setup serial terminal
|
|
|
|
include $(RIOTBOARD)/Makefile.include.serial
|
2014-05-05 21:38:59 +02:00
|
|
|
|
2015-04-22 15:45:35 +02:00
|
|
|
# include cortex defaults
|
2015-05-28 15:09:17 +02:00
|
|
|
include $(RIOTBOARD)/Makefile.include.cortexm_common
|