2014-04-17 19:35:40 +02:00
|
|
|
# define the cpu used by the arduino due board
|
2015-06-12 13:12:13 +02:00
|
|
|
export CPU = sam3
|
|
|
|
export CPU_MODEL = sam3x8e
|
2014-04-17 19:35:40 +02:00
|
|
|
|
2015-04-22 15:45:34 +02:00
|
|
|
# define the default port depending on the host OS
|
|
|
|
PORT_LINUX ?= /dev/ttyACM0
|
|
|
|
PORT_DARWIN ?= $(shell ls -1 /dev/tty.usbmodem* | head -n 1)
|
2014-04-17 19:35:40 +02:00
|
|
|
|
2015-05-28 15:09:17 +02:00
|
|
|
# define board specific flasher options
|
|
|
|
export FLASHER = $(RIOTBOARD)/$(BOARD)/dist/flash.sh
|
|
|
|
export OFLAGS = -O binary
|
|
|
|
|
2015-04-22 15:45:34 +02:00
|
|
|
# setup serial terminal
|
|
|
|
include $(RIOTBOARD)/Makefile.include.serial
|
2014-04-17 19:35:40 +02: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
|