2019-03-10 01:02 AM
Hello,
Is there any reason why only small part of peripherals is supported in HAL function HAL_RCCEx_GetPeriphCLKFreq , ( SAI and SPI ) ? What about all other peripherals ?
/**
* @brief Return the peripheral clock frequency for a given peripheral(SAI..)
* @note Return 0 if peripheral clock identifier not managed by this API
* @param PeriphClk: Peripheral clock identifier
* This parameter can be one of the following values:
* @arg RCC_PERIPHCLK_SAI1 : SAI1 peripheral clock
* @arg RCC_PERIPHCLK_SAI23 : SAI2/3 peripheral clock
* @arg RCC_PERIPHCLK_SAI4A : SAI4A peripheral clock
* @arg RCC_PERIPHCLK_SAI4B : SAI4B peripheral clock
* @arg RCC_PERIPHCLK_SPI123: SPI1/2/3 peripheral clock
* @retval Frequency in KHz
*/
uint32_t HAL_RCCEx_GetPeriphCLKFreq(uint32_t PeriphClk)
Thanks,
ranran