mikroSDK Reference Manual
|
Macros | |
#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 | __HAL_RCC_PLL_ENABLE() (*(__IO uint32_t *) RCC_CR_PLLON_BB = ENABLE) |
Macros to enable or disable the main PLL. | |
#define | __HAL_RCC_PLL_DISABLE() (*(__IO uint32_t *) RCC_CR_PLLON_BB = DISABLE) |
#define | __HAL_RCC_PLL_CONFIG(__RCC_PLLSource__, __PLLM__, __PLLN__, __PLLP__, __PLLQ__) |
Macro to configure the main PLL clock source, multiplication and division factors. | |
#define | __HAL_RCC_PLL_ENABLE() (*(__IO uint32_t *) RCC_CR_PLLON_BB = ENABLE) |
Macros to enable or disable the main PLL. | |
#define | __HAL_RCC_PLL_DISABLE() (*(__IO uint32_t *) RCC_CR_PLLON_BB = DISABLE) |
#define | __HAL_RCC_PLL_PLLSOURCE_CONFIG(__PLLSOURCE__) MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLLSRC, (__PLLSOURCE__)) |
Macro to configure the PLL clock source. | |
#define | __HAL_RCC_PLL_PLLM_CONFIG(__PLLM__) MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLLM, (__PLLM__)) |
Macro to configure the PLL multiplication factor. | |
#define | __HAL_RCC_PLL_ENABLE() SET_BIT(RCC->CR, RCC_CR_PLLON) |
Macros to enable or disable the main PLL. | |
#define | __HAL_RCC_PLL_DISABLE() CLEAR_BIT(RCC->CR, RCC_CR_PLLON) |
#define | __HAL_RCC_PLL_PLLSOURCE_CONFIG(__PLLSOURCE__) MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLLSRC, (__PLLSOURCE__)) |
Macro to configure the PLL clock source. | |
#define | __HAL_RCC_PLL_PLLM_CONFIG(__PLLM__) MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLLM, (__PLLM__)) |
Macro to configure the PLL multiplication factor. | |
#define __HAL_RCC_GET_PLL_OSCSOURCE | ( | ) | ((uint32_t)(READ_BIT(RCC->CFGR, RCC_CFGR_PLLSRC))) |
The | clock source used for PLL entry. The returned value can be one of the following:
|
#define __HAL_RCC_PLL_CONFIG | ( | __RCC_PLLSource__, | |
__PLLM__, | |||
__PLLN__, | |||
__PLLP__, | |||
__PLLQ__ ) |
__RCC_PLLSource__ | specifies the PLL entry clock source. This parameter can be one of the following values:
|
__PLLM__ | specifies the division factor for PLL VCO input clock This parameter must be a number between Min_Data = 2 and Max_Data = 63. |
__PLLN__ | specifies the multiplication factor for PLL VCO output clock This parameter must be a number between Min_Data = 192 and Max_Data = 432. |
__PLLP__ | specifies the division factor for main system clock (SYSCLK) This parameter must be a number in the range {2, 4, 6, or 8}. |
__PLLQ__ | specifies the division factor for OTG FS, SDIO and RNG clocks This parameter must be a number between Min_Data = 2 and Max_Data = 15. |
#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, multiplication and division factors.
__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:
|
__RCC_PLLSource__ | specifies the PLL entry clock source. This parameter can be one of the following values:
|
__PLLM__ | specifies the division factor for PLL VCO input clock This parameter must be a number between Min_Data = 2 and Max_Data = 63. |
__PLLN__ | specifies the multiplication factor for PLL VCO output clock This parameter must be a number between Min_Data = 192 and Max_Data = 432. |
__PLLP__ | specifies the division factor for main system clock (SYSCLK) This parameter must be a number in the range {2, 4, 6, or 8}. |
__PLLQ__ | specifies the division factor for OTG FS, SDIO and RNG clocks This parameter must be a number between Min_Data = 2 and Max_Data = 15. |
#define __HAL_RCC_PLL_DISABLE | ( | ) | (*(__IO uint32_t *) RCC_CR_PLLON_BB = DISABLE) |
#define __HAL_RCC_PLL_ENABLE | ( | ) | (*(__IO uint32_t *) RCC_CR_PLLON_BB = ENABLE) |
Macros to enable or disable the main PLL.
#define __HAL_RCC_PLL_ENABLE | ( | ) | (*(__IO uint32_t *) RCC_CR_PLLON_BB = ENABLE) |
#define __HAL_RCC_PLL_ENABLE | ( | ) | (*(__IO uint32_t *) RCC_CR_PLLON_BB = ENABLE) |
#define __HAL_RCC_PLL_ENABLE | ( | ) | SET_BIT(RCC->CR, RCC_CR_PLLON) |
#define __HAL_RCC_PLL_PLLM_CONFIG | ( | __PLLM__ | ) | MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLLM, (__PLLM__)) |
__PLLM__ | specifies the division factor for PLL VCO input clock This parameter must be a number between Min_Data = 2 and Max_Data = 63. |
#define __HAL_RCC_PLL_PLLM_CONFIG | ( | __PLLM__ | ) | MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLLM, (__PLLM__)) |
__PLLM__ | specifies the division factor for PLL VCO input clock This parameter must be a number between Min_Data = 2 and Max_Data = 63. |
#define __HAL_RCC_PLL_PLLSOURCE_CONFIG | ( | __PLLSOURCE__ | ) | MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLLSRC, (__PLLSOURCE__)) |
__PLLSOURCE__ | specifies the PLL entry clock source. This parameter can be one of the following values:
|
#define __HAL_RCC_PLL_PLLSOURCE_CONFIG | ( | __PLLSOURCE__ | ) | MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLLSRC, (__PLLSOURCE__)) |
__PLLSOURCE__ | specifies the PLL entry clock source. This parameter can be one of the following values:
|