Add login target to Makefile.cc26xx-cc13xx

This commit is contained in:
Atis Elsts 2016-05-18 17:40:20 +03:00 committed by George Oikonomou
parent cd5a0ef291
commit b608b837c2

View file

@ -145,3 +145,20 @@ else
%.upload: %.upload:
@echo "This board cannot be programmed through the ROM bootloader and therefore does not support the .upload target." @echo "This board cannot be programmed through the ROM bootloader and therefore does not support the .upload target."
endif endif
# Check if we are running under Windows
ifeq ($(HOST_OS),Windows)
SERIALDUMP ?= $(CONTIKI)/tools/sky/serialdump-windows
else
ifeq ($(HOST_OS),Darwin)
SERIALDUMP ?= $(CONTIKI)/tools/sky/serialdump-macos
else
# Else assume Linux
SERIALDUMP ?= $(CONTIKI)/tools/sky/serialdump-linux
endif
endif
UART_BAUDRATE = 115200
login:
$(SERIALDUMP) -b$(UART_BAUDRATE) $(PORT)