STM32L443xx HAL User Manual
Modules | Defines
RCCEx Exported Macros
RCCEx

Modules

 Flags Interrupts Management
 

macros to manage the specified RCC Flags and interrupts.


 RCCEx CRS Extended Features

Defines

#define __HAL_RCC_PLLSAI1_CONFIG(__PLLSAI1N__, __PLLSAI1P__, __PLLSAI1Q__, __PLLSAI1R__)
 Macro to configure the PLLSAI1 clock multiplication and division factors.
#define __HAL_RCC_PLLSAI1_MULN_CONFIG(__PLLSAI1N__)   MODIFY_REG(RCC->PLLSAI1CFGR, RCC_PLLSAI1CFGR_PLLSAI1N, (__PLLSAI1N__) << RCC_PLLSAI1CFGR_PLLSAI1N_Pos)
 Macro to configure the PLLSAI1 clock multiplication factor N.
#define __HAL_RCC_PLLSAI1_DIVP_CONFIG(__PLLSAI1P__)   MODIFY_REG(RCC->PLLSAI1CFGR, RCC_PLLSAI1CFGR_PLLSAI1PDIV, (__PLLSAI1P__) << RCC_PLLSAI1CFGR_PLLSAI1PDIV_Pos)
 Macro to configure the PLLSAI1 clock division factor P.
#define __HAL_RCC_PLLSAI1_DIVQ_CONFIG(__PLLSAI1Q__)   MODIFY_REG(RCC->PLLSAI1CFGR, RCC_PLLSAI1CFGR_PLLSAI1Q, (((__PLLSAI1Q__) >> 1U) - 1U) << RCC_PLLSAI1CFGR_PLLSAI1Q_Pos)
 Macro to configure the PLLSAI1 clock division factor Q.
#define __HAL_RCC_PLLSAI1_DIVR_CONFIG(__PLLSAI1R__)   MODIFY_REG(RCC->PLLSAI1CFGR, RCC_PLLSAI1CFGR_PLLSAI1R, (((__PLLSAI1R__) >> 1U) - 1U) << RCC_PLLSAI1CFGR_PLLSAI1R_Pos)
 Macro to configure the PLLSAI1 clock division factor R.
#define __HAL_RCC_PLLSAI1_ENABLE()   SET_BIT(RCC->CR, RCC_CR_PLLSAI1ON)
 Macros to enable or disable the PLLSAI1.
#define __HAL_RCC_PLLSAI1_DISABLE()   CLEAR_BIT(RCC->CR, RCC_CR_PLLSAI1ON)
#define __HAL_RCC_PLLSAI1CLKOUT_ENABLE(__PLLSAI1_CLOCKOUT__)   SET_BIT(RCC->PLLSAI1CFGR, (__PLLSAI1_CLOCKOUT__))
 Macros to enable or disable each clock output (PLLSAI1_SAI1, PLLSAI1_USB2 and PLLSAI1_ADC1).
#define __HAL_RCC_PLLSAI1CLKOUT_DISABLE(__PLLSAI1_CLOCKOUT__)   CLEAR_BIT(RCC->PLLSAI1CFGR, (__PLLSAI1_CLOCKOUT__))
#define __HAL_RCC_GET_PLLSAI1CLKOUT_CONFIG(__PLLSAI1_CLOCKOUT__)   READ_BIT(RCC->PLLSAI1CFGR, (__PLLSAI1_CLOCKOUT__))
 Macro to get clock output enable status (PLLSAI1_SAI1, PLLSAI1_USB2 and PLLSAI1_ADC1).
#define __HAL_RCC_SAI1_CONFIG(__SAI1_CLKSOURCE__)   MODIFY_REG(RCC->CCIPR, RCC_CCIPR_SAI1SEL, (__SAI1_CLKSOURCE__))
 Macro to configure the SAI1 clock source.
#define __HAL_RCC_GET_SAI1_SOURCE()   (READ_BIT(RCC->CCIPR, RCC_CCIPR_SAI1SEL))
 Macro to get the SAI1 clock source.
#define __HAL_RCC_I2C1_CONFIG(__I2C1_CLKSOURCE__)   MODIFY_REG(RCC->CCIPR, RCC_CCIPR_I2C1SEL, (__I2C1_CLKSOURCE__))
 Macro to configure the I2C1 clock (I2C1CLK).
#define __HAL_RCC_GET_I2C1_SOURCE()   (READ_BIT(RCC->CCIPR, RCC_CCIPR_I2C1SEL))
 Macro to get the I2C1 clock source.
#define __HAL_RCC_I2C2_CONFIG(__I2C2_CLKSOURCE__)   MODIFY_REG(RCC->CCIPR, RCC_CCIPR_I2C2SEL, (__I2C2_CLKSOURCE__))
 Macro to configure the I2C2 clock (I2C2CLK).
#define __HAL_RCC_GET_I2C2_SOURCE()   (READ_BIT(RCC->CCIPR, RCC_CCIPR_I2C2SEL))
 Macro to get the I2C2 clock source.
#define __HAL_RCC_I2C3_CONFIG(__I2C3_CLKSOURCE__)   MODIFY_REG(RCC->CCIPR, RCC_CCIPR_I2C3SEL, (__I2C3_CLKSOURCE__))
 Macro to configure the I2C3 clock (I2C3CLK).
#define __HAL_RCC_GET_I2C3_SOURCE()   (READ_BIT(RCC->CCIPR, RCC_CCIPR_I2C3SEL))
 Macro to get the I2C3 clock source.
#define __HAL_RCC_USART1_CONFIG(__USART1_CLKSOURCE__)   MODIFY_REG(RCC->CCIPR, RCC_CCIPR_USART1SEL, (__USART1_CLKSOURCE__))
 Macro to configure the USART1 clock (USART1CLK).
#define __HAL_RCC_GET_USART1_SOURCE()   (READ_BIT(RCC->CCIPR, RCC_CCIPR_USART1SEL))
 Macro to get the USART1 clock source.
#define __HAL_RCC_USART2_CONFIG(__USART2_CLKSOURCE__)   MODIFY_REG(RCC->CCIPR, RCC_CCIPR_USART2SEL, (__USART2_CLKSOURCE__))
 Macro to configure the USART2 clock (USART2CLK).
#define __HAL_RCC_GET_USART2_SOURCE()   (READ_BIT(RCC->CCIPR, RCC_CCIPR_USART2SEL))
 Macro to get the USART2 clock source.
#define __HAL_RCC_USART3_CONFIG(__USART3_CLKSOURCE__)   MODIFY_REG(RCC->CCIPR, RCC_CCIPR_USART3SEL, (__USART3_CLKSOURCE__))
 Macro to configure the USART3 clock (USART3CLK).
#define __HAL_RCC_GET_USART3_SOURCE()   (READ_BIT(RCC->CCIPR, RCC_CCIPR_USART3SEL))
 Macro to get the USART3 clock source.
#define __HAL_RCC_LPUART1_CONFIG(__LPUART1_CLKSOURCE__)   MODIFY_REG(RCC->CCIPR, RCC_CCIPR_LPUART1SEL, (__LPUART1_CLKSOURCE__))
 Macro to configure the LPUART1 clock (LPUART1CLK).
#define __HAL_RCC_GET_LPUART1_SOURCE()   (READ_BIT(RCC->CCIPR, RCC_CCIPR_LPUART1SEL))
 Macro to get the LPUART1 clock source.
#define __HAL_RCC_LPTIM1_CONFIG(__LPTIM1_CLKSOURCE__)   MODIFY_REG(RCC->CCIPR, RCC_CCIPR_LPTIM1SEL, (__LPTIM1_CLKSOURCE__))
 Macro to configure the LPTIM1 clock (LPTIM1CLK).
#define __HAL_RCC_GET_LPTIM1_SOURCE()   (READ_BIT(RCC->CCIPR, RCC_CCIPR_LPTIM1SEL))
 Macro to get the LPTIM1 clock source.
#define __HAL_RCC_LPTIM2_CONFIG(__LPTIM2_CLKSOURCE__)   MODIFY_REG(RCC->CCIPR, RCC_CCIPR_LPTIM2SEL, (__LPTIM2_CLKSOURCE__))
 Macro to configure the LPTIM2 clock (LPTIM2CLK).
#define __HAL_RCC_GET_LPTIM2_SOURCE()   (READ_BIT(RCC->CCIPR, RCC_CCIPR_LPTIM2SEL))
 Macro to get the LPTIM2 clock source.
#define __HAL_RCC_SDMMC1_CONFIG(__SDMMC1_CLKSOURCE__)   MODIFY_REG(RCC->CCIPR, RCC_CCIPR_CLK48SEL, (__SDMMC1_CLKSOURCE__))
 Macro to configure the SDMMC1 clock.
#define __HAL_RCC_GET_SDMMC1_SOURCE()   (READ_BIT(RCC->CCIPR, RCC_CCIPR_CLK48SEL))
 Macro to get the SDMMC1 clock.
#define __HAL_RCC_RNG_CONFIG(__RNG_CLKSOURCE__)   MODIFY_REG(RCC->CCIPR, RCC_CCIPR_CLK48SEL, (__RNG_CLKSOURCE__))
 Macro to configure the RNG clock.
#define __HAL_RCC_GET_RNG_SOURCE()   (READ_BIT(RCC->CCIPR, RCC_CCIPR_CLK48SEL))
 Macro to get the RNG clock.
#define __HAL_RCC_USB_CONFIG(__USB_CLKSOURCE__)   MODIFY_REG(RCC->CCIPR, RCC_CCIPR_CLK48SEL, (__USB_CLKSOURCE__))
 Macro to configure the USB clock (USBCLK).
#define __HAL_RCC_GET_USB_SOURCE()   (READ_BIT(RCC->CCIPR, RCC_CCIPR_CLK48SEL))
 Macro to get the USB clock source.
#define __HAL_RCC_ADC_CONFIG(__ADC_CLKSOURCE__)   MODIFY_REG(RCC->CCIPR, RCC_CCIPR_ADCSEL, (__ADC_CLKSOURCE__))
 Macro to configure the ADC interface clock.
#define __HAL_RCC_GET_ADC_SOURCE()   (READ_BIT(RCC->CCIPR, RCC_CCIPR_ADCSEL))
 Macro to get the ADC clock source.
#define __HAL_RCC_SWPMI1_CONFIG(__SWPMI1_CLKSOURCE__)   MODIFY_REG(RCC->CCIPR, RCC_CCIPR_SWPMI1SEL, (__SWPMI1_CLKSOURCE__))
 Macro to configure the SWPMI1 clock.
#define __HAL_RCC_GET_SWPMI1_SOURCE()   (READ_BIT(RCC->CCIPR, RCC_CCIPR_SWPMI1SEL))
 Macro to get the SWPMI1 clock source.

Define Documentation

#define __HAL_RCC_ADC_CONFIG (   __ADC_CLKSOURCE__)    MODIFY_REG(RCC->CCIPR, RCC_CCIPR_ADCSEL, (__ADC_CLKSOURCE__))

Macro to configure the ADC interface clock.

Parameters:
__ADC_CLKSOURCE__specifies the ADC digital interface clock source. This parameter can be one of the following values:
Return values:
None

Definition at line 1899 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_PeriphCLKConfig().

#define __HAL_RCC_GET_ADC_SOURCE ( )    (READ_BIT(RCC->CCIPR, RCC_CCIPR_ADCSEL))

Macro to get the ADC clock source.

Return values:
Theclock source can be one of the following values:

Definition at line 1911 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_GetPeriphCLKConfig(), and HAL_RCCEx_GetPeriphCLKFreq().

#define __HAL_RCC_GET_I2C1_SOURCE ( )    (READ_BIT(RCC->CCIPR, RCC_CCIPR_I2C1SEL))

Macro to get the I2C1 clock source.

Return values:
Theclock source can be one of the following values:

Definition at line 1473 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_GetPeriphCLKConfig(), and HAL_RCCEx_GetPeriphCLKFreq().

#define __HAL_RCC_GET_I2C2_SOURCE ( )    (READ_BIT(RCC->CCIPR, RCC_CCIPR_I2C2SEL))

Macro to get the I2C2 clock source.

Return values:
Theclock source can be one of the following values:

Definition at line 1495 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_GetPeriphCLKConfig(), and HAL_RCCEx_GetPeriphCLKFreq().

#define __HAL_RCC_GET_I2C3_SOURCE ( )    (READ_BIT(RCC->CCIPR, RCC_CCIPR_I2C3SEL))

Macro to get the I2C3 clock source.

Return values:
Theclock source can be one of the following values:

Definition at line 1517 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_GetPeriphCLKConfig(), and HAL_RCCEx_GetPeriphCLKFreq().

#define __HAL_RCC_GET_LPTIM1_SOURCE ( )    (READ_BIT(RCC->CCIPR, RCC_CCIPR_LPTIM1SEL))

Macro to get the LPTIM1 clock source.

Return values:
Theclock source can be one of the following values:

Definition at line 1708 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_GetPeriphCLKConfig(), HAL_RCCEx_GetPeriphCLKFreq(), and LPTIM_Disable().

#define __HAL_RCC_GET_LPTIM2_SOURCE ( )    (READ_BIT(RCC->CCIPR, RCC_CCIPR_LPTIM2SEL))

Macro to get the LPTIM2 clock source.

Return values:
Theclock source can be one of the following values:

Definition at line 1730 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_GetPeriphCLKConfig(), HAL_RCCEx_GetPeriphCLKFreq(), and LPTIM_Disable().

#define __HAL_RCC_GET_LPUART1_SOURCE ( )    (READ_BIT(RCC->CCIPR, RCC_CCIPR_LPUART1SEL))

Macro to get the LPUART1 clock source.

Return values:
Theclock source can be one of the following values:

Definition at line 1686 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_GetPeriphCLKConfig(), and HAL_RCCEx_GetPeriphCLKFreq().

#define __HAL_RCC_GET_PLLSAI1CLKOUT_CONFIG (   __PLLSAI1_CLOCKOUT__)    READ_BIT(RCC->PLLSAI1CFGR, (__PLLSAI1_CLOCKOUT__))

Macro to get clock output enable status (PLLSAI1_SAI1, PLLSAI1_USB2 and PLLSAI1_ADC1).

Parameters:
__PLLSAI1_CLOCKOUT__specifies the PLLSAI1 clock to be output. This parameter can be one of the following values:
  • RCC_PLLSAI1_SAI1CLK This clock is used to generate an accurate clock to achieve high-quality audio performance on SAI interface in case.
  • RCC_PLLSAI1_48M2CLK This clock is used to generate the clock for the USB OTG FS (48 MHz), the random number generator (<=48 MHz) and the SDIO (<= 48 MHz).
  • RCC_PLLSAI1_ADC1CLK Clock used to clock ADC peripheral.
Return values:
SET/ RESET

Definition at line 1098 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_GetPeriphCLKFreq(), and RCCEx_GetSAIxPeriphCLKFreq().

#define __HAL_RCC_GET_RNG_SOURCE ( )    (READ_BIT(RCC->CCIPR, RCC_CCIPR_CLK48SEL))

Macro to get the RNG clock.

Return values:
Theclock source can be one of the following values:

Definition at line 1846 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_GetPeriphCLKConfig().

#define __HAL_RCC_GET_SAI1_SOURCE ( )    (READ_BIT(RCC->CCIPR, RCC_CCIPR_SAI1SEL))

Macro to get the SAI1 clock source.

Return values:
Theclock source can be one of the following values:
Note:
Despite returned values RCC_SAI1CLKSOURCE_PLLSAI1 or RCC_SAI1CLKSOURCE_PLL, HSI16 is automatically set as SAI1 clock source when PLLs are disabled for devices without PLLSAI2.

Definition at line 1410 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_GetPeriphCLKConfig(), and RCCEx_GetSAIxPeriphCLKFreq().

#define __HAL_RCC_GET_SDMMC1_SOURCE ( )    (READ_BIT(RCC->CCIPR, RCC_CCIPR_CLK48SEL))

Macro to get the SDMMC1 clock.

Return values:
Theclock source can be one of the following values:

Definition at line 1808 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_GetPeriphCLKConfig().

#define __HAL_RCC_GET_SWPMI1_SOURCE ( )    (READ_BIT(RCC->CCIPR, RCC_CCIPR_SWPMI1SEL))

Macro to get the SWPMI1 clock source.

Return values:
Theclock source can be one of the following values:

Definition at line 1940 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_GetPeriphCLKConfig(), and HAL_RCCEx_GetPeriphCLKFreq().

#define __HAL_RCC_GET_USART1_SOURCE ( )    (READ_BIT(RCC->CCIPR, RCC_CCIPR_USART1SEL))

Macro to get the USART1 clock source.

Return values:
Theclock source can be one of the following values:

Definition at line 1564 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_GetPeriphCLKConfig(), and HAL_RCCEx_GetPeriphCLKFreq().

#define __HAL_RCC_GET_USART2_SOURCE ( )    (READ_BIT(RCC->CCIPR, RCC_CCIPR_USART2SEL))

Macro to get the USART2 clock source.

Return values:
Theclock source can be one of the following values:

Definition at line 1586 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_GetPeriphCLKConfig(), and HAL_RCCEx_GetPeriphCLKFreq().

#define __HAL_RCC_GET_USART3_SOURCE ( )    (READ_BIT(RCC->CCIPR, RCC_CCIPR_USART3SEL))

Macro to get the USART3 clock source.

Return values:
Theclock source can be one of the following values:

Definition at line 1610 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_GetPeriphCLKConfig(), and HAL_RCCEx_GetPeriphCLKFreq().

#define __HAL_RCC_GET_USB_SOURCE ( )    (READ_BIT(RCC->CCIPR, RCC_CCIPR_CLK48SEL))

Macro to get the USB clock source.

Return values:
Theclock source can be one of the following values:

Definition at line 1882 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_GetPeriphCLKConfig().

#define __HAL_RCC_I2C1_CONFIG (   __I2C1_CLKSOURCE__)    MODIFY_REG(RCC->CCIPR, RCC_CCIPR_I2C1SEL, (__I2C1_CLKSOURCE__))

Macro to configure the I2C1 clock (I2C1CLK).

Parameters:
__I2C1_CLKSOURCE__specifies the I2C1 clock source. This parameter can be one of the following values:
Return values:
None

Definition at line 1464 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_PeriphCLKConfig().

#define __HAL_RCC_I2C2_CONFIG (   __I2C2_CLKSOURCE__)    MODIFY_REG(RCC->CCIPR, RCC_CCIPR_I2C2SEL, (__I2C2_CLKSOURCE__))

Macro to configure the I2C2 clock (I2C2CLK).

Parameters:
__I2C2_CLKSOURCE__specifies the I2C2 clock source. This parameter can be one of the following values:
Return values:
None

Definition at line 1486 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_PeriphCLKConfig().

#define __HAL_RCC_I2C3_CONFIG (   __I2C3_CLKSOURCE__)    MODIFY_REG(RCC->CCIPR, RCC_CCIPR_I2C3SEL, (__I2C3_CLKSOURCE__))

Macro to configure the I2C3 clock (I2C3CLK).

Parameters:
__I2C3_CLKSOURCE__specifies the I2C3 clock source. This parameter can be one of the following values:
Return values:
None

Definition at line 1508 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_PeriphCLKConfig().

#define __HAL_RCC_LPTIM1_CONFIG (   __LPTIM1_CLKSOURCE__)    MODIFY_REG(RCC->CCIPR, RCC_CCIPR_LPTIM1SEL, (__LPTIM1_CLKSOURCE__))

Macro to configure the LPTIM1 clock (LPTIM1CLK).

Parameters:
__LPTIM1_CLKSOURCE__specifies the LPTIM1 clock source. This parameter can be one of the following values:
Return values:
None

Definition at line 1698 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_PeriphCLKConfig(), and LPTIM_Disable().

#define __HAL_RCC_LPTIM2_CONFIG (   __LPTIM2_CLKSOURCE__)    MODIFY_REG(RCC->CCIPR, RCC_CCIPR_LPTIM2SEL, (__LPTIM2_CLKSOURCE__))

Macro to configure the LPTIM2 clock (LPTIM2CLK).

Parameters:
__LPTIM2_CLKSOURCE__specifies the LPTIM2 clock source. This parameter can be one of the following values:
Return values:
None

Definition at line 1720 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_PeriphCLKConfig(), and LPTIM_Disable().

#define __HAL_RCC_LPUART1_CONFIG (   __LPUART1_CLKSOURCE__)    MODIFY_REG(RCC->CCIPR, RCC_CCIPR_LPUART1SEL, (__LPUART1_CLKSOURCE__))

Macro to configure the LPUART1 clock (LPUART1CLK).

Parameters:
__LPUART1_CLKSOURCE__specifies the LPUART1 clock source. This parameter can be one of the following values:
Return values:
None

Definition at line 1676 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_PeriphCLKConfig().

#define __HAL_RCC_PLLSAI1_CONFIG (   __PLLSAI1N__,
  __PLLSAI1P__,
  __PLLSAI1Q__,
  __PLLSAI1R__ 
)
Value:
MODIFY_REG(RCC->PLLSAI1CFGR, \
                             (RCC_PLLSAI1CFGR_PLLSAI1N | RCC_PLLSAI1CFGR_PLLSAI1P | \
                              RCC_PLLSAI1CFGR_PLLSAI1Q | RCC_PLLSAI1CFGR_PLLSAI1R | RCC_PLLSAI1CFGR_PLLSAI1PDIV), \
                             (((__PLLSAI1N__) << RCC_PLLSAI1CFGR_PLLSAI1N_Pos) | \
                              ((((__PLLSAI1Q__) >> 1U) - 1U) << RCC_PLLSAI1CFGR_PLLSAI1Q_Pos) | \
                              ((((__PLLSAI1R__) >> 1U) - 1U) << RCC_PLLSAI1CFGR_PLLSAI1R_Pos) | \
                              ((uint32_t)(__PLLSAI1P__) << RCC_PLLSAI1CFGR_PLLSAI1PDIV_Pos)))

Macro to configure the PLLSAI1 clock multiplication and division factors.

Note:
This function must be used only when the PLLSAI1 is disabled.
PLLSAI1 clock source is common with the main PLL (configured through __HAL_RCC_PLL_CONFIG() macro)
Parameters:
__PLLSAI1N__specifies the multiplication factor for PLLSAI1 VCO output clock. This parameter must be a number between 8 and 86 or 127 depending on devices.
Note:
You have to set the PLLSAI1N parameter correctly to ensure that the VCO output frequency is between 64 and 344 MHz. PLLSAI1 clock frequency = f(PLLSAI1) multiplied by PLLSAI1N
Parameters:
__PLLSAI1P__specifies the division factor for SAI clock. This parameter must be a number in the range (7 or 17) for STM32L47xxx/L48xxx else (2 to 31). SAI1 clock frequency = f(PLLSAI1) / PLLSAI1P
__PLLSAI1Q__specifies the division factor for USB/RNG/SDMMC1 clock. This parameter must be in the range (2, 4, 6 or 8). USB/RNG/SDMMC1 clock frequency = f(PLLSAI1) / PLLSAI1Q
__PLLSAI1R__specifies the division factor for SAR ADC clock. This parameter must be in the range (2, 4, 6 or 8). ADC clock frequency = f(PLLSAI1) / PLLSAI1R
Return values:
None

Definition at line 943 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_EnablePLLSAI1().

#define __HAL_RCC_PLLSAI1_DISABLE ( )    CLEAR_BIT(RCC->CR, RCC_CR_PLLSAI1ON)
#define __HAL_RCC_PLLSAI1_DIVP_CONFIG (   __PLLSAI1P__)    MODIFY_REG(RCC->PLLSAI1CFGR, RCC_PLLSAI1CFGR_PLLSAI1PDIV, (__PLLSAI1P__) << RCC_PLLSAI1CFGR_PLLSAI1PDIV_Pos)

Macro to configure the PLLSAI1 clock division factor P.

Note:
This function must be used only when the PLLSAI1 is disabled.
PLLSAI1 clock source is common with the main PLL (configured through __HAL_RCC_PLL_CONFIG() macro)
Parameters:
__PLLSAI1P__specifies the division factor for SAI clock. This parameter must be a number in the range (7 or 17) for STM32L47xxx/L48xxx else (2 to 31). Use to set SAI1 clock frequency = f(PLLSAI1) / PLLSAI1P
Return values:
None

Definition at line 1019 of file stm32l4xx_hal_rcc_ex.h.

#define __HAL_RCC_PLLSAI1_DIVQ_CONFIG (   __PLLSAI1Q__)    MODIFY_REG(RCC->PLLSAI1CFGR, RCC_PLLSAI1CFGR_PLLSAI1Q, (((__PLLSAI1Q__) >> 1U) - 1U) << RCC_PLLSAI1CFGR_PLLSAI1Q_Pos)

Macro to configure the PLLSAI1 clock division factor Q.

Note:
This function must be used only when the PLLSAI1 is disabled.
PLLSAI1 clock source is common with the main PLL (configured through __HAL_RCC_PLL_CONFIG() macro)
Parameters:
__PLLSAI1Q__specifies the division factor for USB/RNG/SDMMC1 clock. This parameter must be in the range (2, 4, 6 or 8). Use to set USB/RNG/SDMMC1 clock frequency = f(PLLSAI1) / PLLSAI1Q
Return values:
None

Definition at line 1041 of file stm32l4xx_hal_rcc_ex.h.

#define __HAL_RCC_PLLSAI1_DIVR_CONFIG (   __PLLSAI1R__)    MODIFY_REG(RCC->PLLSAI1CFGR, RCC_PLLSAI1CFGR_PLLSAI1R, (((__PLLSAI1R__) >> 1U) - 1U) << RCC_PLLSAI1CFGR_PLLSAI1R_Pos)

Macro to configure the PLLSAI1 clock division factor R.

Note:
This function must be used only when the PLLSAI1 is disabled.
PLLSAI1 clock source is common with the main PLL (configured through __HAL_RCC_PLL_CONFIG() macro)
Parameters:
__PLLSAI1R__specifies the division factor for ADC clock. This parameter must be in the range (2, 4, 6 or 8) Use to set ADC clock frequency = f(PLLSAI1) / PLLSAI1R
Return values:
None

Definition at line 1056 of file stm32l4xx_hal_rcc_ex.h.

#define __HAL_RCC_PLLSAI1_ENABLE ( )    SET_BIT(RCC->CR, RCC_CR_PLLSAI1ON)

Macros to enable or disable the PLLSAI1.

Note:
The PLLSAI1 is disabled by hardware when entering STOP and STANDBY modes.
Return values:
None

Definition at line 1065 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_EnablePLLSAI1(), and RCCEx_PLLSAI1_Config().

#define __HAL_RCC_PLLSAI1_MULN_CONFIG (   __PLLSAI1N__)    MODIFY_REG(RCC->PLLSAI1CFGR, RCC_PLLSAI1CFGR_PLLSAI1N, (__PLLSAI1N__) << RCC_PLLSAI1CFGR_PLLSAI1N_Pos)

Macro to configure the PLLSAI1 clock multiplication factor N.

Note:
This function must be used only when the PLLSAI1 is disabled.
PLLSAI1 clock source is common with the main PLL (configured through __HAL_RCC_PLL_CONFIG() macro)
Parameters:
__PLLSAI1N__specifies the multiplication factor for PLLSAI1 VCO output clock. This parameter must be a number between 8 and 86 or 127 depending on devices.
Note:
You have to set the PLLSAI1N parameter correctly to ensure that the VCO output frequency is between 64 and 344 MHz. Use to set PLLSAI1 clock frequency = f(PLLSAI1) multiplied by PLLSAI1N
Return values:
None

Definition at line 982 of file stm32l4xx_hal_rcc_ex.h.

#define __HAL_RCC_PLLSAI1CLKOUT_DISABLE (   __PLLSAI1_CLOCKOUT__)    CLEAR_BIT(RCC->PLLSAI1CFGR, (__PLLSAI1_CLOCKOUT__))

Definition at line 1085 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_DisablePLLSAI1().

#define __HAL_RCC_PLLSAI1CLKOUT_ENABLE (   __PLLSAI1_CLOCKOUT__)    SET_BIT(RCC->PLLSAI1CFGR, (__PLLSAI1_CLOCKOUT__))

Macros to enable or disable each clock output (PLLSAI1_SAI1, PLLSAI1_USB2 and PLLSAI1_ADC1).

Note:
Enabling and disabling those clocks can be done without the need to stop the PLL. This is mainly used to save Power.
Parameters:
__PLLSAI1_CLOCKOUT__specifies the PLLSAI1 clock to be output. This parameter can be one or a combination of the following values:
  • RCC_PLLSAI1_SAI1CLK This clock is used to generate an accurate clock to achieve high-quality audio performance on SAI interface in case.
  • RCC_PLLSAI1_48M2CLK This clock is used to generate the clock for the USB OTG FS (48 MHz), the random number generator (<=48 MHz) and the SDIO (<= 48 MHz).
  • RCC_PLLSAI1_ADC1CLK Clock used to clock ADC peripheral.
Return values:
None

Definition at line 1083 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_EnablePLLSAI1(), and RCCEx_PLLSAI1_Config().

#define __HAL_RCC_RNG_CONFIG (   __RNG_CLKSOURCE__)    MODIFY_REG(RCC->CCIPR, RCC_CCIPR_CLK48SEL, (__RNG_CLKSOURCE__))

Macro to configure the RNG clock.

Note:
USB, RNG and SDMMC1 peripherals share the same 48MHz clock source.
Parameters:
__RNG_CLKSOURCE__specifies the RNG clock source. This parameter can be one of the following values:
Return values:
None

Definition at line 1831 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_PeriphCLKConfig().

#define __HAL_RCC_SAI1_CONFIG (   __SAI1_CLKSOURCE__)    MODIFY_REG(RCC->CCIPR, RCC_CCIPR_SAI1SEL, (__SAI1_CLKSOURCE__))

Macro to configure the SAI1 clock source.

Parameters:
__SAI1_CLKSOURCE__defines the SAI1 clock source. This clock is derived from the PLLSAI1, system PLL or external clock (through a dedicated pin). This parameter can be one of the following values:
Note:
HSI16 is automatically set as SAI1 clock source when PLL are disabled for devices without PLLSAI2.
Return values:
None

Definition at line 1390 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_PeriphCLKConfig().

#define __HAL_RCC_SDMMC1_CONFIG (   __SDMMC1_CLKSOURCE__)    MODIFY_REG(RCC->CCIPR, RCC_CCIPR_CLK48SEL, (__SDMMC1_CLKSOURCE__))

Macro to configure the SDMMC1 clock.

Note:
USB, RNG and SDMMC1 peripherals share the same 48MHz clock source.
Parameters:
__SDMMC1_CLKSOURCE__specifies the SDMMC1 clock source. This parameter can be one of the following values:
Return values:
None

Definition at line 1780 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_PeriphCLKConfig().

#define __HAL_RCC_SWPMI1_CONFIG (   __SWPMI1_CLKSOURCE__)    MODIFY_REG(RCC->CCIPR, RCC_CCIPR_SWPMI1SEL, (__SWPMI1_CLKSOURCE__))

Macro to configure the SWPMI1 clock.

Parameters:
__SWPMI1_CLKSOURCE__specifies the SWPMI1 clock source. This parameter can be one of the following values:
Return values:
None

Definition at line 1932 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_PeriphCLKConfig().

#define __HAL_RCC_USART1_CONFIG (   __USART1_CLKSOURCE__)    MODIFY_REG(RCC->CCIPR, RCC_CCIPR_USART1SEL, (__USART1_CLKSOURCE__))

Macro to configure the USART1 clock (USART1CLK).

Parameters:
__USART1_CLKSOURCE__specifies the USART1 clock source. This parameter can be one of the following values:
Return values:
None

Definition at line 1554 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_PeriphCLKConfig().

#define __HAL_RCC_USART2_CONFIG (   __USART2_CLKSOURCE__)    MODIFY_REG(RCC->CCIPR, RCC_CCIPR_USART2SEL, (__USART2_CLKSOURCE__))

Macro to configure the USART2 clock (USART2CLK).

Parameters:
__USART2_CLKSOURCE__specifies the USART2 clock source. This parameter can be one of the following values:
Return values:
None

Definition at line 1576 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_PeriphCLKConfig().

#define __HAL_RCC_USART3_CONFIG (   __USART3_CLKSOURCE__)    MODIFY_REG(RCC->CCIPR, RCC_CCIPR_USART3SEL, (__USART3_CLKSOURCE__))

Macro to configure the USART3 clock (USART3CLK).

Parameters:
__USART3_CLKSOURCE__specifies the USART3 clock source. This parameter can be one of the following values:
Return values:
None

Definition at line 1600 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_PeriphCLKConfig().

#define __HAL_RCC_USB_CONFIG (   __USB_CLKSOURCE__)    MODIFY_REG(RCC->CCIPR, RCC_CCIPR_CLK48SEL, (__USB_CLKSOURCE__))

Macro to configure the USB clock (USBCLK).

Note:
USB, RNG and SDMMC1 peripherals share the same 48MHz clock source.
Parameters:
__USB_CLKSOURCE__specifies the USB clock source. This parameter can be one of the following values:
Return values:
None

Definition at line 1867 of file stm32l4xx_hal_rcc_ex.h.

Referenced by HAL_RCCEx_PeriphCLKConfig().