1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

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.
This commit is contained in:
Oleg Hahm 2014-11-05 10:45:57 +01:00
parent e5864f58f6
commit d518c07135
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)
/** @} */ /** @} */