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.
Extended Clock management functions
[RCCEx Exported Functions]
Extended Clock management functions. More...
Functions | |
HAL_StatusTypeDef | HAL_RCCEx_EnablePLLSAI1 (RCC_PLLSAI1InitTypeDef *PLLSAI1Init) |
Enable PLLSAI1. | |
HAL_StatusTypeDef | HAL_RCCEx_DisablePLLSAI1 (void) |
Disable PLLSAI1. | |
HAL_StatusTypeDef | HAL_RCCEx_EnablePLLSAI2 (RCC_PLLSAI2InitTypeDef *PLLSAI2Init) |
Enable PLLSAI2. | |
HAL_StatusTypeDef | HAL_RCCEx_DisablePLLSAI2 (void) |
Disable PLLISAI2. | |
void | HAL_RCCEx_WakeUpStopCLKConfig (uint32_t WakeUpClk) |
Configure the oscillator clock source for wakeup from Stop and CSS backup clock. | |
void | HAL_RCCEx_StandbyMSIRangeConfig (uint32_t MSIRange) |
Configure the MSI range after standby mode. | |
void | HAL_RCCEx_EnableLSECSS (void) |
Enable the LSE Clock Security System. | |
void | HAL_RCCEx_DisableLSECSS (void) |
Disable the LSE Clock Security System. | |
void | HAL_RCCEx_EnableLSECSS_IT (void) |
Enable the LSE Clock Security System Interrupt & corresponding EXTI line. | |
void | HAL_RCCEx_LSECSS_IRQHandler (void) |
Handle the RCC LSE Clock Security System interrupt request. | |
__weak void | HAL_RCCEx_LSECSS_Callback (void) |
RCCEx LSE Clock Security System interrupt callback. | |
void | HAL_RCCEx_EnableLSCO (uint32_t LSCOSource) |
Select the Low Speed clock source to output on LSCO pin (PA2). | |
void | HAL_RCCEx_DisableLSCO (void) |
Disable the Low Speed clock output. | |
void | HAL_RCCEx_EnableMSIPLLMode (void) |
Enable the PLL-mode of the MSI. | |
void | HAL_RCCEx_DisableMSIPLLMode (void) |
Disable the PLL-mode of the MSI. |
Detailed Description
Extended Clock management functions.
=============================================================================== ##### Extended clock management functions ##### =============================================================================== [..] This subsection provides a set of functions allowing to control the activation or deactivation of MSI PLL-mode, PLLSAI1, PLLSAI2, LSE CSS, Low speed clock output and clock after wake-up from STOP mode.
Function Documentation
void HAL_RCCEx_DisableLSCO | ( | void | ) |
Disable the Low Speed clock output.
- Return values:
-
None
Definition at line 1950 of file stm32l4xx_hal_rcc_ex.c.
void HAL_RCCEx_DisableLSECSS | ( | void | ) |
Disable the LSE Clock Security System.
- Note:
- LSE Clock Security System can only be disabled after a LSE failure detection.
- Return values:
-
None
Definition at line 1841 of file stm32l4xx_hal_rcc_ex.c.
void HAL_RCCEx_DisableMSIPLLMode | ( | void | ) |
Disable the PLL-mode of the MSI.
- Note:
- PLL-mode of the MSI is automatically reset when LSE oscillator is disabled.
- Return values:
-
None
Definition at line 1998 of file stm32l4xx_hal_rcc_ex.c.
HAL_StatusTypeDef HAL_RCCEx_DisablePLLSAI1 | ( | void | ) |
HAL_StatusTypeDef HAL_RCCEx_DisablePLLSAI2 | ( | void | ) |
void HAL_RCCEx_EnableLSCO | ( | uint32_t | LSCOSource ) |
Select the Low Speed clock source to output on LSCO pin (PA2).
- Parameters:
-
LSCOSource specifies the Low Speed clock source to output. This parameter can be one of the following values: - RCC_LSCOSOURCE_LSI LSI clock selected as LSCO source
- RCC_LSCOSOURCE_LSE LSE clock selected as LSCO source
- Return values:
-
None
Definition at line 1903 of file stm32l4xx_hal_rcc_ex.c.
void HAL_RCCEx_EnableLSECSS | ( | void | ) |
Enable the LSE Clock Security System.
- Note:
- Prior to enable the LSE Clock Security System, LSE oscillator is to be enabled with HAL_RCC_OscConfig() and the LSE oscillator clock is to be selected as RTC clock with HAL_RCCEx_PeriphCLKConfig().
- Return values:
-
None
Definition at line 1831 of file stm32l4xx_hal_rcc_ex.c.
void HAL_RCCEx_EnableLSECSS_IT | ( | void | ) |
Enable the LSE Clock Security System Interrupt & corresponding EXTI line.
- Note:
- LSE Clock Security System Interrupt is mapped on RTC EXTI line 19
- Return values:
-
None
Definition at line 1854 of file stm32l4xx_hal_rcc_ex.c.
void HAL_RCCEx_EnableMSIPLLMode | ( | void | ) |
Enable the PLL-mode of the MSI.
- Note:
- Prior to enable the PLL-mode of the MSI for automatic hardware calibration LSE oscillator is to be enabled with HAL_RCC_OscConfig().
- Return values:
-
None
Definition at line 1988 of file stm32l4xx_hal_rcc_ex.c.
HAL_StatusTypeDef HAL_RCCEx_EnablePLLSAI1 | ( | RCC_PLLSAI1InitTypeDef * | PLLSAI1Init ) |
Enable PLLSAI1.
- Parameters:
-
PLLSAI1Init pointer to an RCC_PLLSAI1InitTypeDef structure that contains the configuration information for the PLLSAI1
- Return values:
-
HAL status
Definition at line 1582 of file stm32l4xx_hal_rcc_ex.c.
HAL_StatusTypeDef HAL_RCCEx_EnablePLLSAI2 | ( | RCC_PLLSAI2InitTypeDef * | PLLSAI2Init ) |
Enable PLLSAI2.
- Parameters:
-
PLLSAI2Init pointer to an RCC_PLLSAI2InitTypeDef structure that contains the configuration information for the PLLSAI2
- Return values:
-
HAL status
Definition at line 1690 of file stm32l4xx_hal_rcc_ex.c.
__weak void HAL_RCCEx_LSECSS_Callback | ( | void | ) |
RCCEx LSE Clock Security System interrupt callback.
- Return values:
-
none
Definition at line 1888 of file stm32l4xx_hal_rcc_ex.c.
void HAL_RCCEx_LSECSS_IRQHandler | ( | void | ) |
Handle the RCC LSE Clock Security System interrupt request.
- Return values:
-
None
Definition at line 1871 of file stm32l4xx_hal_rcc_ex.c.
void HAL_RCCEx_StandbyMSIRangeConfig | ( | uint32_t | MSIRange ) |
Configure the MSI range after standby mode.
- Note:
- After Standby its frequency can be selected between 4 possible values (1, 2, 4 or 8 MHz).
- Parameters:
-
MSIRange MSI range This parameter can be one of the following values: - RCC_MSIRANGE_4 Range 4 around 1 MHz
- RCC_MSIRANGE_5 Range 5 around 2 MHz
- RCC_MSIRANGE_6 Range 6 around 4 MHz (reset value)
- RCC_MSIRANGE_7 Range 7 around 8 MHz
- Return values:
-
None
Definition at line 1817 of file stm32l4xx_hal_rcc_ex.c.
void HAL_RCCEx_WakeUpStopCLKConfig | ( | uint32_t | WakeUpClk ) |
Configure the oscillator clock source for wakeup from Stop and CSS backup clock.
- Parameters:
-
WakeUpClk Wakeup clock This parameter can be one of the following values: - RCC_STOP_WAKEUPCLOCK_MSI MSI oscillator selection
- RCC_STOP_WAKEUPCLOCK_HSI HSI oscillator selection
- Note:
- This function shall not be called after the Clock Security System on HSE has been enabled.
- Return values:
-
None
Definition at line 1799 of file stm32l4xx_hal_rcc_ex.c.
Generated on Tue Jul 12 2022 11:00:05 by
