Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Peripheral Control functions
[RCCEx Exported Functions]
Extended Peripheral Control functions. More...
Functions | |
| HAL_StatusTypeDef | HAL_RCCEx_PeriphCLKConfig (RCC_PeriphCLKInitTypeDef *PeriphClkInit) |
| Initializes the RCC extended peripherals clocks according to the specified parameters in the RCC_PeriphCLKInitTypeDef. | |
| void | HAL_RCCEx_GetPeriphCLKConfig (RCC_PeriphCLKInitTypeDef *PeriphClkInit) |
| Get the PeriphClkInit according to the internal RCC configuration registers. | |
| uint32_t | HAL_RCCEx_GetPeriphCLKFreq (uint32_t PeriphClk) |
| Returns the peripheral clock frequency. | |
Detailed Description
Extended Peripheral Control functions.
===============================================================================
##### Extended Peripheral Control functions #####
===============================================================================
[..]
This subsection provides a set of functions allowing to control the RCC Clocks
frequencies.
[..]
(@) Important note: Care must be taken when HAL_RCCEx_PeriphCLKConfig() is used to
select the RTC clock source; in this case the Backup domain will be reset in
order to modify the RTC Clock source, as consequence RTC registers (including
the backup registers) are set to their reset values.
Function Documentation
| void HAL_RCCEx_GetPeriphCLKConfig | ( | RCC_PeriphCLKInitTypeDef * | PeriphClkInit ) |
Get the PeriphClkInit according to the internal RCC configuration registers.
- Parameters:
-
PeriphClkInit pointer to an RCC_PeriphCLKInitTypeDef structure that returns the configuration information for the Extended Peripherals clocks(RTC, I2S, ADC clocks).
- Return values:
-
None
Definition at line 295 of file stm32f1xx_hal_rcc_ex.c.
| uint32_t HAL_RCCEx_GetPeriphCLKFreq | ( | uint32_t | PeriphClk ) |
Returns the peripheral clock frequency.
- Note:
- Returns 0 if peripheral clock is unknown
- Parameters:
-
PeriphClk Peripheral clock identifier This parameter can be one of the following values: - RCC_PERIPHCLK_RTC RTC peripheral clock
- RCC_PERIPHCLK_ADC ADC peripheral clock
- Return values:
-
Frequency in Hz (0: means that no available frequency for the peripheral)
Definition at line 388 of file stm32f1xx_hal_rcc_ex.c.
| HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig | ( | RCC_PeriphCLKInitTypeDef * | PeriphClkInit ) |
Initializes the RCC extended peripherals clocks according to the specified parameters in the RCC_PeriphCLKInitTypeDef.
- Parameters:
-
PeriphClkInit pointer to an RCC_PeriphCLKInitTypeDef structure that contains the configuration information for the Extended Peripherals clocks(RTC clock).
- Note:
- Care must be taken when HAL_RCCEx_PeriphCLKConfig() is used to select the RTC clock source; in this case the Backup domain will be reset in order to modify the RTC Clock source, as consequence RTC registers (including the backup registers) are set to their reset values.
- In case of STM32F105xC or STM32F107xC devices, PLLI2S will be enabled if requested on one of 2 I2S interfaces. When PLLI2S is enabled, you need to call HAL_RCCEx_DisablePLLI2S to manually disable it.
- Return values:
-
HAL status
Definition at line 118 of file stm32f1xx_hal_rcc_ex.c.
Generated on Tue Jul 12 2022 15:37:32 by
1.7.2