From d518c07135528e7c1b455c8a60e5b70170488a34 Mon Sep 17 00:00:00 2001 From: Oleg Hahm <oleg@hobbykeller.org> Date: Wed, 5 Nov 2014 10:45:57 +0100 Subject: [PATCH] iot-lab_M3: set baud rate to 500 kbaud The IoT-Lab testbed requires a baud rate of 500 kbaud to use UART. Hence, this commit sets the default baud rate to this value and adapt the `make term` target accordingly. --- boards/iot-lab_M3/Makefile.include | 2 +- boards/iot-lab_M3/include/board.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/boards/iot-lab_M3/Makefile.include b/boards/iot-lab_M3/Makefile.include index 68bbf59be2..32ea808781 100644 --- a/boards/iot-lab_M3/Makefile.include +++ b/boards/iot-lab_M3/Makefile.include @@ -39,7 +39,7 @@ export LINKFLAGS += -T$(LINKERSCRIPT) export OFLAGS = -O ihex export FFLAGS = $(HEXFILE) export DEBUGGER_FLAGS = $(RIOTBOARD)/$(BOARD)/dist/gdb.conf $(ELFFILE) -export TERMFLAGS = -p $(PORT) +export TERMFLAGS = -p $(PORT) -b 500000 # use the nano-specs of the NewLib when available ifeq ($(shell $(LINK) -specs=nano.specs -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0) diff --git a/boards/iot-lab_M3/include/board.h b/boards/iot-lab_M3/include/board.h index 8ef122345e..70be469442 100644 --- a/boards/iot-lab_M3/include/board.h +++ b/boards/iot-lab_M3/include/board.h @@ -43,7 +43,7 @@ extern "C" { * @{ */ #define STDIO UART_0 -#define STDIO_BAUDRATE (115200U) +#define STDIO_BAUDRATE (500000U) #define STDIO_RX_BUFSIZE (64U) /** @} */ -- GitLab