2015-04-22 15:41:37 +02:00
|
|
|
# set default port depending on operating system
|
|
|
|
OS := $(shell uname)
|
|
|
|
ifeq ($(OS),Linux)
|
|
|
|
PORT ?= $(PORT_LINUX)
|
|
|
|
else ifeq ($(OS),Darwin)
|
|
|
|
PORT ?= $(PORT_DARWIN)
|
|
|
|
endif
|
|
|
|
ifeq ($(PORT),)
|
2017-09-28 21:29:08 +02:00
|
|
|
$(info Warning: no PORT set!)
|
2015-04-22 15:41:37 +02:00
|
|
|
endif
|
2017-10-18 12:24:24 +02:00
|
|
|
export PORT
|
2015-04-22 15:41:37 +02:00
|
|
|
|
|
|
|
export BAUD ?= 115200
|
|
|
|
|
2017-10-23 15:19:30 +02:00
|
|
|
RIOT_TERMINAL ?= pyterm
|
|
|
|
ifeq ($(RIOT_TERMINAL),pyterm)
|
2017-10-18 12:24:24 +02:00
|
|
|
export TERMPROG ?= $(RIOTBASE)/dist/tools/pyterm/pyterm
|
|
|
|
export TERMFLAGS ?= -p "$(PORT)" -b "$(BAUD)"
|
2017-10-23 15:19:30 +02:00
|
|
|
else ifeq ($(RIOT_TERMINAL),picocom)
|
2017-10-18 12:24:24 +02:00
|
|
|
export TERMPROG ?= picocom
|
|
|
|
export TERMFLAGS ?= --nolock --imap lfcrlf --echo --baud "$(BAUD)" "$(PORT)"
|
|
|
|
endif
|