Hal Drivers for L4

Dependents:   BSP OneHopeOnePrayer FINAL_AUDIO_RECORD AudioDemo

Fork of STM32L4xx_HAL_Driver by Senior Design: Sound Monitor

Embed: (wiki syntax)

« Back to documentation index

Extended clock management functions

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 1581 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 1472 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 1629 of file stm32l4xx_hal_rcc_ex.c.

HAL_StatusTypeDef HAL_RCCEx_DisablePLLSAI1 ( void   )

Disable PLLSAI1.

Return values:
HALstatus

Definition at line 1301 of file stm32l4xx_hal_rcc_ex.c.

HAL_StatusTypeDef HAL_RCCEx_DisablePLLSAI2 ( void   )

Disable PLLISAI2.

Return values:
HALstatus

Definition at line 1393 of file stm32l4xx_hal_rcc_ex.c.

void HAL_RCCEx_EnableLSCO ( uint32_t  LSCOSource )

Select the Low Speed clock source to output on LSCO pin (PA2).

Parameters:
LSCOSourcespecifies 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 1534 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 1462 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 1485 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 1619 of file stm32l4xx_hal_rcc_ex.c.

HAL_StatusTypeDef HAL_RCCEx_EnablePLLSAI1 ( RCC_PLLSAI1InitTypeDef *  PLLSAI1Init )

Enable PLLSAI1.

Parameters:
PLLSAI1Initpointer to an RCC_PLLSAI1InitTypeDef structure that contains the configuration information for the PLLSAI1
Return values:
HALstatus

Definition at line 1241 of file stm32l4xx_hal_rcc_ex.c.

HAL_StatusTypeDef HAL_RCCEx_EnablePLLSAI2 ( RCC_PLLSAI2InitTypeDef *  PLLSAI2Init )

Enable PLLSAI2.

Parameters:
PLLSAI2Initpointer to an RCC_PLLSAI2InitTypeDef structure that contains the configuration information for the PLLSAI2
Return values:
HALstatus

Definition at line 1334 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 1519 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 1502 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:
MSIRangeMSI 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 1448 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:
WakeUpClkWakeup 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 1430 of file stm32l4xx_hal_rcc_ex.c.