From b608b837c239cdc59e3adb4f4f4eb9a6645fc09a Mon Sep 17 00:00:00 2001 From: Atis Elsts Date: Wed, 18 May 2016 17:40:20 +0300 Subject: [PATCH] Add login target to Makefile.cc26xx-cc13xx --- cpu/cc26xx-cc13xx/Makefile.cc26xx-cc13xx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/cpu/cc26xx-cc13xx/Makefile.cc26xx-cc13xx b/cpu/cc26xx-cc13xx/Makefile.cc26xx-cc13xx index d0cf1cf31..15d971004 100644 --- a/cpu/cc26xx-cc13xx/Makefile.cc26xx-cc13xx +++ b/cpu/cc26xx-cc13xx/Makefile.cc26xx-cc13xx @@ -145,3 +145,20 @@ else %.upload: @echo "This board cannot be programmed through the ROM bootloader and therefore does not support the .upload target." 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)