STM32F103xB HAL User Manual
Defines
PLL Configuration
RCC Exported Macros

Defines

#define __HAL_RCC_PLL_ENABLE()   (*(__IO uint32_t *) RCC_CR_PLLON_BB = ENABLE)
 Macro to enable the main PLL.
#define __HAL_RCC_PLL_DISABLE()   (*(__IO uint32_t *) RCC_CR_PLLON_BB = DISABLE)
 Macro to disable the main PLL.
#define __HAL_RCC_PLL_CONFIG(__RCC_PLLSOURCE__, __PLLMUL__)   MODIFY_REG(RCC->CFGR, (RCC_CFGR_PLLSRC | RCC_CFGR_PLLMULL),((__RCC_PLLSOURCE__) | (__PLLMUL__) ))
 Macro to configure the main PLL clock source and multiplication factors.
#define __HAL_RCC_GET_PLL_OSCSOURCE()   ((uint32_t)(READ_BIT(RCC->CFGR, RCC_CFGR_PLLSRC)))
 Get oscillator clock selected as PLL input clock.

Define Documentation

#define __HAL_RCC_GET_PLL_OSCSOURCE ( )    ((uint32_t)(READ_BIT(RCC->CFGR, RCC_CFGR_PLLSRC)))

Get oscillator clock selected as PLL input clock.

Return values:
Theclock source used for PLL entry. The returned value can be one of the following:

Definition at line 883 of file stm32f1xx_hal_rcc.h.

Referenced by HAL_RCC_OscConfig().

#define __HAL_RCC_PLL_CONFIG (   __RCC_PLLSOURCE__,
  __PLLMUL__ 
)    MODIFY_REG(RCC->CFGR, (RCC_CFGR_PLLSRC | RCC_CFGR_PLLMULL),((__RCC_PLLSOURCE__) | (__PLLMUL__) ))

Macro to configure the main PLL clock source and multiplication factors.

Note:
This function must be used only when the main PLL is disabled.
Parameters:
__RCC_PLLSOURCE__specifies the PLL entry clock source. This parameter can be one of the following values:
__PLLMUL__specifies the multiplication factor for PLL VCO output clock This parameter can be one of the following values:

Definition at line 874 of file stm32f1xx_hal_rcc.h.

Referenced by HAL_RCC_OscConfig().

#define __HAL_RCC_PLL_DISABLE ( )    (*(__IO uint32_t *) RCC_CR_PLLON_BB = DISABLE)

Macro to disable the main PLL.

Note:
The main PLL can not be disabled if it is used as system clock source

Definition at line 842 of file stm32f1xx_hal_rcc.h.

Referenced by HAL_RCC_OscConfig().

#define __HAL_RCC_PLL_ENABLE ( )    (*(__IO uint32_t *) RCC_CR_PLLON_BB = ENABLE)

Macro to enable 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 is disabled by hardware when entering STOP and STANDBY modes.

Definition at line 837 of file stm32f1xx_hal_rcc.h.

Referenced by HAL_RCC_OscConfig().