From f5fb3bfb2e92ddd78342b7d88f0d126b14c83db0 Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Thu, 31 Mar 2016 17:00:30 +0200 Subject: [PATCH] boards/telosb: changed default baudrate to 9600 --- boards/telosb/Makefile.include | 1 + boards/telosb/include/board.h | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/boards/telosb/Makefile.include b/boards/telosb/Makefile.include index 6a78e3b2c8..c84cacd0bd 100644 --- a/boards/telosb/Makefile.include +++ b/boards/telosb/Makefile.include @@ -6,6 +6,7 @@ export CPU_MODEL = msp430f1611 PORT_LINUX ?= /dev/ttyUSB0 PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbserial-MXV*))) # setup serial terminal +export BAUD ?= 9600 include $(RIOTBOARD)/Makefile.include.serial # flash tool configuration diff --git a/boards/telosb/include/board.h b/boards/telosb/include/board.h index a02c6d6505..78c67772f3 100644 --- a/boards/telosb/include/board.h +++ b/boards/telosb/include/board.h @@ -41,6 +41,15 @@ extern "C" { #define __MSP430F1611__ #endif +/** + * @brief Override default baudrate for STDIO + * @{ + */ +#ifndef UART_STDIO_BAUDRATE +#define UART_STDIO_BAUDRATE (9600) +#endif +/** @} */ + /** * @brief Xtimer configuration * @{