HAL
__HAL_RCC_SAI2_CONFIG is only used within HAL.
 
Symbols
loading...
Files
loading...

__HAL_RCC_SAI2_CONFIG macro

Macro to configure SAI2 clock source selection.

Syntax

#define __HAL_RCC_SAI2_CONFIG(__SOURCE__) (MODIFY_REG(RCC->DCKCFGR, RCC_DCKCFGR_SAI2SRC, (__SOURCE__)))

Arguments

__SOURCE__

specifies the SAI2 clock source. This parameter can be one of the following values: @arg RCC_SAI2CLKSOURCE_PLLI2S: PLLI2S_Q clock divided by PLLI2SDIVQ used as SAI2 clock. @arg RCC_SAI2CLKSOURCE_PLLSAI: PLLISAI_Q clock divided by PLLSAIDIVQ used as SAI2 clock. @arg RCC_SAI2CLKSOURCE_PLLR: PLL VCO Output divided by PLLR used as SAI2 clock. @arg RCC_SAI2CLKSOURCE_PLLSRC: HSI or HSE depending from PLL Source clock used as SAI2 clock.

Notes

This configuration is only available with STM32F446xx Devices. This function must be called before enabling PLL, PLLSAI, PLLI2S and the SAI clock.

References

LocationText
stm32f4xx_hal_rcc_ex.h:6262
#define __HAL_RCC_SAI2_CONFIG(__SOURCE__) (MODIFY_REG(RCC->DCKCFGR, RCC_DCKCFGR_SAI2SRC, (__SOURCE__)))
stm32f4xx_hal_rcc_ex.c:162
__HAL_RCC_SAI2_CONFIG(PeriphClkInit->Sai2ClockSelection);