git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4471 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
8c7611e9ca
commit
bd5872c250
|
@ -175,7 +175,7 @@ static void usart_start(UARTDriver *uartp) {
|
||||||
usart_stop(uartp);
|
usart_stop(uartp);
|
||||||
|
|
||||||
/* Baud rate setting.*/
|
/* Baud rate setting.*/
|
||||||
if (uartp->usart == USART1)
|
if ((uartp->usart == USART1) || (uartp->usart == USART6))
|
||||||
u->BRR = STM32_PCLK2 / uartp->config->speed;
|
u->BRR = STM32_PCLK2 / uartp->config->speed;
|
||||||
else
|
else
|
||||||
u->BRR = STM32_PCLK1 / uartp->config->speed;
|
u->BRR = STM32_PCLK1 / uartp->config->speed;
|
||||||
|
|
Loading…
Reference in New Issue