STM32F479xx HAL User Manual
|
Defines | |
#define | __LL_RCC_CALC_PLLCLK_FREQ(__INPUTFREQ__, __PLLM__, __PLLN__, __PLLP__) |
Helper macro to calculate the PLLCLK frequency on system domain. | |
#define | __LL_RCC_CALC_PLLCLK_48M_FREQ(__INPUTFREQ__, __PLLM__, __PLLN__, __PLLQ__) |
Helper macro to calculate the PLLCLK frequency used on 48M domain. | |
#define | __LL_RCC_CALC_PLLCLK_DSI_FREQ(__INPUTFREQ__, __PLLM__, __PLLN__, __PLLR__) |
Helper macro to calculate the PLLCLK frequency used on DSI. | |
#define | __LL_RCC_CALC_PLLCLK_SAI_FREQ(__INPUTFREQ__, __PLLM__, __PLLN__, __PLLR__) |
Helper macro to calculate the PLLCLK frequency used on SAI. | |
#define | __LL_RCC_CALC_PLLSAI_SAI_FREQ(__INPUTFREQ__, __PLLM__, __PLLSAIN__, __PLLSAIQ__, __PLLSAIDIVQ__) |
Helper macro to calculate the PLLSAI frequency used for SAI domain. | |
#define | __LL_RCC_CALC_PLLSAI_48M_FREQ(__INPUTFREQ__, __PLLM__, __PLLSAIN__, __PLLSAIP__) |
Helper macro to calculate the PLLSAI frequency used on 48Mhz domain. | |
#define | __LL_RCC_CALC_PLLSAI_LTDC_FREQ(__INPUTFREQ__, __PLLM__, __PLLSAIN__, __PLLSAIR__, __PLLSAIDIVR__) |
Helper macro to calculate the PLLSAI frequency used for LTDC domain. | |
#define | __LL_RCC_CALC_PLLI2S_SAI_FREQ(__INPUTFREQ__, __PLLM__, __PLLI2SN__, __PLLI2SQ_R__, __PLLI2SDIVQ_R__) |
Helper macro to calculate the PLLI2S frequency used for SAI domain. | |
#define | __LL_RCC_CALC_PLLI2S_I2S_FREQ(__INPUTFREQ__, __PLLM__, __PLLI2SN__, __PLLI2SR__) |
Helper macro to calculate the PLLI2S frequency used for I2S domain. | |
#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 2871 of file stm32f4xx_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 2884 of file stm32f4xx_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 2897 of file stm32f4xx_ll_rcc.h.
Referenced by RCC_GetPCLK2ClockFreq().
#define __LL_RCC_CALC_PLLCLK_48M_FREQ | ( | __INPUTFREQ__, | |
__PLLM__, | |||
__PLLN__, | |||
__PLLQ__ | |||
) |
((__INPUTFREQ__) / (__PLLM__) * (__PLLN__) / \ ((__PLLQ__) >> RCC_PLLCFGR_PLLQ_Pos ))
Helper macro to calculate the PLLCLK frequency used on 48M domain.
(*) value not defined in all devices.
__PLLQ__ | This parameter can be one of the following values: |
PLL | clock frequency (in Hz) |
Definition at line 1751 of file stm32f4xx_ll_rcc.h.
Referenced by RCC_PLL_GetFreqDomain_48M().
#define __LL_RCC_CALC_PLLCLK_DSI_FREQ | ( | __INPUTFREQ__, | |
__PLLM__, | |||
__PLLN__, | |||
__PLLR__ | |||
) |
((__INPUTFREQ__) / (__PLLM__) * (__PLLN__) / \ ((__PLLR__) >> RCC_PLLCFGR_PLLR_Pos ))
Helper macro to calculate the PLLCLK frequency used on DSI.
PLL | clock frequency (in Hz) |
Definition at line 1833 of file stm32f4xx_ll_rcc.h.
Referenced by RCC_PLL_GetFreqDomain_DSI().
#define __LL_RCC_CALC_PLLCLK_FREQ | ( | __INPUTFREQ__, | |
__PLLM__, | |||
__PLLN__, | |||
__PLLP__ | |||
) |
((__INPUTFREQ__) / (__PLLM__) * (__PLLN__) / \ ((((__PLLP__) >> RCC_PLLCFGR_PLLP_Pos ) + 1U) * 2U))
Helper macro to calculate the PLLCLK frequency on system domain.
(*) value not defined in all devices.
__PLLP__ | This parameter can be one of the following values: |
PLL | clock frequency (in Hz) |
Definition at line 1576 of file stm32f4xx_ll_rcc.h.
Referenced by RCC_PLL_GetFreqDomain_SYS().
#define __LL_RCC_CALC_PLLCLK_SAI_FREQ | ( | __INPUTFREQ__, | |
__PLLM__, | |||
__PLLN__, | |||
__PLLR__ | |||
) |
((__INPUTFREQ__) / (__PLLM__) * (__PLLN__) / \ ((__PLLR__) >> RCC_PLLCFGR_PLLR_Pos ))
Helper macro to calculate the PLLCLK frequency used on SAI.
__INPUTFREQ__ | PLL Input frequency (based on HSE/HSI) |
__PLLM__ | This parameter can be one of the following values:
|
__PLLN__ | Between 50 and 432 |
__PLLR__ | This parameter can be one of the following values: |
__PLLDIVR__ | This parameter can be one of the following values:
|
PLL | clock frequency (in Hz) |
Definition at line 2121 of file stm32f4xx_ll_rcc.h.
Referenced by RCC_PLL_GetFreqDomain_SAI().
#define __LL_RCC_CALC_PLLI2S_I2S_FREQ | ( | __INPUTFREQ__, | |
__PLLM__, | |||
__PLLI2SN__, | |||
__PLLI2SR__ | |||
) |
(((__INPUTFREQ__) / (__PLLM__)) * (__PLLI2SN__) / \ ((__PLLI2SR__) >> RCC_PLLI2SCFGR_PLLI2SR_Pos))
Helper macro to calculate the PLLI2S frequency used for I2S domain.
(*) value not defined in all devices.
__PLLI2SR__ | This parameter can be one of the following values: |
PLLI2S | clock frequency (in Hz) |
Definition at line 2760 of file stm32f4xx_ll_rcc.h.
Referenced by RCC_PLLI2S_GetFreqDomain_I2S().
#define __LL_RCC_CALC_PLLI2S_SAI_FREQ | ( | __INPUTFREQ__, | |
__PLLM__, | |||
__PLLI2SN__, | |||
__PLLI2SQ_R__, | |||
__PLLI2SDIVQ_R__ | |||
) |
(((__INPUTFREQ__) / (__PLLM__)) * (__PLLI2SN__) / \ (((__PLLI2SQ_R__) >> RCC_PLLI2SCFGR_PLLI2SQ_Pos) * (((__PLLI2SDIVQ_R__) >> RCC_DCKCFGR_PLLI2SDIVQ_Pos) + 1U)))
Helper macro to calculate the PLLI2S frequency used for SAI domain.
(*) value not defined in all devices.
__PLLI2SQ_R__ | This parameter can be one of the following values:
|
__PLLI2SDIVQ_R__ | This parameter can be one of the following values:
|
PLLI2S | clock frequency (in Hz) |
Definition at line 2589 of file stm32f4xx_ll_rcc.h.
Referenced by RCC_PLLI2S_GetFreqDomain_SAI().
#define __LL_RCC_CALC_PLLSAI_48M_FREQ | ( | __INPUTFREQ__, | |
__PLLM__, | |||
__PLLSAIN__, | |||
__PLLSAIP__ | |||
) |
(((__INPUTFREQ__) / (__PLLM__)) * (__PLLSAIN__) / \ ((((__PLLSAIP__) >> RCC_PLLSAICFGR_PLLSAIP_Pos) + 1U) * 2U))
Helper macro to calculate the PLLSAI frequency used on 48Mhz domain.
PLLSAI | clock frequency (in Hz) |
Definition at line 2329 of file stm32f4xx_ll_rcc.h.
Referenced by RCC_PLLSAI_GetFreqDomain_48M().
#define __LL_RCC_CALC_PLLSAI_LTDC_FREQ | ( | __INPUTFREQ__, | |
__PLLM__, | |||
__PLLSAIN__, | |||
__PLLSAIR__, | |||
__PLLSAIDIVR__ | |||
) |
(((__INPUTFREQ__) / (__PLLM__)) * (__PLLSAIN__) / \ (((__PLLSAIR__) >> RCC_PLLSAICFGR_PLLSAIR_Pos) * (aRCC_PLLSAIDIVRPrescTable[(__PLLSAIDIVR__) >> RCC_DCKCFGR_PLLSAIDIVR_Pos])))
Helper macro to calculate the PLLSAI frequency used for LTDC domain.
(*) value not defined in all devices.
__PLLSAIR__ | This parameter can be one of the following values: |
__PLLSAIDIVR__ | This parameter can be one of the following values: |
PLLSAI | clock frequency (in Hz) |
Definition at line 2419 of file stm32f4xx_ll_rcc.h.
Referenced by RCC_PLLSAI_GetFreqDomain_LTDC().
#define __LL_RCC_CALC_PLLSAI_SAI_FREQ | ( | __INPUTFREQ__, | |
__PLLM__, | |||
__PLLSAIN__, | |||
__PLLSAIQ__, | |||
__PLLSAIDIVQ__ | |||
) |
(((__INPUTFREQ__) / (__PLLM__)) * (__PLLSAIN__) / \ (((__PLLSAIQ__) >> RCC_PLLSAICFGR_PLLSAIQ_Pos) * (((__PLLSAIDIVQ__) >> RCC_DCKCFGR_PLLSAIDIVQ_Pos) + 1U)))
Helper macro to calculate the PLLSAI frequency used for SAI domain.
(*) value not defined in all devices.
PLLSAI | clock frequency (in Hz) |
Definition at line 2249 of file stm32f4xx_ll_rcc.h.
Referenced by RCC_PLLSAI_GetFreqDomain_SAI().