From fa0202ec99d6bc63ddd5ecdc4c7fcfb7dafbbed6 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Thu, 3 Sep 2015 16:30:51 +0200 Subject: [PATCH] board: arduino-mega2560: set default baudrate to 9600 --- boards/arduino-mega2560/Makefile.include | 2 +- boards/arduino-mega2560/include/board.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/boards/arduino-mega2560/Makefile.include b/boards/arduino-mega2560/Makefile.include index af890c5724..9e8bfa7551 100644 --- a/boards/arduino-mega2560/Makefile.include +++ b/boards/arduino-mega2560/Makefile.include @@ -12,7 +12,7 @@ export LINK = $(PREFIX)gcc export SIZE = $(PREFIX)size export OBJCOPY = $(PREFIX)objcopy export TERMPROG = $(RIOTBASE)/dist/tools/pyterm/pyterm -export TERMFLAGS = -b 38400 -p $(PORT) +export TERMFLAGS = -b 9600 -p $(PORT) #define the flash-tool and default port depending on the host operating system OS = $(shell uname) diff --git a/boards/arduino-mega2560/include/board.h b/boards/arduino-mega2560/include/board.h index ea6fe3b0cb..8b9c6b44e7 100644 --- a/boards/arduino-mega2560/include/board.h +++ b/boards/arduino-mega2560/include/board.h @@ -42,9 +42,9 @@ extern "C" { * @name Define UART device and baudrate for stdio * @{ */ -#define STDIO UART_0 -#define STDIO_BAUDRATE (38400U) -#define STDIO_RX_BUFSIZE (64U) +#define STDIO UART_0 +#define STDIO_BAUDRATE (9600U) +#define STDIO_RX_BUFSIZE (64U) /** @} */ /**