From bd5872c250e8ddbc6bb40b5ea999d79145a78784 Mon Sep 17 00:00:00 2001
From: gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>
Date: Thu, 19 Jul 2012 06:43:08 +0000
Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4471
 35acf78f-673a-0410-8e92-d51de3d6d3f4

---
 os/hal/platforms/STM32/USARTv1/uart_lld.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'os/hal')

diff --git a/os/hal/platforms/STM32/USARTv1/uart_lld.c b/os/hal/platforms/STM32/USARTv1/uart_lld.c
index 01c5627ac..1e71ea016 100644
--- a/os/hal/platforms/STM32/USARTv1/uart_lld.c
+++ b/os/hal/platforms/STM32/USARTv1/uart_lld.c
@@ -175,7 +175,7 @@ static void usart_start(UARTDriver *uartp) {
   usart_stop(uartp);
 
   /* Baud rate setting.*/
-  if (uartp->usart == USART1)
+  if ((uartp->usart == USART1) || (uartp->usart == USART6))
     u->BRR = STM32_PCLK2 / uartp->config->speed;
   else
     u->BRR = STM32_PCLK1 / uartp->config->speed;
-- 
cgit v1.2.3