Skip to content
Snippets Groups Projects
Commit 5773070d authored by Hauke Petersen's avatar Hauke Petersen
Browse files

Merge pull request #1760 from haukepetersen/fix_iotlab_term

board/iot-lab_M3: fixed default terminal device
parents cc319d1d bb943947
No related branches found
No related tags found
No related merge requests found
......@@ -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-
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment