mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
e3e1abb368
Fixes #7767
23 lines
581 B
Makefile
23 lines
581 B
Makefile
# 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),)
|
|
$(info Warning: no PORT set!)
|
|
endif
|
|
export PORT
|
|
|
|
export BAUD ?= 115200
|
|
|
|
RIOT_TERMINAL ?= pyterm
|
|
ifeq ($(RIOT_TERMINAL),pyterm)
|
|
export TERMPROG ?= $(RIOTBASE)/dist/tools/pyterm/pyterm
|
|
export TERMFLAGS ?= -p "$(PORT)" -b "$(BAUD)"
|
|
else ifeq ($(RIOT_TERMINAL),picocom)
|
|
export TERMPROG ?= picocom
|
|
export TERMFLAGS ?= --nolock --imap lfcrlf --echo --baud "$(BAUD)" "$(PORT)"
|
|
endif
|