Skip to content

Commit 0537a3c

Browse files
dlechdpgeorge
authored andcommitted
F4_HAL/uart: Fix clock for UART9/10.
1 parent 02ac26d commit 0537a3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usart.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,13 +357,13 @@ ErrorStatus LL_USART_Init(USART_TypeDef *USARTx, LL_USART_InitTypeDef *USART_Ini
357357
#if defined(UART9)
358358
else if (USARTx == UART9)
359359
{
360-
periphclk = rcc_clocks.PCLK1_Frequency;
360+
periphclk = rcc_clocks.PCLK2_Frequency;
361361
}
362362
#endif /* UART9 */
363363
#if defined(UART10)
364364
else if (USARTx == UART10)
365365
{
366-
periphclk = rcc_clocks.PCLK1_Frequency;
366+
periphclk = rcc_clocks.PCLK2_Frequency;
367367
}
368368
#endif /* UART10 */
369369
else

0 commit comments

Comments
 (0)