From 8e4fd21b2b79a1f9f3c3601d6d344a9bfd4cc060 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 31 Jul 2010 06:46:17 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2099 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/serial_lld.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'os/hal/platforms/STM32/serial_lld.c') diff --git a/os/hal/platforms/STM32/serial_lld.c b/os/hal/platforms/STM32/serial_lld.c index 8885af9af..30b89109a 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_LINEN, + USART_CR2_STOP1_BITS, 0 }; @@ -121,6 +121,9 @@ static void usart_deinit(USART_TypeDef *u) { u->CR3 = 0; } +#if USE_STM32_USART1 || USE_STM32_USART2 || USE_STM32_USART3 || \ + ((USE_STM32_USART4 || USE_STM32_USART5) && \ + (defined(STM32F10X_HD) || defined(STM32F10X_CL))) /** * @brief Error handling routine. * @@ -179,6 +182,7 @@ static void serve_interrupt(SerialDriver *sdp) { chSysUnlockFromIsr(); } } +#endif #if USE_STM32_USART1 || defined(__DOXYGEN__) static void notify1(void) { -- cgit v1.2.3