git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4471 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2012-07-19 06:43:08 +00:00
parent 8c7611e9ca
commit bd5872c250
1 changed files with 1 additions and 1 deletions

View File

@ -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;