From 5b5861688bf496ecedab9b1960ed13daf34422a1 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 31 Jul 2010 07:02:45 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2100 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/hal_lld.h | 20 ++++++++++++++++++++ os/hal/platforms/STM32/serial_lld.c | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/os/hal/platforms/STM32/hal_lld.h b/os/hal/platforms/STM32/hal_lld.h index 7dd9cc13f..2ee5b53db 100644 --- a/os/hal/platforms/STM32/hal_lld.h +++ b/os/hal/platforms/STM32/hal_lld.h @@ -58,6 +58,26 @@ #error "STM32 platform unknown or not specified" #endif +/*===========================================================================*/ +/* Driver constants. */ +/*===========================================================================*/ + +/*===========================================================================*/ +/* Driver pre-compile time settings. */ +/*===========================================================================*/ + +/*===========================================================================*/ +/* Derived constants and error checks. */ +/*===========================================================================*/ + +/*===========================================================================*/ +/* Driver data structures and types. */ +/*===========================================================================*/ + +/*===========================================================================*/ +/* Driver macros. */ +/*===========================================================================*/ + /*===========================================================================*/ /* External declarations. */ /*===========================================================================*/ diff --git a/os/hal/platforms/STM32/serial_lld.c b/os/hal/platforms/STM32/serial_lld.c index 30b89109a..d46d660e2 100644 --- a/os/hal/platforms/STM32/serial_lld.c +++ b/os/hal/platforms/STM32/serial_lld.c @@ -70,7 +70,7 @@ static const SerialConfig default_config = { SERIAL_DEFAULT_BITRATE, 0, - USART_CR2_STOP1_BITS, + USART_CR2_STOP1_BITS | USART_CR2_LINEN, 0 };