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)
|
2019-02-25 16:46:44 +01:00
|
|
|
TERMPROG ?= $(RIOTTOOLS)/pyterm/pyterm
|
|
|
|
TERMFLAGS ?= -p "$(PORT)" -b "$(BAUD)"
|
2019-02-20 08:30:33 +01:00
|
|
|
else ifeq ($(RIOT_TERMINAL),socat)
|
|
|
|
SOCAT_OUTPUT ?= -
|
2019-02-25 16:46:44 +01:00
|
|
|
TERMPROG ?= $(RIOT_TERMINAL)
|
|
|
|
TERMFLAGS ?= $(SOCAT_OUTPUT) open:$(PORT),b$(BAUD),echo=0,raw
|
2017-10-23 15:19:30 +02:00
|
|
|
else ifeq ($(RIOT_TERMINAL),picocom)
|
2019-02-25 16:46:44 +01:00
|
|
|
TERMPROG ?= picocom
|
2019-02-25 16:56:00 +01:00
|
|
|
TERMFLAGS ?= --nolock --imap lfcrlf --baud "$(BAUD)" "$(PORT)"
|
2017-10-18 12:24:24 +02:00
|
|
|
endif
|