|
STM32F103xB HAL User Manual
|
Defines | |
| #define | __LL_RCC_CALC_PLLCLK_FREQ(__INPUTFREQ__, __PLLMUL__) ((__INPUTFREQ__) * (((__PLLMUL__) >> RCC_CFGR_PLLMULL_Pos) + 2U)) |
| Helper macro to calculate the PLLCLK frequency. | |
| #define | __LL_RCC_CALC_HCLK_FREQ(__SYSCLKFREQ__, __AHBPRESCALER__) ((__SYSCLKFREQ__) >> AHBPrescTable[((__AHBPRESCALER__) & RCC_CFGR_HPRE) >> RCC_CFGR_HPRE_Pos]) |
| Helper macro to calculate the HCLK frequency. | |
| #define | __LL_RCC_CALC_PCLK1_FREQ(__HCLKFREQ__, __APB1PRESCALER__) ((__HCLKFREQ__) >> APBPrescTable[(__APB1PRESCALER__) >> RCC_CFGR_PPRE1_Pos]) |
| Helper macro to calculate the PCLK1 frequency (ABP1) | |
| #define | __LL_RCC_CALC_PCLK2_FREQ(__HCLKFREQ__, __APB2PRESCALER__) ((__HCLKFREQ__) >> APBPrescTable[(__APB2PRESCALER__) >> RCC_CFGR_PPRE2_Pos]) |
| Helper macro to calculate the PCLK2 frequency (ABP2) | |
| #define __LL_RCC_CALC_HCLK_FREQ | ( | __SYSCLKFREQ__, | |
| __AHBPRESCALER__ | |||
| ) | ((__SYSCLKFREQ__) >> AHBPrescTable[((__AHBPRESCALER__) & RCC_CFGR_HPRE) >> RCC_CFGR_HPRE_Pos]) |
Helper macro to calculate the HCLK frequency.
| __SYSCLKFREQ__ | SYSCLK frequency (based on HSE/HSI/PLLCLK) |
| __AHBPRESCALER__,: | This parameter can be one of the following values: |
| HCLK | clock frequency (in Hz) |
Definition at line 690 of file stm32f1xx_ll_rcc.h.
Referenced by RCC_GetHCLKClockFreq(), and UTILS_EnablePLLAndSwitchSystem().
| #define __LL_RCC_CALC_PCLK1_FREQ | ( | __HCLKFREQ__, | |
| __APB1PRESCALER__ | |||
| ) | ((__HCLKFREQ__) >> APBPrescTable[(__APB1PRESCALER__) >> RCC_CFGR_PPRE1_Pos]) |
Helper macro to calculate the PCLK1 frequency (ABP1)
| __HCLKFREQ__ | HCLK frequency |
| __APB1PRESCALER__,: | This parameter can be one of the following values: |
| PCLK1 | clock frequency (in Hz) |
Definition at line 705 of file stm32f1xx_ll_rcc.h.
Referenced by RCC_GetPCLK1ClockFreq().
| #define __LL_RCC_CALC_PCLK2_FREQ | ( | __HCLKFREQ__, | |
| __APB2PRESCALER__ | |||
| ) | ((__HCLKFREQ__) >> APBPrescTable[(__APB2PRESCALER__) >> RCC_CFGR_PPRE2_Pos]) |
Helper macro to calculate the PCLK2 frequency (ABP2)
| __HCLKFREQ__ | HCLK frequency |
| __APB2PRESCALER__,: | This parameter can be one of the following values: |
| PCLK2 | clock frequency (in Hz) |
Definition at line 720 of file stm32f1xx_ll_rcc.h.
Referenced by RCC_GetPCLK2ClockFreq().
| #define __LL_RCC_CALC_PLLCLK_FREQ | ( | __INPUTFREQ__, | |
| __PLLMUL__ | |||
| ) | ((__INPUTFREQ__) * (((__PLLMUL__) >> RCC_CFGR_PLLMULL_Pos) + 2U)) |
Helper macro to calculate the PLLCLK frequency.
| __INPUTFREQ__ | PLL Input frequency (based on HSE div Prediv1 or div 2 / HSI div 2) |
| __PLLMUL__,: | This parameter can be one of the following values: |
| PLL | clock frequency (in Hz) |
Definition at line 596 of file stm32f1xx_ll_rcc.h.
Referenced by RCC_PLL_GetFreqDomain_SYS(), and UTILS_GetPLLOutputFrequency().
1.7.6.1