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
|
2016-02-13 21:51:08 +01:00
|
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
2014-04-17 19:35:40 +02:00
|
|
|
|
2015-04-22 15:45:34 +02:00
|
|
|
# setup serial terminal
|
2016-01-27 10:47:12 +01:00
|
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|
2017-05-17 11:55:56 +02:00
|
|
|
|
|
|
|
# setup flasher (using BOSSA)
|
|
|
|
export BOSSA_ARDUINO_PREFLASH = yes
|
|
|
|
include $(RIOTMAKE)/tools/bossa.inc.mk
|