STM32F439xx HAL User Manual
|
RCC HAL module driver. This file provides firmware functions to manage the following functionalities of the Reset and Clock Control (RCC) peripheral: + Initialization and de-initialization functions + Peripheral Control functions. More...
#include "stm32f4xx_hal.h"
Go to the source code of this file.
Defines | |
#define | __MCO1_CLK_ENABLE() __HAL_RCC_GPIOA_CLK_ENABLE() |
#define | MCO1_GPIO_PORT GPIOA |
#define | MCO1_PIN GPIO_PIN_8 |
#define | __MCO2_CLK_ENABLE() __HAL_RCC_GPIOC_CLK_ENABLE() |
#define | MCO2_GPIO_PORT GPIOC |
#define | MCO2_PIN GPIO_PIN_9 |
Functions | |
__weak HAL_StatusTypeDef | HAL_RCC_DeInit (void) |
Resets the RCC clock configuration to the default reset state. | |
__weak HAL_StatusTypeDef | HAL_RCC_OscConfig (RCC_OscInitTypeDef *RCC_OscInitStruct) |
Initializes the RCC Oscillators according to the specified parameters in the RCC_OscInitTypeDef. | |
HAL_StatusTypeDef | HAL_RCC_ClockConfig (RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency) |
Initializes the CPU, AHB and APB busses clocks according to the specified parameters in the RCC_ClkInitStruct. | |
void | HAL_RCC_MCOConfig (uint32_t RCC_MCOx, uint32_t RCC_MCOSource, uint32_t RCC_MCODiv) |
Selects the clock source to output on MCO1 pin(PA8) or on MCO2 pin(PC9). | |
void | HAL_RCC_EnableCSS (void) |
Enables the Clock Security System. | |
void | HAL_RCC_DisableCSS (void) |
Disables the Clock Security System. | |
__weak uint32_t | HAL_RCC_GetSysClockFreq (void) |
Returns the SYSCLK frequency. | |
uint32_t | HAL_RCC_GetHCLKFreq (void) |
Returns the HCLK frequency. | |
uint32_t | HAL_RCC_GetPCLK1Freq (void) |
Returns the PCLK1 frequency. | |
uint32_t | HAL_RCC_GetPCLK2Freq (void) |
Returns the PCLK2 frequency. | |
__weak void | HAL_RCC_GetOscConfig (RCC_OscInitTypeDef *RCC_OscInitStruct) |
Configures the RCC_OscInitStruct according to the internal RCC configuration registers. | |
void | HAL_RCC_GetClockConfig (RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatency) |
Configures the RCC_ClkInitStruct according to the internal RCC configuration registers. | |
void | HAL_RCC_NMI_IRQHandler (void) |
This function handles the RCC CSS interrupt request. | |
__weak void | HAL_RCC_CSSCallback (void) |
RCC Clock Security System interrupt callback. |
RCC HAL module driver. This file provides firmware functions to manage the following functionalities of the Reset and Clock Control (RCC) peripheral: + Initialization and de-initialization functions + Peripheral Control functions.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file stm32f4xx_hal_rcc.c.