cancel
Showing results for 
Search instead for 
Did you mean: 

HAL_RCCEx_GetPeriphCLKFreq supports only SAI and SPI ?

ranran
Senior II

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

0 REPLIES 0