STM32F479xx HAL User Manual
|
Header file of RCC HAL module. More...
Go to the source code of this file.
Data Structures | |
struct | RCC_OscInitTypeDef |
RCC Internal/External Oscillator (HSE, HSI, LSE and LSI) configuration structure definition. More... | |
struct | RCC_ClkInitTypeDef |
RCC System, AHB and APB busses clock configuration structure definition. More... | |
Defines | |
#define | RCC_OSCILLATORTYPE_NONE 0x00000000U |
#define | RCC_OSCILLATORTYPE_HSE 0x00000001U |
#define | RCC_OSCILLATORTYPE_HSI 0x00000002U |
#define | RCC_OSCILLATORTYPE_LSE 0x00000004U |
#define | RCC_OSCILLATORTYPE_LSI 0x00000008U |
#define | RCC_HSE_OFF 0x00000000U |
#define | RCC_HSE_ON RCC_CR_HSEON |
#define | RCC_HSE_BYPASS ((uint32_t)(RCC_CR_HSEBYP | RCC_CR_HSEON)) |
#define | RCC_LSE_OFF 0x00000000U |
#define | RCC_LSE_ON RCC_BDCR_LSEON |
#define | RCC_LSE_BYPASS ((uint32_t)(RCC_BDCR_LSEBYP | RCC_BDCR_LSEON)) |
#define | RCC_HSI_OFF ((uint8_t)0x00) |
#define | RCC_HSI_ON ((uint8_t)0x01) |
#define | RCC_HSICALIBRATION_DEFAULT 0x10U /* Default HSI calibration trimming value */ |
#define | RCC_LSI_OFF ((uint8_t)0x00) |
#define | RCC_LSI_ON ((uint8_t)0x01) |
#define | RCC_PLL_NONE ((uint8_t)0x00) |
#define | RCC_PLL_OFF ((uint8_t)0x01) |
#define | RCC_PLL_ON ((uint8_t)0x02) |
#define | RCC_PLLP_DIV2 0x00000002U |
#define | RCC_PLLP_DIV4 0x00000004U |
#define | RCC_PLLP_DIV6 0x00000006U |
#define | RCC_PLLP_DIV8 0x00000008U |
#define | RCC_PLLSOURCE_HSI RCC_PLLCFGR_PLLSRC_HSI |
#define | RCC_PLLSOURCE_HSE RCC_PLLCFGR_PLLSRC_HSE |
#define | RCC_CLOCKTYPE_SYSCLK 0x00000001U |
#define | RCC_CLOCKTYPE_HCLK 0x00000002U |
#define | RCC_CLOCKTYPE_PCLK1 0x00000004U |
#define | RCC_CLOCKTYPE_PCLK2 0x00000008U |
#define | RCC_SYSCLKSOURCE_HSI RCC_CFGR_SW_HSI |
#define | RCC_SYSCLKSOURCE_HSE RCC_CFGR_SW_HSE |
#define | RCC_SYSCLKSOURCE_PLLCLK RCC_CFGR_SW_PLL |
#define | RCC_SYSCLKSOURCE_PLLRCLK ((uint32_t)(RCC_CFGR_SW_0 | RCC_CFGR_SW_1)) |
#define | RCC_SYSCLKSOURCE_STATUS_HSI RCC_CFGR_SWS_HSI |
#define | RCC_SYSCLKSOURCE_STATUS_HSE RCC_CFGR_SWS_HSE |
#define | RCC_SYSCLKSOURCE_STATUS_PLLCLK RCC_CFGR_SWS_PLL |
#define | RCC_SYSCLKSOURCE_STATUS_PLLRCLK ((uint32_t)(RCC_CFGR_SWS_0 | RCC_CFGR_SWS_1)) |
#define | RCC_SYSCLK_DIV1 RCC_CFGR_HPRE_DIV1 |
#define | RCC_SYSCLK_DIV2 RCC_CFGR_HPRE_DIV2 |
#define | RCC_SYSCLK_DIV4 RCC_CFGR_HPRE_DIV4 |
#define | RCC_SYSCLK_DIV8 RCC_CFGR_HPRE_DIV8 |
#define | RCC_SYSCLK_DIV16 RCC_CFGR_HPRE_DIV16 |
#define | RCC_SYSCLK_DIV64 RCC_CFGR_HPRE_DIV64 |
#define | RCC_SYSCLK_DIV128 RCC_CFGR_HPRE_DIV128 |
#define | RCC_SYSCLK_DIV256 RCC_CFGR_HPRE_DIV256 |
#define | RCC_SYSCLK_DIV512 RCC_CFGR_HPRE_DIV512 |
#define | RCC_HCLK_DIV1 RCC_CFGR_PPRE1_DIV1 |
#define | RCC_HCLK_DIV2 RCC_CFGR_PPRE1_DIV2 |
#define | RCC_HCLK_DIV4 RCC_CFGR_PPRE1_DIV4 |
#define | RCC_HCLK_DIV8 RCC_CFGR_PPRE1_DIV8 |
#define | RCC_HCLK_DIV16 RCC_CFGR_PPRE1_DIV16 |
#define | RCC_RTCCLKSOURCE_NO_CLK 0x00000000U |
#define | RCC_RTCCLKSOURCE_LSE 0x00000100U |
#define | RCC_RTCCLKSOURCE_LSI 0x00000200U |
#define | RCC_RTCCLKSOURCE_HSE_DIVX 0x00000300U |
#define | RCC_RTCCLKSOURCE_HSE_DIV2 0x00020300U |
#define | RCC_RTCCLKSOURCE_HSE_DIV3 0x00030300U |
#define | RCC_RTCCLKSOURCE_HSE_DIV4 0x00040300U |
#define | RCC_RTCCLKSOURCE_HSE_DIV5 0x00050300U |
#define | RCC_RTCCLKSOURCE_HSE_DIV6 0x00060300U |
#define | RCC_RTCCLKSOURCE_HSE_DIV7 0x00070300U |
#define | RCC_RTCCLKSOURCE_HSE_DIV8 0x00080300U |
#define | RCC_RTCCLKSOURCE_HSE_DIV9 0x00090300U |
#define | RCC_RTCCLKSOURCE_HSE_DIV10 0x000A0300U |
#define | RCC_RTCCLKSOURCE_HSE_DIV11 0x000B0300U |
#define | RCC_RTCCLKSOURCE_HSE_DIV12 0x000C0300U |
#define | RCC_RTCCLKSOURCE_HSE_DIV13 0x000D0300U |
#define | RCC_RTCCLKSOURCE_HSE_DIV14 0x000E0300U |
#define | RCC_RTCCLKSOURCE_HSE_DIV15 0x000F0300U |
#define | RCC_RTCCLKSOURCE_HSE_DIV16 0x00100300U |
#define | RCC_RTCCLKSOURCE_HSE_DIV17 0x00110300U |
#define | RCC_RTCCLKSOURCE_HSE_DIV18 0x00120300U |
#define | RCC_RTCCLKSOURCE_HSE_DIV19 0x00130300U |
#define | RCC_RTCCLKSOURCE_HSE_DIV20 0x00140300U |
#define | RCC_RTCCLKSOURCE_HSE_DIV21 0x00150300U |
#define | RCC_RTCCLKSOURCE_HSE_DIV22 0x00160300U |
#define | RCC_RTCCLKSOURCE_HSE_DIV23 0x00170300U |
#define | RCC_RTCCLKSOURCE_HSE_DIV24 0x00180300U |
#define | RCC_RTCCLKSOURCE_HSE_DIV25 0x00190300U |
#define | RCC_RTCCLKSOURCE_HSE_DIV26 0x001A0300U |
#define | RCC_RTCCLKSOURCE_HSE_DIV27 0x001B0300U |
#define | RCC_RTCCLKSOURCE_HSE_DIV28 0x001C0300U |
#define | RCC_RTCCLKSOURCE_HSE_DIV29 0x001D0300U |
#define | RCC_RTCCLKSOURCE_HSE_DIV30 0x001E0300U |
#define | RCC_RTCCLKSOURCE_HSE_DIV31 0x001F0300U |
#define | RCC_MCO1 0x00000000U |
#define | RCC_MCO2 0x00000001U |
#define | RCC_MCO1SOURCE_HSI 0x00000000U |
#define | RCC_MCO1SOURCE_LSE RCC_CFGR_MCO1_0 |
#define | RCC_MCO1SOURCE_HSE RCC_CFGR_MCO1_1 |
#define | RCC_MCO1SOURCE_PLLCLK RCC_CFGR_MCO1 |
#define | RCC_MCODIV_1 0x00000000U |
#define | RCC_MCODIV_2 RCC_CFGR_MCO1PRE_2 |
#define | RCC_MCODIV_3 ((uint32_t)RCC_CFGR_MCO1PRE_0 | RCC_CFGR_MCO1PRE_2) |
#define | RCC_MCODIV_4 ((uint32_t)RCC_CFGR_MCO1PRE_1 | RCC_CFGR_MCO1PRE_2) |
#define | RCC_MCODIV_5 RCC_CFGR_MCO1PRE |
#define | RCC_IT_LSIRDY ((uint8_t)0x01) |
#define | RCC_IT_LSERDY ((uint8_t)0x02) |
#define | RCC_IT_HSIRDY ((uint8_t)0x04) |
#define | RCC_IT_HSERDY ((uint8_t)0x08) |
#define | RCC_IT_PLLRDY ((uint8_t)0x10) |
#define | RCC_IT_PLLI2SRDY ((uint8_t)0x20) |
#define | RCC_IT_CSS ((uint8_t)0x80) |
#define | RCC_FLAG_HSIRDY ((uint8_t)0x21) |
#define | RCC_FLAG_HSERDY ((uint8_t)0x31) |
#define | RCC_FLAG_PLLRDY ((uint8_t)0x39) |
#define | RCC_FLAG_PLLI2SRDY ((uint8_t)0x3B) |
#define | RCC_FLAG_LSERDY ((uint8_t)0x41) |
#define | RCC_FLAG_LSIRDY ((uint8_t)0x61) |
#define | RCC_FLAG_BORRST ((uint8_t)0x79) |
#define | RCC_FLAG_PINRST ((uint8_t)0x7A) |
#define | RCC_FLAG_PORRST ((uint8_t)0x7B) |
#define | RCC_FLAG_SFTRST ((uint8_t)0x7C) |
#define | RCC_FLAG_IWDGRST ((uint8_t)0x7D) |
#define | RCC_FLAG_WWDGRST ((uint8_t)0x7E) |
#define | RCC_FLAG_LPWRRST ((uint8_t)0x7F) |
#define | __HAL_RCC_GPIOA_CLK_ENABLE() |
#define | __HAL_RCC_GPIOB_CLK_ENABLE() |
#define | __HAL_RCC_GPIOC_CLK_ENABLE() |
#define | __HAL_RCC_GPIOH_CLK_ENABLE() |
#define | __HAL_RCC_DMA1_CLK_ENABLE() |
#define | __HAL_RCC_DMA2_CLK_ENABLE() |
#define | __HAL_RCC_GPIOA_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIOAEN)) |
#define | __HAL_RCC_GPIOB_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIOBEN)) |
#define | __HAL_RCC_GPIOC_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIOCEN)) |
#define | __HAL_RCC_GPIOH_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIOHEN)) |
#define | __HAL_RCC_DMA1_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_DMA1EN)) |
#define | __HAL_RCC_DMA2_CLK_DISABLE() (RCC->AHB1ENR &= ~(RCC_AHB1ENR_DMA2EN)) |
#define | __HAL_RCC_GPIOA_IS_CLK_ENABLED() ((RCC->AHB1ENR &(RCC_AHB1ENR_GPIOAEN)) != RESET) |
#define | __HAL_RCC_GPIOB_IS_CLK_ENABLED() ((RCC->AHB1ENR &(RCC_AHB1ENR_GPIOBEN)) != RESET) |
#define | __HAL_RCC_GPIOC_IS_CLK_ENABLED() ((RCC->AHB1ENR &(RCC_AHB1ENR_GPIOCEN)) != RESET) |
#define | __HAL_RCC_GPIOH_IS_CLK_ENABLED() ((RCC->AHB1ENR &(RCC_AHB1ENR_GPIOHEN)) != RESET) |
#define | __HAL_RCC_DMA1_IS_CLK_ENABLED() ((RCC->AHB1ENR &(RCC_AHB1ENR_DMA1EN)) != RESET) |
#define | __HAL_RCC_DMA2_IS_CLK_ENABLED() ((RCC->AHB1ENR &(RCC_AHB1ENR_DMA2EN)) != RESET) |
#define | __HAL_RCC_GPIOA_IS_CLK_DISABLED() ((RCC->AHB1ENR &(RCC_AHB1ENR_GPIOAEN)) == RESET) |
#define | __HAL_RCC_GPIOB_IS_CLK_DISABLED() ((RCC->AHB1ENR &(RCC_AHB1ENR_GPIOBEN)) == RESET) |
#define | __HAL_RCC_GPIOC_IS_CLK_DISABLED() ((RCC->AHB1ENR &(RCC_AHB1ENR_GPIOCEN)) == RESET) |
#define | __HAL_RCC_GPIOH_IS_CLK_DISABLED() ((RCC->AHB1ENR &(RCC_AHB1ENR_GPIOHEN)) == RESET) |
#define | __HAL_RCC_DMA1_IS_CLK_DISABLED() ((RCC->AHB1ENR &(RCC_AHB1ENR_DMA1EN)) == RESET) |
#define | __HAL_RCC_DMA2_IS_CLK_DISABLED() ((RCC->AHB1ENR &(RCC_AHB1ENR_DMA2EN)) == RESET) |
#define | __HAL_RCC_TIM5_CLK_ENABLE() |
#define | __HAL_RCC_WWDG_CLK_ENABLE() |
#define | __HAL_RCC_SPI2_CLK_ENABLE() |
#define | __HAL_RCC_USART2_CLK_ENABLE() |
#define | __HAL_RCC_I2C1_CLK_ENABLE() |
#define | __HAL_RCC_I2C2_CLK_ENABLE() |
#define | __HAL_RCC_PWR_CLK_ENABLE() |
#define | __HAL_RCC_TIM5_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_TIM5EN)) |
#define | __HAL_RCC_WWDG_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_WWDGEN)) |
#define | __HAL_RCC_SPI2_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_SPI2EN)) |
#define | __HAL_RCC_USART2_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_USART2EN)) |
#define | __HAL_RCC_I2C1_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_I2C1EN)) |
#define | __HAL_RCC_I2C2_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_I2C2EN)) |
#define | __HAL_RCC_PWR_CLK_DISABLE() (RCC->APB1ENR &= ~(RCC_APB1ENR_PWREN)) |
#define | __HAL_RCC_TIM5_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM5EN)) != RESET) |
#define | __HAL_RCC_WWDG_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_WWDGEN)) != RESET) |
#define | __HAL_RCC_SPI2_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_SPI2EN)) != RESET) |
#define | __HAL_RCC_USART2_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_USART2EN)) != RESET) |
#define | __HAL_RCC_I2C1_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_I2C1EN)) != RESET) |
#define | __HAL_RCC_I2C2_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_I2C2EN)) != RESET) |
#define | __HAL_RCC_PWR_IS_CLK_ENABLED() ((RCC->APB1ENR & (RCC_APB1ENR_PWREN)) != RESET) |
#define | __HAL_RCC_TIM5_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_TIM5EN)) == RESET) |
#define | __HAL_RCC_WWDG_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_WWDGEN)) == RESET) |
#define | __HAL_RCC_SPI2_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_SPI2EN)) == RESET) |
#define | __HAL_RCC_USART2_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_USART2EN)) == RESET) |
#define | __HAL_RCC_I2C1_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_I2C1EN)) == RESET) |
#define | __HAL_RCC_I2C2_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_I2C2EN)) == RESET) |
#define | __HAL_RCC_PWR_IS_CLK_DISABLED() ((RCC->APB1ENR & (RCC_APB1ENR_PWREN)) == RESET) |
#define | __HAL_RCC_TIM1_CLK_ENABLE() |
#define | __HAL_RCC_USART1_CLK_ENABLE() |
#define | __HAL_RCC_USART6_CLK_ENABLE() |
#define | __HAL_RCC_ADC1_CLK_ENABLE() |
#define | __HAL_RCC_SPI1_CLK_ENABLE() |
#define | __HAL_RCC_SYSCFG_CLK_ENABLE() |
#define | __HAL_RCC_TIM9_CLK_ENABLE() |
#define | __HAL_RCC_TIM11_CLK_ENABLE() |
#define | __HAL_RCC_TIM1_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_TIM1EN)) |
#define | __HAL_RCC_USART1_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_USART1EN)) |
#define | __HAL_RCC_USART6_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_USART6EN)) |
#define | __HAL_RCC_ADC1_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_ADC1EN)) |
#define | __HAL_RCC_SPI1_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_SPI1EN)) |
#define | __HAL_RCC_SYSCFG_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_SYSCFGEN)) |
#define | __HAL_RCC_TIM9_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_TIM9EN)) |
#define | __HAL_RCC_TIM11_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_TIM11EN)) |
#define | __HAL_RCC_TIM1_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_TIM1EN)) != RESET) |
#define | __HAL_RCC_USART1_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_USART1EN)) != RESET) |
#define | __HAL_RCC_USART6_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_USART6EN)) != RESET) |
#define | __HAL_RCC_ADC1_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_ADC1EN)) != RESET) |
#define | __HAL_RCC_SPI1_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SPI1EN)) != RESET) |
#define | __HAL_RCC_SYSCFG_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SYSCFGEN)) != RESET) |
#define | __HAL_RCC_TIM9_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_TIM9EN)) != RESET) |
#define | __HAL_RCC_TIM11_IS_CLK_ENABLED() ((RCC->APB2ENR & (RCC_APB2ENR_TIM11EN)) != RESET) |
#define | __HAL_RCC_TIM1_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_TIM1EN)) == RESET) |
#define | __HAL_RCC_USART1_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_USART1EN)) == RESET) |
#define | __HAL_RCC_USART6_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_USART6EN)) == RESET) |
#define | __HAL_RCC_ADC1_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_ADC1EN)) == RESET) |
#define | __HAL_RCC_SPI1_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SPI1EN)) == RESET) |
#define | __HAL_RCC_SYSCFG_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_SYSCFGEN)) == RESET) |
#define | __HAL_RCC_TIM9_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_TIM9EN)) == RESET) |
#define | __HAL_RCC_TIM11_IS_CLK_DISABLED() ((RCC->APB2ENR & (RCC_APB2ENR_TIM11EN)) == RESET) |
#define | __HAL_RCC_AHB1_FORCE_RESET() (RCC->AHB1RSTR = 0xFFFFFFFFU) |
#define | __HAL_RCC_GPIOA_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_GPIOARST)) |
#define | __HAL_RCC_GPIOB_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_GPIOBRST)) |
#define | __HAL_RCC_GPIOC_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_GPIOCRST)) |
#define | __HAL_RCC_GPIOH_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_GPIOHRST)) |
#define | __HAL_RCC_DMA1_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_DMA1RST)) |
#define | __HAL_RCC_DMA2_FORCE_RESET() (RCC->AHB1RSTR |= (RCC_AHB1RSTR_DMA2RST)) |
#define | __HAL_RCC_AHB1_RELEASE_RESET() (RCC->AHB1RSTR = 0x00U) |
#define | __HAL_RCC_GPIOA_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_GPIOARST)) |
#define | __HAL_RCC_GPIOB_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_GPIOBRST)) |
#define | __HAL_RCC_GPIOC_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_GPIOCRST)) |
#define | __HAL_RCC_GPIOH_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_GPIOHRST)) |
#define | __HAL_RCC_DMA1_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_DMA1RST)) |
#define | __HAL_RCC_DMA2_RELEASE_RESET() (RCC->AHB1RSTR &= ~(RCC_AHB1RSTR_DMA2RST)) |
#define | __HAL_RCC_APB1_FORCE_RESET() (RCC->APB1RSTR = 0xFFFFFFFFU) |
#define | __HAL_RCC_TIM5_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_TIM5RST)) |
#define | __HAL_RCC_WWDG_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_WWDGRST)) |
#define | __HAL_RCC_SPI2_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_SPI2RST)) |
#define | __HAL_RCC_USART2_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_USART2RST)) |
#define | __HAL_RCC_I2C1_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_I2C1RST)) |
#define | __HAL_RCC_I2C2_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_I2C2RST)) |
#define | __HAL_RCC_PWR_FORCE_RESET() (RCC->APB1RSTR |= (RCC_APB1RSTR_PWRRST)) |
#define | __HAL_RCC_APB1_RELEASE_RESET() (RCC->APB1RSTR = 0x00U) |
#define | __HAL_RCC_TIM5_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_TIM5RST)) |
#define | __HAL_RCC_WWDG_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_WWDGRST)) |
#define | __HAL_RCC_SPI2_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_SPI2RST)) |
#define | __HAL_RCC_USART2_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_USART2RST)) |
#define | __HAL_RCC_I2C1_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_I2C1RST)) |
#define | __HAL_RCC_I2C2_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_I2C2RST)) |
#define | __HAL_RCC_PWR_RELEASE_RESET() (RCC->APB1RSTR &= ~(RCC_APB1RSTR_PWRRST)) |
#define | __HAL_RCC_APB2_FORCE_RESET() (RCC->APB2RSTR = 0xFFFFFFFFU) |
#define | __HAL_RCC_TIM1_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_TIM1RST)) |
#define | __HAL_RCC_USART1_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_USART1RST)) |
#define | __HAL_RCC_USART6_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_USART6RST)) |
#define | __HAL_RCC_ADC_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_ADCRST)) |
#define | __HAL_RCC_SPI1_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_SPI1RST)) |
#define | __HAL_RCC_SYSCFG_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_SYSCFGRST)) |
#define | __HAL_RCC_TIM9_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_TIM9RST)) |
#define | __HAL_RCC_TIM11_FORCE_RESET() (RCC->APB2RSTR |= (RCC_APB2RSTR_TIM11RST)) |
#define | __HAL_RCC_APB2_RELEASE_RESET() (RCC->APB2RSTR = 0x00U) |
#define | __HAL_RCC_TIM1_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_TIM1RST)) |
#define | __HAL_RCC_USART1_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_USART1RST)) |
#define | __HAL_RCC_USART6_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_USART6RST)) |
#define | __HAL_RCC_ADC_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_ADCRST)) |
#define | __HAL_RCC_SPI1_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_SPI1RST)) |
#define | __HAL_RCC_SYSCFG_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_SYSCFGRST)) |
#define | __HAL_RCC_TIM9_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_TIM9RST)) |
#define | __HAL_RCC_TIM11_RELEASE_RESET() (RCC->APB2RSTR &= ~(RCC_APB2RSTR_TIM11RST)) |
#define | __HAL_RCC_GPIOA_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOALPEN)) |
#define | __HAL_RCC_GPIOB_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOBLPEN)) |
#define | __HAL_RCC_GPIOC_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOCLPEN)) |
#define | __HAL_RCC_GPIOH_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_GPIOHLPEN)) |
#define | __HAL_RCC_DMA1_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_DMA1LPEN)) |
#define | __HAL_RCC_DMA2_CLK_SLEEP_ENABLE() (RCC->AHB1LPENR |= (RCC_AHB1LPENR_DMA2LPEN)) |
#define | __HAL_RCC_GPIOA_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOALPEN)) |
#define | __HAL_RCC_GPIOB_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOBLPEN)) |
#define | __HAL_RCC_GPIOC_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOCLPEN)) |
#define | __HAL_RCC_GPIOH_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_GPIOHLPEN)) |
#define | __HAL_RCC_DMA1_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_DMA1LPEN)) |
#define | __HAL_RCC_DMA2_CLK_SLEEP_DISABLE() (RCC->AHB1LPENR &= ~(RCC_AHB1LPENR_DMA2LPEN)) |
#define | __HAL_RCC_TIM5_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_TIM5LPEN)) |
#define | __HAL_RCC_WWDG_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_WWDGLPEN)) |
#define | __HAL_RCC_SPI2_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_SPI2LPEN)) |
#define | __HAL_RCC_USART2_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_USART2LPEN)) |
#define | __HAL_RCC_I2C1_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_I2C1LPEN)) |
#define | __HAL_RCC_I2C2_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_I2C2LPEN)) |
#define | __HAL_RCC_PWR_CLK_SLEEP_ENABLE() (RCC->APB1LPENR |= (RCC_APB1LPENR_PWRLPEN)) |
#define | __HAL_RCC_TIM5_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_TIM5LPEN)) |
#define | __HAL_RCC_WWDG_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_WWDGLPEN)) |
#define | __HAL_RCC_SPI2_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_SPI2LPEN)) |
#define | __HAL_RCC_USART2_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_USART2LPEN)) |
#define | __HAL_RCC_I2C1_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_I2C1LPEN)) |
#define | __HAL_RCC_I2C2_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_I2C2LPEN)) |
#define | __HAL_RCC_PWR_CLK_SLEEP_DISABLE() (RCC->APB1LPENR &= ~(RCC_APB1LPENR_PWRLPEN)) |
#define | __HAL_RCC_TIM1_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM1LPEN)) |
#define | __HAL_RCC_USART1_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_USART1LPEN)) |
#define | __HAL_RCC_USART6_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_USART6LPEN)) |
#define | __HAL_RCC_ADC1_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_ADC1LPEN)) |
#define | __HAL_RCC_SPI1_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_SPI1LPEN)) |
#define | __HAL_RCC_SYSCFG_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_SYSCFGLPEN)) |
#define | __HAL_RCC_TIM9_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM9LPEN)) |
#define | __HAL_RCC_TIM11_CLK_SLEEP_ENABLE() (RCC->APB2LPENR |= (RCC_APB2LPENR_TIM11LPEN)) |
#define | __HAL_RCC_TIM1_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM1LPEN)) |
#define | __HAL_RCC_USART1_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_USART1LPEN)) |
#define | __HAL_RCC_USART6_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_USART6LPEN)) |
#define | __HAL_RCC_ADC1_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_ADC1LPEN)) |
#define | __HAL_RCC_SPI1_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SPI1LPEN)) |
#define | __HAL_RCC_SYSCFG_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_SYSCFGLPEN)) |
#define | __HAL_RCC_TIM9_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM9LPEN)) |
#define | __HAL_RCC_TIM11_CLK_SLEEP_DISABLE() (RCC->APB2LPENR &= ~(RCC_APB2LPENR_TIM11LPEN)) |
#define | __HAL_RCC_HSI_ENABLE() (*(__IO uint32_t *) RCC_CR_HSION_BB = ENABLE) |
Macros to enable or disable the Internal High Speed oscillator (HSI). | |
#define | __HAL_RCC_HSI_DISABLE() (*(__IO uint32_t *) RCC_CR_HSION_BB = DISABLE) |
#define | __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(__HSICalibrationValue__) |
Macro to adjust the Internal High Speed oscillator (HSI) calibration value. | |
#define | __HAL_RCC_LSI_ENABLE() (*(__IO uint32_t *) RCC_CSR_LSION_BB = ENABLE) |
Macros to enable or disable the Internal Low Speed oscillator (LSI). | |
#define | __HAL_RCC_LSI_DISABLE() (*(__IO uint32_t *) RCC_CSR_LSION_BB = DISABLE) |
#define | __HAL_RCC_HSE_CONFIG(__STATE__) |
Macro to configure the External High Speed oscillator (HSE). | |
#define | __HAL_RCC_LSE_CONFIG(__STATE__) |
Macro to configure the External Low Speed oscillator (LSE). | |
#define | __HAL_RCC_RTC_ENABLE() (*(__IO uint32_t *) RCC_BDCR_RTCEN_BB = ENABLE) |
Macros to enable or disable the RTC clock. | |
#define | __HAL_RCC_RTC_DISABLE() (*(__IO uint32_t *) RCC_BDCR_RTCEN_BB = DISABLE) |
#define | __HAL_RCC_RTC_CLKPRESCALER(__RTCCLKSource__) |
Macros to configure the RTC clock (RTCCLK). | |
#define | __HAL_RCC_RTC_CONFIG(__RTCCLKSource__) |
#define | __HAL_RCC_GET_RTC_SOURCE() (READ_BIT(RCC->BDCR, RCC_BDCR_RTCSEL)) |
Macro to get the RTC clock source. | |
#define | __HAL_RCC_GET_RTC_HSE_PRESCALER() (READ_BIT(RCC->CFGR, RCC_CFGR_RTCPRE) | RCC_BDCR_RTCSEL) |
Get the RTC and HSE clock divider (RTCPRE). | |
#define | __HAL_RCC_BACKUPRESET_FORCE() (*(__IO uint32_t *) RCC_BDCR_BDRST_BB = ENABLE) |
Macros to force or release the Backup domain reset. | |
#define | __HAL_RCC_BACKUPRESET_RELEASE() (*(__IO uint32_t *) RCC_BDCR_BDRST_BB = DISABLE) |
#define | __HAL_RCC_PLL_ENABLE() (*(__IO uint32_t *) RCC_CR_PLLON_BB = ENABLE) |
Macros to enable or disable the main PLL. | |
#define | __HAL_RCC_PLL_DISABLE() (*(__IO uint32_t *) RCC_CR_PLLON_BB = DISABLE) |
#define | __HAL_RCC_PLL_PLLSOURCE_CONFIG(__PLLSOURCE__) MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLLSRC, (__PLLSOURCE__)) |
Macro to configure the PLL clock source. | |
#define | __HAL_RCC_PLL_PLLM_CONFIG(__PLLM__) MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLLM, (__PLLM__)) |
Macro to configure the PLL multiplication factor. | |
#define | __HAL_RCC_SYSCLK_CONFIG(__RCC_SYSCLKSOURCE__) MODIFY_REG(RCC->CFGR, RCC_CFGR_SW, (__RCC_SYSCLKSOURCE__)) |
Macro to configure the system clock source. | |
#define | __HAL_RCC_GET_SYSCLK_SOURCE() (RCC->CFGR & RCC_CFGR_SWS) |
Macro to get the clock source used as system clock. | |
#define | __HAL_RCC_GET_PLL_OSCSOURCE() ((uint32_t)(RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC)) |
Macro to get the oscillator used as PLL clock source. | |
#define | __HAL_RCC_MCO1_CONFIG(__MCOCLKSOURCE__, __MCODIV__) MODIFY_REG(RCC->CFGR, (RCC_CFGR_MCO1 | RCC_CFGR_MCO1PRE), ((__MCOCLKSOURCE__) | (__MCODIV__))) |
Macro to configure the MCO1 clock. | |
#define | __HAL_RCC_MCO2_CONFIG(__MCOCLKSOURCE__, __MCODIV__) MODIFY_REG(RCC->CFGR, (RCC_CFGR_MCO2 | RCC_CFGR_MCO2PRE), ((__MCOCLKSOURCE__) | ((__MCODIV__) << 3U))); |
Macro to configure the MCO2 clock. | |
#define | __HAL_RCC_ENABLE_IT(__INTERRUPT__) (*(__IO uint8_t *) RCC_CIR_BYTE1_ADDRESS |= (__INTERRUPT__)) |
Enable RCC interrupt (Perform Byte access to RCC_CIR[14:8] bits to enable the selected interrupts). | |
#define | __HAL_RCC_DISABLE_IT(__INTERRUPT__) (*(__IO uint8_t *) RCC_CIR_BYTE1_ADDRESS &= (uint8_t)(~(__INTERRUPT__))) |
Disable RCC interrupt (Perform Byte access to RCC_CIR[14:8] bits to disable the selected interrupts). | |
#define | __HAL_RCC_CLEAR_IT(__INTERRUPT__) (*(__IO uint8_t *) RCC_CIR_BYTE2_ADDRESS = (__INTERRUPT__)) |
Clear the RCC's interrupt pending bits (Perform Byte access to RCC_CIR[23:16] bits to clear the selected interrupt pending bits. | |
#define | __HAL_RCC_GET_IT(__INTERRUPT__) ((RCC->CIR & (__INTERRUPT__)) == (__INTERRUPT__)) |
Check the RCC's interrupt has occurred or not. | |
#define | __HAL_RCC_CLEAR_RESET_FLAGS() (RCC->CSR |= RCC_CSR_RMVF) |
Set RMVF bit to clear the reset flags: RCC_FLAG_PINRST, RCC_FLAG_PORRST, RCC_FLAG_SFTRST, RCC_FLAG_IWDGRST, RCC_FLAG_WWDGRST and RCC_FLAG_LPWRRST. | |
#define | RCC_FLAG_MASK ((uint8_t)0x1FU) |
Check RCC flag is set or not. | |
#define | __HAL_RCC_GET_FLAG(__FLAG__) (((((((__FLAG__) >> 5U) == 1U)? RCC->CR :((((__FLAG__) >> 5U) == 2U) ? RCC->BDCR :((((__FLAG__) >> 5U) == 3U)? RCC->CSR :RCC->CIR))) & (1U << ((__FLAG__) & RCC_FLAG_MASK)))!= 0U)? 1U : 0U) |
#define | RCC_OFFSET (RCC_BASE - PERIPH_BASE) |
#define | RCC_CR_OFFSET (RCC_OFFSET + 0x00U) |
#define | RCC_HSION_BIT_NUMBER 0x00U |
#define | RCC_CR_HSION_BB (PERIPH_BB_BASE + (RCC_CR_OFFSET * 32U) + (RCC_HSION_BIT_NUMBER * 4U)) |
#define | RCC_CSSON_BIT_NUMBER 0x13U |
#define | RCC_CR_CSSON_BB (PERIPH_BB_BASE + (RCC_CR_OFFSET * 32U) + (RCC_CSSON_BIT_NUMBER * 4U)) |
#define | RCC_PLLON_BIT_NUMBER 0x18U |
#define | RCC_CR_PLLON_BB (PERIPH_BB_BASE + (RCC_CR_OFFSET * 32U) + (RCC_PLLON_BIT_NUMBER * 4U)) |
#define | RCC_BDCR_OFFSET (RCC_OFFSET + 0x70U) |
#define | RCC_RTCEN_BIT_NUMBER 0x0FU |
#define | RCC_BDCR_RTCEN_BB (PERIPH_BB_BASE + (RCC_BDCR_OFFSET * 32U) + (RCC_RTCEN_BIT_NUMBER * 4U)) |
#define | RCC_BDRST_BIT_NUMBER 0x10U |
#define | RCC_BDCR_BDRST_BB (PERIPH_BB_BASE + (RCC_BDCR_OFFSET * 32U) + (RCC_BDRST_BIT_NUMBER * 4U)) |
#define | RCC_CSR_OFFSET (RCC_OFFSET + 0x74U) |
#define | RCC_LSION_BIT_NUMBER 0x00U |
#define | RCC_CSR_LSION_BB (PERIPH_BB_BASE + (RCC_CSR_OFFSET * 32U) + (RCC_LSION_BIT_NUMBER * 4U)) |
#define | RCC_CR_BYTE2_ADDRESS 0x40023802U |
#define | RCC_CIR_BYTE1_ADDRESS ((uint32_t)(RCC_BASE + 0x0CU + 0x01U)) |
#define | RCC_CIR_BYTE2_ADDRESS ((uint32_t)(RCC_BASE + 0x0CU + 0x02U)) |
#define | RCC_BDCR_BYTE0_ADDRESS (PERIPH_BASE + RCC_BDCR_OFFSET) |
#define | RCC_DBP_TIMEOUT_VALUE 2U |
#define | RCC_LSE_TIMEOUT_VALUE LSE_STARTUP_TIMEOUT |
#define | HSE_TIMEOUT_VALUE HSE_STARTUP_TIMEOUT |
#define | HSI_TIMEOUT_VALUE 2U /* 2 ms */ |
#define | LSI_TIMEOUT_VALUE 2U /* 2 ms */ |
#define | CLOCKSWITCH_TIMEOUT_VALUE 5000U /* 5 s */ |
#define | IS_RCC_OSCILLATORTYPE(OSCILLATOR) ((OSCILLATOR) <= 15U) |
#define | IS_RCC_HSE(HSE) |
#define | IS_RCC_LSE(LSE) |
#define | IS_RCC_HSI(HSI) (((HSI) == RCC_HSI_OFF) || ((HSI) == RCC_HSI_ON)) |
#define | IS_RCC_LSI(LSI) (((LSI) == RCC_LSI_OFF) || ((LSI) == RCC_LSI_ON)) |
#define | IS_RCC_PLL(PLL) (((PLL) == RCC_PLL_NONE) ||((PLL) == RCC_PLL_OFF) || ((PLL) == RCC_PLL_ON)) |
#define | IS_RCC_PLLSOURCE(SOURCE) |
#define | IS_RCC_SYSCLKSOURCE(SOURCE) |
#define | IS_RCC_RTCCLKSOURCE(__SOURCE__) |
#define | IS_RCC_PLLM_VALUE(VALUE) ((VALUE) <= 63U) |
#define | IS_RCC_PLLP_VALUE(VALUE) (((VALUE) == 2U) || ((VALUE) == 4U) || ((VALUE) == 6U) || ((VALUE) == 8U)) |
#define | IS_RCC_PLLQ_VALUE(VALUE) ((2U <= (VALUE)) && ((VALUE) <= 15U)) |
#define | IS_RCC_HCLK(HCLK) |
#define | IS_RCC_CLOCKTYPE(CLK) ((1U <= (CLK)) && ((CLK) <= 15U)) |
#define | IS_RCC_PCLK(PCLK) |
#define | IS_RCC_MCO(MCOx) (((MCOx) == RCC_MCO1) || ((MCOx) == RCC_MCO2)) |
#define | IS_RCC_MCO1SOURCE(SOURCE) |
#define | IS_RCC_MCODIV(DIV) |
#define | IS_RCC_CALIBRATION_VALUE(VALUE) ((VALUE) <= 0x1FU) |
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. |
Header file of RCC HAL module.
This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause
Definition in file stm32f4xx_hal_rcc.h.