STM32L486xx HAL User Manual
Defines
Peripheral USART clock source selection
RCC Exported Constants

Defines

#define LL_RCC_USART1_CLKSOURCE_PCLK2   (RCC_CCIPR_USART1SEL << 16U)
#define LL_RCC_USART1_CLKSOURCE_SYSCLK   ((RCC_CCIPR_USART1SEL << 16U) | RCC_CCIPR_USART1SEL_0)
#define LL_RCC_USART1_CLKSOURCE_HSI   ((RCC_CCIPR_USART1SEL << 16U) | RCC_CCIPR_USART1SEL_1)
#define LL_RCC_USART1_CLKSOURCE_LSE   ((RCC_CCIPR_USART1SEL << 16U) | RCC_CCIPR_USART1SEL)
#define LL_RCC_USART2_CLKSOURCE_PCLK1   (RCC_CCIPR_USART2SEL << 16U)
#define LL_RCC_USART2_CLKSOURCE_SYSCLK   ((RCC_CCIPR_USART2SEL << 16U) | RCC_CCIPR_USART2SEL_0)
#define LL_RCC_USART2_CLKSOURCE_HSI   ((RCC_CCIPR_USART2SEL << 16U) | RCC_CCIPR_USART2SEL_1)
#define LL_RCC_USART2_CLKSOURCE_LSE   ((RCC_CCIPR_USART2SEL << 16U) | RCC_CCIPR_USART2SEL)
#define LL_RCC_USART3_CLKSOURCE_PCLK1   (RCC_CCIPR_USART3SEL << 16U)
#define LL_RCC_USART3_CLKSOURCE_SYSCLK   ((RCC_CCIPR_USART3SEL << 16U) | RCC_CCIPR_USART3SEL_0)
#define LL_RCC_USART3_CLKSOURCE_HSI   ((RCC_CCIPR_USART3SEL << 16U) | RCC_CCIPR_USART3SEL_1)
#define LL_RCC_USART3_CLKSOURCE_LSE   ((RCC_CCIPR_USART3SEL << 16U) | RCC_CCIPR_USART3SEL)

Define Documentation

#define LL_RCC_USART1_CLKSOURCE_HSI   ((RCC_CCIPR_USART1SEL << 16U) | RCC_CCIPR_USART1SEL_1)

HSI clock used as USART1 clock source

Definition at line 411 of file stm32l4xx_ll_rcc.h.

Referenced by LL_RCC_GetUSARTClockFreq().

#define LL_RCC_USART1_CLKSOURCE_LSE   ((RCC_CCIPR_USART1SEL << 16U) | RCC_CCIPR_USART1SEL)

LSE clock used as USART1 clock source

Definition at line 412 of file stm32l4xx_ll_rcc.h.

Referenced by LL_RCC_GetUSARTClockFreq().

#define LL_RCC_USART1_CLKSOURCE_PCLK2   (RCC_CCIPR_USART1SEL << 16U)

PCLK2 clock used as USART1 clock source

Definition at line 409 of file stm32l4xx_ll_rcc.h.

Referenced by LL_RCC_GetUSARTClockFreq().

#define LL_RCC_USART1_CLKSOURCE_SYSCLK   ((RCC_CCIPR_USART1SEL << 16U) | RCC_CCIPR_USART1SEL_0)

SYSCLK clock used as USART1 clock source

Definition at line 410 of file stm32l4xx_ll_rcc.h.

Referenced by LL_RCC_GetUSARTClockFreq().

#define LL_RCC_USART2_CLKSOURCE_HSI   ((RCC_CCIPR_USART2SEL << 16U) | RCC_CCIPR_USART2SEL_1)

HSI clock used as USART2 clock source

Definition at line 415 of file stm32l4xx_ll_rcc.h.

Referenced by LL_RCC_GetUSARTClockFreq().

#define LL_RCC_USART2_CLKSOURCE_LSE   ((RCC_CCIPR_USART2SEL << 16U) | RCC_CCIPR_USART2SEL)

LSE clock used as USART2 clock source

Definition at line 416 of file stm32l4xx_ll_rcc.h.

Referenced by LL_RCC_GetUSARTClockFreq().

#define LL_RCC_USART2_CLKSOURCE_PCLK1   (RCC_CCIPR_USART2SEL << 16U)

PCLK1 clock used as USART2 clock source

Definition at line 413 of file stm32l4xx_ll_rcc.h.

Referenced by LL_RCC_GetUSARTClockFreq().

#define LL_RCC_USART2_CLKSOURCE_SYSCLK   ((RCC_CCIPR_USART2SEL << 16U) | RCC_CCIPR_USART2SEL_0)

SYSCLK clock used as USART2 clock source

Definition at line 414 of file stm32l4xx_ll_rcc.h.

Referenced by LL_RCC_GetUSARTClockFreq().

#define LL_RCC_USART3_CLKSOURCE_HSI   ((RCC_CCIPR_USART3SEL << 16U) | RCC_CCIPR_USART3SEL_1)

HSI clock used as USART3 clock source

Definition at line 420 of file stm32l4xx_ll_rcc.h.

Referenced by LL_RCC_GetUSARTClockFreq().

#define LL_RCC_USART3_CLKSOURCE_LSE   ((RCC_CCIPR_USART3SEL << 16U) | RCC_CCIPR_USART3SEL)

LSE clock used as USART3 clock source

Definition at line 421 of file stm32l4xx_ll_rcc.h.

Referenced by LL_RCC_GetUSARTClockFreq().

#define LL_RCC_USART3_CLKSOURCE_PCLK1   (RCC_CCIPR_USART3SEL << 16U)

PCLK1 clock used as USART3 clock source

Definition at line 418 of file stm32l4xx_ll_rcc.h.

Referenced by LL_RCC_GetUSARTClockFreq().

#define LL_RCC_USART3_CLKSOURCE_SYSCLK   ((RCC_CCIPR_USART3SEL << 16U) | RCC_CCIPR_USART3SEL_0)

SYSCLK clock used as USART3 clock source

Definition at line 419 of file stm32l4xx_ll_rcc.h.

Referenced by LL_RCC_GetUSARTClockFreq().