Blame view

RIOT/makefiles/tools/serial.inc.mk 566 Bytes
a752c7ab   elopes   add first test an...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  # 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
  
  TERMINAL ?= pyterm
  ifeq ($(TERMINAL),pyterm)
      export TERMPROG  ?= $(RIOTBASE)/dist/tools/pyterm/pyterm
      export TERMFLAGS ?= -p "$(PORT)" -b "$(BAUD)"
  else ifeq ($(TERMINAL),picocom)
      export TERMPROG  ?= picocom
      export TERMFLAGS ?= --nolock --imap lfcrlf --echo --baud "$(BAUD)" "$(PORT)"
  endif