|
STM32L443xx HAL User Manual
|
RCC clocks control functions. More...
Functions | |
| void | HAL_RCC_MCOConfig (uint32_t RCC_MCOx, uint32_t RCC_MCOSource, uint32_t RCC_MCODiv) |
| Select the clock source to output on MCO pin(PA8). | |
| uint32_t | HAL_RCC_GetSysClockFreq (void) |
| Return the SYSCLK frequency. | |
| uint32_t | HAL_RCC_GetHCLKFreq (void) |
| Return the HCLK frequency. | |
| uint32_t | HAL_RCC_GetPCLK1Freq (void) |
| Return the PCLK1 frequency. | |
| uint32_t | HAL_RCC_GetPCLK2Freq (void) |
| Return the PCLK2 frequency. | |
| void | HAL_RCC_GetOscConfig (RCC_OscInitTypeDef *RCC_OscInitStruct) |
| Configure the RCC_OscInitStruct according to the internal RCC configuration registers. | |
| void | HAL_RCC_GetClockConfig (RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatency) |
| Configure the RCC_ClkInitStruct according to the internal RCC configuration registers. | |
| void | HAL_RCC_EnableCSS (void) |
| Enable the Clock Security System. | |
| void | HAL_RCC_NMI_IRQHandler (void) |
| Handle the RCC Clock Security System interrupt request. | |
| __weak void | HAL_RCC_CSSCallback (void) |
| RCC Clock Security System interrupt callback. | |
| uint32_t | HAL_RCC_GetResetSource (void) |
| Get and clear reset flags. | |
RCC clocks control functions.
===============================================================================
##### Peripheral Control functions #####
===============================================================================
[..]
This subsection provides a set of functions allowing to:
(+) Ouput clock to MCO pin.
(+) Retrieve current clock frequencies.
(+) Enable the Clock Security System.
| void HAL_RCC_CSSCallback | ( | void | ) |
RCC Clock Security System interrupt callback.
| none |
Definition at line 1750 of file stm32l4xx_hal_rcc.c.
Referenced by HAL_RCC_NMI_IRQHandler().
| void HAL_RCC_EnableCSS | ( | void | ) |
Enable the Clock Security System.
| None |
Definition at line 1723 of file stm32l4xx_hal_rcc.c.
| void HAL_RCC_GetClockConfig | ( | RCC_ClkInitTypeDef * | RCC_ClkInitStruct, |
| uint32_t * | pFLatency | ||
| ) |
Configure the RCC_ClkInitStruct according to the internal RCC configuration registers.
| RCC_ClkInitStruct | pointer to an RCC_ClkInitTypeDef structure that will be configured. |
| pFLatency | Pointer on the Flash Latency. |
| None |
Definition at line 1688 of file stm32l4xx_hal_rcc.c.
References __HAL_FLASH_GET_LATENCY, RCC_ClkInitTypeDef::AHBCLKDivider, RCC_ClkInitTypeDef::APB1CLKDivider, RCC_ClkInitTypeDef::APB2CLKDivider, assert_param, RCC_ClkInitTypeDef::ClockType, RCC_CLOCKTYPE_HCLK, RCC_CLOCKTYPE_PCLK1, RCC_CLOCKTYPE_PCLK2, RCC_CLOCKTYPE_SYSCLK, and RCC_ClkInitTypeDef::SYSCLKSource.
| uint32_t HAL_RCC_GetHCLKFreq | ( | void | ) |
Return the HCLK frequency.
| HCLK | frequency in Hz |
Definition at line 1493 of file stm32l4xx_hal_rcc.c.
Referenced by HAL_DAC_ConfigChannel(), HAL_RCC_GetPCLK1Freq(), and HAL_RCC_GetPCLK2Freq().
| void HAL_RCC_GetOscConfig | ( | RCC_OscInitTypeDef * | RCC_OscInitStruct | ) |
Configure the RCC_OscInitStruct according to the internal RCC configuration registers.
| RCC_OscInitStruct | pointer to an RCC_OscInitTypeDef structure that will be configured. |
| None |
Definition at line 1529 of file stm32l4xx_hal_rcc.c.
References assert_param, RCC_OscInitTypeDef::HSEState, RCC_OscInitTypeDef::HSI48State, RCC_OscInitTypeDef::HSICalibrationValue, RCC_OscInitTypeDef::HSIState, RCC_OscInitTypeDef::LSEState, RCC_OscInitTypeDef::LSIState, RCC_OscInitTypeDef::MSICalibrationValue, RCC_OscInitTypeDef::MSIClockRange, RCC_OscInitTypeDef::MSIState, RCC_OscInitTypeDef::OscillatorType, RCC_OscInitTypeDef::PLL, RCC_PLLInitTypeDef::PLLM, RCC_PLLInitTypeDef::PLLN, RCC_PLLInitTypeDef::PLLP, RCC_PLLInitTypeDef::PLLQ, RCC_PLLInitTypeDef::PLLR, RCC_PLLInitTypeDef::PLLSource, RCC_PLLInitTypeDef::PLLState, RCC_HSE_BYPASS, RCC_HSE_OFF, RCC_HSE_ON, RCC_HSI48_OFF, RCC_HSI48_ON, RCC_HSI_OFF, RCC_HSI_ON, RCC_LSE_BYPASS, RCC_LSE_OFF, RCC_LSE_ON, RCC_LSI_OFF, RCC_LSI_ON, RCC_MSI_OFF, RCC_MSI_ON, RCC_OSCILLATORTYPE_HSE, RCC_OSCILLATORTYPE_HSI, RCC_OSCILLATORTYPE_HSI48, RCC_OSCILLATORTYPE_LSI, RCC_OSCILLATORTYPE_MSI, RCC_PLL_OFF, RCC_PLL_ON, RCC_PLLP_DIV17, and RCC_PLLP_DIV7.
| uint32_t HAL_RCC_GetPCLK1Freq | ( | void | ) |
Return the PCLK1 frequency.
| PCLK1 | frequency in Hz |
Definition at line 1504 of file stm32l4xx_hal_rcc.c.
References HAL_RCC_GetHCLKFreq().
Referenced by HAL_RCCEx_GetPeriphCLKFreq(), IRDA_SetConfig(), SMARTCARD_SetConfig(), UART_SetConfig(), and USART_SetConfig().
| uint32_t HAL_RCC_GetPCLK2Freq | ( | void | ) |
Return the PCLK2 frequency.
| PCLK2 | frequency in Hz |
Definition at line 1516 of file stm32l4xx_hal_rcc.c.
References HAL_RCC_GetHCLKFreq().
Referenced by HAL_RCCEx_GetPeriphCLKFreq(), IRDA_SetConfig(), SMARTCARD_SetConfig(), UART_SetConfig(), and USART_SetConfig().
| uint32_t HAL_RCC_GetResetSource | ( | void | ) |
Get and clear reset flags.
| None |
| can | be a combination of Reset Flag |
Definition at line 1764 of file stm32l4xx_hal_rcc.c.
References RCC_RESET_FLAG_ALL.
| uint32_t HAL_RCC_GetSysClockFreq | ( | void | ) |
Return the SYSCLK frequency.
| SYSCLK | frequency |
Definition at line 1405 of file stm32l4xx_hal_rcc.c.
References __HAL_RCC_GET_PLL_OSCSOURCE, __HAL_RCC_GET_SYSCLK_SOURCE, HSE_VALUE, HSI_VALUE, RCC_PLLSOURCE_HSE, RCC_PLLSOURCE_HSI, and RCC_PLLSOURCE_MSI.
Referenced by HAL_RCC_ClockConfig(), HAL_RCC_OscConfig(), HAL_RCCEx_GetPeriphCLKFreq(), IRDA_SetConfig(), SMARTCARD_SetConfig(), UART_SetConfig(), and USART_SetConfig().
| void HAL_RCC_MCOConfig | ( | uint32_t | RCC_MCOx, |
| uint32_t | RCC_MCOSource, | ||
| uint32_t | RCC_MCODiv | ||
| ) |
Select the clock source to output on MCO pin(PA8).
| RCC_MCOx | specifies the output direction for the clock source. For STM32L4xx family this parameter can have only one value:
|
| RCC_MCOSource | specifies the clock source to output. This parameter can be one of the following values:
|
| RCC_MCODiv | specifies the MCO prescaler. This parameter can be one of the following values:
|
| None |
Definition at line 1346 of file stm32l4xx_hal_rcc.c.
References __MCO1_CLK_ENABLE, GPIO_InitTypeDef::Alternate, assert_param, GPIO_AF0_MCO, GPIO_MODE_AF_PP, GPIO_NOPULL, GPIO_SPEED_FREQ_HIGH, HAL_GPIO_Init(), IS_RCC_MCO, IS_RCC_MCO1SOURCE, IS_RCC_MCODIV, MCO1_GPIO_PORT, MCO1_PIN, GPIO_InitTypeDef::Mode, GPIO_InitTypeDef::Pin, GPIO_InitTypeDef::Pull, and GPIO_InitTypeDef::Speed.
| void HAL_RCC_NMI_IRQHandler | ( | void | ) |
Handle the RCC Clock Security System interrupt request.
| None |
Definition at line 1733 of file stm32l4xx_hal_rcc.c.
References __HAL_RCC_CLEAR_IT, __HAL_RCC_GET_IT, HAL_RCC_CSSCallback(), and RCC_IT_CSS.
1.7.6.1