STM32L443xx HAL User Manual
Defines | Functions
stm32l4xx_hal_rcc_ex.c File Reference

Extended RCC HAL module driver. This file provides firmware functions to manage the following functionalities RCC extended peripheral: + Extended Peripheral Control functions + Extended Clock management functions + Extended Clock Recovery System Control functions. More...

#include "stm32l4xx_hal.h"

Go to the source code of this file.

Defines

#define PLLSAI1_TIMEOUT_VALUE   2U /* 2 ms (minimum Tick + 1) */
#define PLLSAI2_TIMEOUT_VALUE   2U /* 2 ms (minimum Tick + 1) */
#define PLL_TIMEOUT_VALUE   2U /* 2 ms (minimum Tick + 1) */
#define DIVIDER_P_UPDATE   0U
#define DIVIDER_Q_UPDATE   1U
#define DIVIDER_R_UPDATE   2U
#define __LSCO_CLK_ENABLE()   __HAL_RCC_GPIOA_CLK_ENABLE()
#define LSCO_GPIO_PORT   GPIOA
#define LSCO_PIN   GPIO_PIN_2

Functions

static HAL_StatusTypeDef RCCEx_PLLSAI1_Config (RCC_PLLSAI1InitTypeDef *PllSai1, uint32_t Divider)
 Configure the parameters N & P & optionally M of PLLSAI1 and enable PLLSAI1 output clock(s).
static uint32_t RCCEx_GetSAIxPeriphCLKFreq (uint32_t PeriphClk, uint32_t InputFrequency)
HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig (RCC_PeriphCLKInitTypeDef *PeriphClkInit)
 Initialize the RCC extended peripherals clocks according to the specified parameters in the RCC_PeriphCLKInitTypeDef.
void HAL_RCCEx_GetPeriphCLKConfig (RCC_PeriphCLKInitTypeDef *PeriphClkInit)
 Get the RCC_ClkInitStruct according to the internal RCC configuration registers.
uint32_t HAL_RCCEx_GetPeriphCLKFreq (uint32_t PeriphClk)
 Return the peripheral clock frequency for peripherals with clock source from PLLSAIs.
HAL_StatusTypeDef HAL_RCCEx_EnablePLLSAI1 (RCC_PLLSAI1InitTypeDef *PLLSAI1Init)
 Enable PLLSAI1.
HAL_StatusTypeDef HAL_RCCEx_DisablePLLSAI1 (void)
 Disable PLLSAI1.
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.
void HAL_RCCEx_CRSConfig (RCC_CRSInitTypeDef *pInit)
 Start automatic synchronization for polling mode.
void HAL_RCCEx_CRSSoftwareSynchronizationGenerate (void)
 Generate the software synchronization event.
void HAL_RCCEx_CRSGetSynchronizationInfo (RCC_CRSSynchroInfoTypeDef *pSynchroInfo)
 Return synchronization info.
uint32_t HAL_RCCEx_CRSWaitSynchronization (uint32_t Timeout)
 Wait for CRS Synchronization status.
void HAL_RCCEx_CRS_IRQHandler (void)
 Handle the Clock Recovery System interrupt request.
__weak void HAL_RCCEx_CRS_SyncOkCallback (void)
 RCCEx Clock Recovery System SYNCOK interrupt callback.
__weak void HAL_RCCEx_CRS_SyncWarnCallback (void)
 RCCEx Clock Recovery System SYNCWARN interrupt callback.
__weak void HAL_RCCEx_CRS_ExpectedSyncCallback (void)
 RCCEx Clock Recovery System Expected SYNC interrupt callback.
__weak void HAL_RCCEx_CRS_ErrorCallback (uint32_t Error)
 RCCEx Clock Recovery System Error interrupt callback.

Detailed Description

Extended RCC HAL module driver. This file provides firmware functions to manage the following functionalities RCC extended peripheral: + Extended Peripheral Control functions + Extended Clock management functions + Extended Clock Recovery System Control functions.

Author:
MCD Application Team
Attention:

Copyright (c) 2017 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

Definition in file stm32l4xx_hal_rcc_ex.c.