HAL_RCCEx_GetPeriphCLKFreq() function
Return the peripheral clock frequency for a given peripheral(SAI..)
Syntax
uint32_t HAL_RCCEx_GetPeriphCLKFreq(uint32_t PeriphClk); Arguments
PeriphClk
Peripheral clock identifier This parameter can be one of the following values: @arg RCC_PERIPHCLK_SAI1: SAI1 peripheral clock @arg RCC_PERIPHCLK_SAI2: SAI2 peripheral clock @arg RCC_PERIPHCLK_I2S_APB1: I2S APB1 peripheral clock @arg RCC_PERIPHCLK_I2S_APB2: I2S APB2 peripheral clock
Return value
Frequency in KHz
Notes
Return 0 if peripheral clock identifier not managed by this API