Browse Source

F4_HAL/uart: Fix clock for UART9/10.

work-f1-1.10.2
David Lechner 3 years ago
committed by Damien George
parent
commit
302c52794d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usart.c

+ 2
- 2
STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usart.c View File

@@ -357,13 +357,13 @@ ErrorStatus LL_USART_Init(USART_TypeDef *USARTx, LL_USART_InitTypeDef *USART_Ini
#if defined(UART9)
else if (USARTx == UART9)
{
periphclk = rcc_clocks.PCLK1_Frequency;
periphclk = rcc_clocks.PCLK2_Frequency;
}
#endif /* UART9 */
#if defined(UART10)
else if (USARTx == UART10)
{
periphclk = rcc_clocks.PCLK1_Frequency;
periphclk = rcc_clocks.PCLK2_Frequency;
}
#endif /* UART10 */
else


Loading…
Cancel
Save