aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-07-19 06:43:08 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-07-19 06:43:08 +0000
commitbd5872c250e8ddbc6bb40b5ea999d79145a78784 (patch)
treeddcd68ec23676d288da69a25040eb50049e8301a
parent8c7611e9cac0d3fb9d112797e1d235a25143122b (diff)
downloadChibiOS-bd5872c250e8ddbc6bb40b5ea999d79145a78784.tar.gz
ChibiOS-bd5872c250e8ddbc6bb40b5ea999d79145a78784.tar.bz2
ChibiOS-bd5872c250e8ddbc6bb40b5ea999d79145a78784.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4471 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r--os/hal/platforms/STM32/USARTv1/uart_lld.c2
1 files changed, 1 insertions, 1 deletions
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;