Skip to content
Snippets Groups Projects
Commit d518c071 authored by Oleg Hahm's avatar Oleg Hahm
Browse files

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.
parent e5864f58
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ export LINKFLAGS += -T$(LINKERSCRIPT) ...@@ -39,7 +39,7 @@ export LINKFLAGS += -T$(LINKERSCRIPT)
export OFLAGS = -O ihex export OFLAGS = -O ihex
export FFLAGS = $(HEXFILE) export FFLAGS = $(HEXFILE)
export DEBUGGER_FLAGS = $(RIOTBOARD)/$(BOARD)/dist/gdb.conf $(ELFFILE) 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 # 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) ifeq ($(shell $(LINK) -specs=nano.specs -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0)
......
...@@ -43,7 +43,7 @@ extern "C" { ...@@ -43,7 +43,7 @@ extern "C" {
* @{ * @{
*/ */
#define STDIO UART_0 #define STDIO UART_0
#define STDIO_BAUDRATE (115200U) #define STDIO_BAUDRATE (500000U)
#define STDIO_RX_BUFSIZE (64U) #define STDIO_RX_BUFSIZE (64U)
/** @} */ /** @} */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment