STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
Collaboration diagram for PLL Configuration:

Macros

#define __HAL_RCC_PLL_ENABLE()
 Macros to enable or disable the main PLL.
 
#define __HAL_RCC_PLL_DISABLE()
 
#define __HAL_RCC_PLL_PLLSOURCE_CONFIG(__PLLSOURCE__)
 Macro to configure the PLL clock source.
 
#define __HAL_RCC_PLL_PLLM_CONFIG(__PLLM__)
 Macro to configure the PLL multiplication factor.
 

Detailed Description

Macro Definition Documentation

◆ __HAL_RCC_PLL_ENABLE

#define __HAL_RCC_PLL_ENABLE ( )

#include <stm32f4xx_hal_rcc.h>

Value:
(*(__IO uint32_t *) RCC_CR_PLLON_BB = ENABLE)
#define RCC_CR_PLLON_BB

Macros to enable or disable the main PLL.

Note
After enabling the main PLL, the application software should wait on PLLRDY flag to be set indicating that PLL clock is stable and can be used as system clock source.
The main PLL can not be disabled if it is used as system clock source
The main PLL is disabled by hardware when entering STOP and STANDBY modes.

Definition at line 1030 of file stm32f4xx_hal_rcc.h.

Referenced by HAL_PWREx_ControlVoltageScaling(), and HAL_RCC_OscConfig().

◆ __HAL_RCC_PLL_DISABLE

#define __HAL_RCC_PLL_DISABLE ( )

#include <stm32f4xx_hal_rcc.h>

Value:
(*(__IO uint32_t *) RCC_CR_PLLON_BB = DISABLE)

Definition at line 1031 of file stm32f4xx_hal_rcc.h.

Referenced by HAL_PWREx_ControlVoltageScaling(), and HAL_RCC_OscConfig().

◆ __HAL_RCC_PLL_PLLSOURCE_CONFIG

#define __HAL_RCC_PLL_PLLSOURCE_CONFIG ( __PLLSOURCE__)

#include <stm32f4xx_hal_rcc.h>

Value:
MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLLSRC, (__PLLSOURCE__))

Macro to configure the PLL clock source.

Note
This function must be used only when the main PLL is disabled.
Parameters
__PLLSOURCE__specifies the PLL entry clock source. This parameter can be one of the following values:
  • RCC_PLLSOURCE_HSI: HSI oscillator clock selected as PLL clock entry
  • RCC_PLLSOURCE_HSE: HSE oscillator clock selected as PLL clock entry

Definition at line 1041 of file stm32f4xx_hal_rcc.h.

◆ __HAL_RCC_PLL_PLLM_CONFIG

#define __HAL_RCC_PLL_PLLM_CONFIG ( __PLLM__)

#include <stm32f4xx_hal_rcc.h>

Value:
MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLLM, (__PLLM__))

Macro to configure the PLL multiplication factor.

Note
This function must be used only when the main PLL is disabled.
Parameters
__PLLM__specifies the division factor for PLL VCO input clock This parameter must be a number between Min_Data = 2 and Max_Data = 63.
Note
You have to set the PLLM parameter correctly to ensure that the VCO input frequency ranges from 1 to 2 MHz. It is recommended to select a frequency of 2 MHz to limit PLL jitter.

Definition at line 1052 of file stm32f4xx_hal_rcc.h.