DIY Logging Volt/Ampmeter

Macros

#define __HAL_RCC_PLL_ENABLE()   (*(__IO uint32_t *) RCC_CR_PLLON_BB = ENABLE)
 Macro to enable the main PLL. More...
 
#define __HAL_RCC_PLL_DISABLE()   (*(__IO uint32_t *) RCC_CR_PLLON_BB = DISABLE)
 Macro to disable the main PLL. More...
 
#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. More...
 
#define __HAL_RCC_GET_PLL_OSCSOURCE()   ((uint32_t)(READ_BIT(RCC->CFGR, RCC_CFGR_PLLSRC)))
 Get oscillator clock selected as PLL input clock. More...
 

Detailed Description

Macro Definition Documentation

◆ __HAL_RCC_GET_PLL_OSCSOURCE

#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.

◆ __HAL_RCC_PLL_CONFIG

#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
<strong>RCC_PLLSOURCE</strong>specifies the PLL entry clock source. This parameter can be one of the following values:
<strong>PLLMUL</strong>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.

◆ __HAL_RCC_PLL_DISABLE

#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.

◆ __HAL_RCC_PLL_ENABLE

#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.