1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-29 00:11:16 +01:00

Merge pull request #1760 from haukepetersen/fix_iotlab_term

board/iot-lab_M3: fixed default terminal device
This commit is contained in:
Hauke Petersen 2014-10-06 15:40:11 +02:00
commit 5773070d47

View File

@ -2,8 +2,17 @@
export CPU = stm32f1
export CPU_MODEL = stm32f103re
# set the default port
export PORT ?= /dev/ttyUSB0
# set default port depending on operating system
OS := $(shell uname)
ifeq ($(OS),Linux)
PORT ?= /dev/ttyUSB1
else ifeq ($(OS),Darwin)
PORT ?= $(shell ls -1 /dev/tty.usbmodem* | head -n 1)
else
$(info CAUTION: No PORT was defined for your host platform!)
# TODO: add support for windows as host platform
endif
export PORT
# define tools used for building the project
export PREFIX = arm-none-eabi-