diff --git a/boards/udoo/Makefile.include b/boards/udoo/Makefile.include index f566c727b51805a2d88130b3f489a0163f66ac55..de164e968de38d07c16ec8db02b6b74b6d57b840 100644 --- a/boards/udoo/Makefile.include +++ b/boards/udoo/Makefile.include @@ -2,23 +2,13 @@ export CPU = sam3 export CPU_MODEL = sam3x8e -#define the flash-tool and default port depending on the host operating system -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 - $(info CAUTION: No flash tool for your host system found!) - # TODO: add support for windows as host platform -endif -export FLASHER -export PORT - -export OFLAGS = -O binary -export FFLAGS = -R -e -w -v -b bin/$(BOARD)/$(APPLICATION).hex +# define the default port depending on host OS +PORT_LINUX ?= /dev/ttyACM0 +PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*))) # setup serial terminal include $(RIOTMAKE)/tools/serial.inc.mk + +# setup the flash tool (BOSSA) +export BOSSA_ARDUINO_PREFLASH = yes +include $(RIOTMAKE)/tools/bossa.inc.mk diff --git a/boards/udoo/dist/bossac_udoo b/boards/udoo/dist/bossac_udoo deleted file mode 100755 index 14fd8d8db212639f36190faef19b398f980ed0a6..0000000000000000000000000000000000000000 Binary files a/boards/udoo/dist/bossac_udoo and /dev/null differ diff --git a/boards/udoo/dist/bossac_udoo_osx b/boards/udoo/dist/bossac_udoo_osx deleted file mode 100755 index 9d3d9e3d11a252fde79e831c315fd5ea46a41c4b..0000000000000000000000000000000000000000 Binary files a/boards/udoo/dist/bossac_udoo_osx and /dev/null differ