|
STM32L443xx HAL User Manual
|
Modules | |
| AHB1 Peripheral Clock Enable Disable | |
Enable or disable the AHB1 peripheral clock. | |
| AHB2 Peripheral Clock Enable Disable | |
Enable or disable the AHB2 peripheral clock. | |
| AHB3 Peripheral Clock Enable Disable | |
Enable or disable the AHB3 peripheral clock. | |
| APB1 Peripheral Clock Enable Disable | |
Enable or disable the APB1 peripheral clock. | |
| APB2 Peripheral Clock Enable Disable | |
Enable or disable the APB2 peripheral clock. | |
| AHB1 Peripheral Clock Enabled or Disabled Status | |
Check whether the AHB1 peripheral clock is enabled or not. | |
| AHB2 Peripheral Clock Enabled or Disabled Status | |
Check whether the AHB2 peripheral clock is enabled or not. | |
| AHB3 Peripheral Clock Enabled or Disabled Status | |
Check whether the AHB3 peripheral clock is enabled or not. | |
| APB1 Peripheral Clock Enabled or Disabled Status | |
Check whether the APB1 peripheral clock is enabled or not. | |
| APB2 Peripheral Clock Enabled or Disabled Status | |
Check whether the APB2 peripheral clock is enabled or not. | |
| AHB1 Peripheral Force Release Reset | |
Force or release AHB1 peripheral reset. | |
| AHB2 Peripheral Force Release Reset | |
Force or release AHB2 peripheral reset. | |
| AHB3 Peripheral Force Release Reset | |
Force or release AHB3 peripheral reset. | |
| APB1 Peripheral Force Release Reset | |
Force or release APB1 peripheral reset. | |
| APB2 Peripheral Force Release Reset | |
Force or release APB2 peripheral reset. | |
| AHB1 Peripheral Clock Sleep Enable Disable | |
Enable or disable the AHB1 peripheral clock during Low Power (Sleep) mode. | |
| AHB2 Peripheral Clock Sleep Enable Disable | |
Enable or disable the AHB2 peripheral clock during Low Power (Sleep) mode. | |
| AHB3 Peripheral Clock Sleep Enable Disable | |
Enable or disable the AHB3 peripheral clock during Low Power (Sleep) mode. | |
| APB1 Peripheral Clock Sleep Enable Disable | |
Enable or disable the APB1 peripheral clock during Low Power (Sleep) mode. | |
| APB2 Peripheral Clock Sleep Enable Disable | |
Enable or disable the APB2 peripheral clock during Low Power (Sleep) mode. | |
| AHB1 Peripheral Clock Sleep Enabled or Disabled Status | |
Check whether the AHB1 peripheral clock during Low Power (Sleep) mode is enabled or not. | |
| AHB2 Peripheral Clock Sleep Enabled or Disabled Status | |
Check whether the AHB2 peripheral clock during Low Power (Sleep) mode is enabled or not. | |
| AHB3 Peripheral Clock Sleep Enabled or Disabled Status | |
Check whether the AHB3 peripheral clock during Low Power (Sleep) mode is enabled or not. | |
| APB1 Peripheral Clock Sleep Enabled or Disabled Status | |
Check whether the APB1 peripheral clock during Low Power (Sleep) mode is enabled or not. | |
| APB2 Peripheral Clock Sleep Enabled or Disabled Status | |
Check whether the APB2 peripheral clock during Low Power (Sleep) mode is enabled or not. | |
| RCC Backup Domain Reset | |
| RCC RTC Clock Configuration | |
| Flags Interrupts Management | |
macros to manage the specified RCC Flags and interrupts. | |
Defines | |
| #define | __HAL_RCC_HSI_ENABLE() SET_BIT(RCC->CR, RCC_CR_HSION) |
| Macros to enable or disable the Internal High Speed 16MHz oscillator (HSI). | |
| #define | __HAL_RCC_HSI_DISABLE() CLEAR_BIT(RCC->CR, RCC_CR_HSION) |
| #define | __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(__HSICALIBRATIONVALUE__) MODIFY_REG(RCC->ICSCR, RCC_ICSCR_HSITRIM, (__HSICALIBRATIONVALUE__) << RCC_ICSCR_HSITRIM_Pos) |
| Macro to adjust the Internal High Speed 16MHz oscillator (HSI) calibration value. | |
| #define | __HAL_RCC_HSIAUTOMATIC_START_ENABLE() SET_BIT(RCC->CR, RCC_CR_HSIASFS) |
| Macros to enable or disable the wakeup the Internal High Speed oscillator (HSI) in parallel to the Internal Multi Speed oscillator (MSI) used at system wakeup. | |
| #define | __HAL_RCC_HSIAUTOMATIC_START_DISABLE() CLEAR_BIT(RCC->CR, RCC_CR_HSIASFS) |
| #define | __HAL_RCC_HSISTOP_ENABLE() SET_BIT(RCC->CR, RCC_CR_HSIKERON) |
| Macros to enable or disable the force of the Internal High Speed oscillator (HSI) in STOP mode to be quickly available as kernel clock for USARTs and I2Cs. | |
| #define | __HAL_RCC_HSISTOP_DISABLE() CLEAR_BIT(RCC->CR, RCC_CR_HSIKERON) |
| #define | __HAL_RCC_MSI_ENABLE() SET_BIT(RCC->CR, RCC_CR_MSION) |
| Macros to enable or disable the Internal Multi Speed oscillator (MSI). | |
| #define | __HAL_RCC_MSI_DISABLE() CLEAR_BIT(RCC->CR, RCC_CR_MSION) |
| #define | __HAL_RCC_MSI_CALIBRATIONVALUE_ADJUST(__MSICALIBRATIONVALUE__) MODIFY_REG(RCC->ICSCR, RCC_ICSCR_MSITRIM, (__MSICALIBRATIONVALUE__) << RCC_ICSCR_MSITRIM_Pos) |
| Macro Adjusts the Internal Multi Speed oscillator (MSI) calibration value. | |
| #define | __HAL_RCC_MSI_RANGE_CONFIG(__MSIRANGEVALUE__) |
| Macro configures the Internal Multi Speed oscillator (MSI) clock range in run mode. | |
| #define | __HAL_RCC_MSI_STANDBY_RANGE_CONFIG(__MSIRANGEVALUE__) MODIFY_REG(RCC->CSR, RCC_CSR_MSISRANGE, (__MSIRANGEVALUE__) << 4U) |
| Macro configures the Internal Multi Speed oscillator (MSI) clock range after Standby mode After Standby its frequency can be selected between 4 possible values (1, 2, 4 or 8 MHz). | |
| #define | __HAL_RCC_GET_MSI_RANGE() |
| Macro to get the Internal Multi Speed oscillator (MSI) clock range in run mode. | |
| #define | __HAL_RCC_LSI_ENABLE() SET_BIT(RCC->CSR, RCC_CSR_LSION) |
| Macros to enable or disable the Internal Low Speed oscillator (LSI). | |
| #define | __HAL_RCC_LSI_DISABLE() CLEAR_BIT(RCC->CSR, RCC_CSR_LSION) |
| #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_HSI48_ENABLE() SET_BIT(RCC->CRRCR, RCC_CRRCR_HSI48ON) |
| Macros to enable or disable the Internal High Speed 48MHz oscillator (HSI48). | |
| #define | __HAL_RCC_HSI48_DISABLE() CLEAR_BIT(RCC->CRRCR, RCC_CRRCR_HSI48ON) |
| #define | __HAL_RCC_RTC_CONFIG(__RTC_CLKSOURCE__) MODIFY_REG( RCC->BDCR, RCC_BDCR_RTCSEL, (__RTC_CLKSOURCE__)) |
| Macros to configure the RTC clock (RTCCLK). | |
| #define | __HAL_RCC_GET_RTC_SOURCE() (READ_BIT(RCC->BDCR, RCC_BDCR_RTCSEL)) |
| Macro to get the RTC clock source. | |
| #define | __HAL_RCC_PLL_ENABLE() SET_BIT(RCC->CR, RCC_CR_PLLON) |
| Macros to enable or disable the main PLL. | |
| #define | __HAL_RCC_PLL_DISABLE() CLEAR_BIT(RCC->CR, RCC_CR_PLLON) |
| #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__) - 1) << 4U) |
| Macro to configure the PLL source division factor M. | |
| #define | __HAL_RCC_PLL_CONFIG(__PLLSOURCE__, __PLLM__, __PLLN__, __PLLP__, __PLLQ__, __PLLR__) |
| Macro to configure the main PLL clock source, multiplication and division factors. | |
| #define | __HAL_RCC_GET_PLL_OSCSOURCE() (READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLSRC)) |
| Macro to get the oscillator used as PLL clock source. | |
| #define | __HAL_RCC_PLLCLKOUT_ENABLE(__PLLCLOCKOUT__) SET_BIT(RCC->PLLCFGR, (__PLLCLOCKOUT__)) |
| Enable or disable each clock output (RCC_PLL_SYSCLK, RCC_PLL_48M1CLK, RCC_PLL_SAI3CLK) | |
| #define | __HAL_RCC_PLLCLKOUT_DISABLE(__PLLCLOCKOUT__) CLEAR_BIT(RCC->PLLCFGR, (__PLLCLOCKOUT__)) |
| #define | __HAL_RCC_GET_PLLCLKOUT_CONFIG(__PLLCLOCKOUT__) READ_BIT(RCC->PLLCFGR, (__PLLCLOCKOUT__)) |
| Get clock output enable status (RCC_PLL_SYSCLK, RCC_PLL_48M1CLK, RCC_PLL_SAI3CLK) | |
| #define | __HAL_RCC_SYSCLK_CONFIG(__SYSCLKSOURCE__) MODIFY_REG(RCC->CFGR, RCC_CFGR_SW, (__SYSCLKSOURCE__)) |
| Macro to configure the system clock source. | |
| #define | __HAL_RCC_GET_SYSCLK_SOURCE() (READ_BIT(RCC->CFGR, RCC_CFGR_SWS)) |
| Macro to get the clock source used as system clock. | |
| #define | __HAL_RCC_LSEDRIVE_CONFIG(__LSEDRIVE__) MODIFY_REG(RCC->BDCR, RCC_BDCR_LSEDRV, (__LSEDRIVE__)) |
| Macro to configure the External Low Speed oscillator (LSE) drive capability. | |
| #define | __HAL_RCC_WAKEUPSTOP_CLK_CONFIG(__STOPWUCLK__) MODIFY_REG(RCC->CFGR, RCC_CFGR_STOPWUCK, (__STOPWUCLK__)) |
| Macro to configure the wake up from stop clock. | |
| #define | __HAL_RCC_MCO1_CONFIG(__MCOCLKSOURCE__, __MCODIV__) MODIFY_REG(RCC->CFGR, (RCC_CFGR_MCOSEL | RCC_CFGR_MCOPRE), ((__MCOCLKSOURCE__) | (__MCODIV__))) |
| Macro to configure the MCO clock. | |
| #define __HAL_RCC_GET_MSI_RANGE | ( | ) |
((READ_BIT(RCC->CR, RCC_CR_MSIRGSEL) != 0U) ? \
READ_BIT(RCC->CR, RCC_CR_MSIRANGE) : \
(READ_BIT(RCC->CSR, RCC_CSR_MSISRANGE) >> 4U))
Macro to get the Internal Multi Speed oscillator (MSI) clock range in run mode.
| MSI | clock range. This parameter must be one of the following values:
|
Definition at line 4075 of file stm32l4xx_hal_rcc.h.
Referenced by HAL_RCC_OscConfig(), and HAL_RCCEx_GetPeriphCLKFreq().
| #define __HAL_RCC_GET_PLL_OSCSOURCE | ( | ) | (READ_BIT(RCC->PLLCFGR, RCC_PLLCFGR_PLLSRC)) |
Macro to get the oscillator used as PLL clock source.
| The | oscillator used as PLL clock source. The returned value can be one of the following:
|
Definition at line 4352 of file stm32l4xx_hal_rcc.h.
Referenced by HAL_RCC_GetSysClockFreq(), HAL_RCC_OscConfig(), HAL_RCCEx_GetPeriphCLKFreq(), and RCCEx_PLLSAI1_Config().
| #define __HAL_RCC_GET_PLLCLKOUT_CONFIG | ( | __PLLCLOCKOUT__ | ) | READ_BIT(RCC->PLLCFGR, (__PLLCLOCKOUT__)) |
Get clock output enable status (RCC_PLL_SYSCLK, RCC_PLL_48M1CLK, RCC_PLL_SAI3CLK)
| __PLLCLOCKOUT__ | specifies the output PLL clock to be checked. This parameter can be one of the following values:
|
| SET | / RESET |
Definition at line 4383 of file stm32l4xx_hal_rcc.h.
Referenced by RCCEx_GetSAIxPeriphCLKFreq().
| #define __HAL_RCC_GET_RTC_SOURCE | ( | ) | (READ_BIT(RCC->BDCR, RCC_BDCR_RTCSEL)) |
Macro to get the RTC clock source.
| The | returned value can be one of the following:
|
Definition at line 4222 of file stm32l4xx_hal_rcc.h.
Referenced by HAL_RCCEx_GetPeriphCLKConfig(), and HAL_RCCEx_GetPeriphCLKFreq().
| #define __HAL_RCC_GET_SYSCLK_SOURCE | ( | ) | (READ_BIT(RCC->CFGR, RCC_CFGR_SWS)) |
Macro to get the clock source used as system clock.
| The | clock source used as system clock. The returned value can be one of the following:
|
Definition at line 4406 of file stm32l4xx_hal_rcc.h.
Referenced by HAL_RCC_ClockConfig(), HAL_RCC_GetSysClockFreq(), and HAL_RCC_OscConfig().
| #define __HAL_RCC_HSE_CONFIG | ( | __STATE__ | ) |
do { \ if((__STATE__) == RCC_HSE_ON) \ { \ SET_BIT(RCC->CR, RCC_CR_HSEON); \ } \ else if((__STATE__) == RCC_HSE_BYPASS) \ { \ SET_BIT(RCC->CR, RCC_CR_HSEBYP); \ SET_BIT(RCC->CR, RCC_CR_HSEON); \ } \ else \ { \ CLEAR_BIT(RCC->CR, RCC_CR_HSEON); \ CLEAR_BIT(RCC->CR, RCC_CR_HSEBYP); \ } \ } while(0)
Macro to configure the External High Speed oscillator (HSE).
| __STATE__ | specifies the new state of the HSE. This parameter can be one of the following values:
|
| None |
Definition at line 4116 of file stm32l4xx_hal_rcc.h.
Referenced by HAL_RCC_OscConfig().
| #define __HAL_RCC_HSI48_DISABLE | ( | ) | CLEAR_BIT(RCC->CRRCR, RCC_CRRCR_HSI48ON) |
Definition at line 4183 of file stm32l4xx_hal_rcc.h.
Referenced by HAL_RCC_OscConfig().
| #define __HAL_RCC_HSI48_ENABLE | ( | ) | SET_BIT(RCC->CRRCR, RCC_CRRCR_HSI48ON) |
Macros to enable or disable the Internal High Speed 48MHz oscillator (HSI48).
| None |
Definition at line 4181 of file stm32l4xx_hal_rcc.h.
Referenced by HAL_RCC_OscConfig().
| #define __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST | ( | __HSICALIBRATIONVALUE__ | ) | MODIFY_REG(RCC->ICSCR, RCC_ICSCR_HSITRIM, (__HSICALIBRATIONVALUE__) << RCC_ICSCR_HSITRIM_Pos) |
Macro to adjust the Internal High Speed 16MHz oscillator (HSI) calibration value.
| __HSICALIBRATIONVALUE__ | specifies the calibration trimming value (default is RCC_HSICALIBRATION_DEFAULT). This parameter must be a number between 0 and 31 on STM32L43x/STM32L44x/STM32L47x/STM32L48x or between 0 and 127 on other devices. |
| None |
Definition at line 3952 of file stm32l4xx_hal_rcc.h.
Referenced by HAL_RCC_OscConfig().
| #define __HAL_RCC_HSI_DISABLE | ( | ) | CLEAR_BIT(RCC->CR, RCC_CR_HSION) |
Definition at line 3941 of file stm32l4xx_hal_rcc.h.
Referenced by HAL_RCC_OscConfig().
| #define __HAL_RCC_HSI_ENABLE | ( | ) | SET_BIT(RCC->CR, RCC_CR_HSION) |
Macros to enable or disable the Internal High Speed 16MHz oscillator (HSI).
| None |
Definition at line 3939 of file stm32l4xx_hal_rcc.h.
Referenced by HAL_RCC_OscConfig().
| #define __HAL_RCC_HSIAUTOMATIC_START_DISABLE | ( | ) | CLEAR_BIT(RCC->CR, RCC_CR_HSIASFS) |
Definition at line 3964 of file stm32l4xx_hal_rcc.h.
| #define __HAL_RCC_HSIAUTOMATIC_START_ENABLE | ( | ) | SET_BIT(RCC->CR, RCC_CR_HSIASFS) |
Macros to enable or disable the wakeup the Internal High Speed oscillator (HSI) in parallel to the Internal Multi Speed oscillator (MSI) used at system wakeup.
| None |
Definition at line 3962 of file stm32l4xx_hal_rcc.h.
| #define __HAL_RCC_HSISTOP_DISABLE | ( | ) | CLEAR_BIT(RCC->CR, RCC_CR_HSIKERON) |
Definition at line 3977 of file stm32l4xx_hal_rcc.h.
| #define __HAL_RCC_HSISTOP_ENABLE | ( | ) | SET_BIT(RCC->CR, RCC_CR_HSIKERON) |
Macros to enable or disable the force of the Internal High Speed oscillator (HSI) in STOP mode to be quickly available as kernel clock for USARTs and I2Cs.
| None |
Definition at line 3975 of file stm32l4xx_hal_rcc.h.
| #define __HAL_RCC_LSE_CONFIG | ( | __STATE__ | ) |
do { \ if((__STATE__) == RCC_LSE_ON) \ { \ SET_BIT(RCC->BDCR, RCC_BDCR_LSEON); \ } \ else if((__STATE__) == RCC_LSE_BYPASS) \ { \ SET_BIT(RCC->BDCR, RCC_BDCR_LSEBYP); \ SET_BIT(RCC->BDCR, RCC_BDCR_LSEON); \ } \ else \ { \ CLEAR_BIT(RCC->BDCR, RCC_BDCR_LSEON); \ CLEAR_BIT(RCC->BDCR, RCC_BDCR_LSEBYP); \ } \ } while(0)
Macro to configure the External Low Speed oscillator (LSE).
| __STATE__ | specifies the new state of the LSE. This parameter can be one of the following values:
|
| None |
Definition at line 4154 of file stm32l4xx_hal_rcc.h.
Referenced by HAL_RCC_OscConfig().
| #define __HAL_RCC_LSEDRIVE_CONFIG | ( | __LSEDRIVE__ | ) | MODIFY_REG(RCC->BDCR, RCC_BDCR_LSEDRV, (__LSEDRIVE__)) |
Macro to configure the External Low Speed oscillator (LSE) drive capability.
| __LSEDRIVE__ | specifies the new state of the LSE drive capability. This parameter can be one of the following values:
|
| None |
Definition at line 4422 of file stm32l4xx_hal_rcc.h.
| #define __HAL_RCC_LSI_DISABLE | ( | ) | CLEAR_BIT(RCC->CSR, RCC_CSR_LSION) |
Definition at line 4091 of file stm32l4xx_hal_rcc.h.
Referenced by HAL_RCC_OscConfig().
| #define __HAL_RCC_LSI_ENABLE | ( | ) | SET_BIT(RCC->CSR, RCC_CSR_LSION) |
Macros to enable or disable the Internal Low Speed oscillator (LSI).
| None |
Definition at line 4089 of file stm32l4xx_hal_rcc.h.
Referenced by HAL_RCC_OscConfig().
| #define __HAL_RCC_MCO1_CONFIG | ( | __MCOCLKSOURCE__, | |
| __MCODIV__ | |||
| ) | MODIFY_REG(RCC->CFGR, (RCC_CFGR_MCOSEL | RCC_CFGR_MCOPRE), ((__MCOCLKSOURCE__) | (__MCODIV__))) |
Macro to configure the MCO clock.
| __MCOCLKSOURCE__ | specifies the MCO clock source. This parameter can be one of the following values:
|
| __MCODIV__ | specifies the MCO clock prescaler. This parameter can be one of the following values:
|
Definition at line 4462 of file stm32l4xx_hal_rcc.h.
| #define __HAL_RCC_MSI_CALIBRATIONVALUE_ADJUST | ( | __MSICALIBRATIONVALUE__ | ) | MODIFY_REG(RCC->ICSCR, RCC_ICSCR_MSITRIM, (__MSICALIBRATIONVALUE__) << RCC_ICSCR_MSITRIM_Pos) |
Macro Adjusts the Internal Multi Speed oscillator (MSI) calibration value.
| __MSICALIBRATIONVALUE__ | specifies the calibration trimming value (default is RCC_MSICALIBRATION_DEFAULT). This parameter must be a number between 0 and 255. |
| None |
Definition at line 4010 of file stm32l4xx_hal_rcc.h.
Referenced by HAL_RCC_OscConfig().
| #define __HAL_RCC_MSI_DISABLE | ( | ) | CLEAR_BIT(RCC->CR, RCC_CR_MSION) |
Definition at line 3998 of file stm32l4xx_hal_rcc.h.
Referenced by HAL_RCC_OscConfig().
| #define __HAL_RCC_MSI_ENABLE | ( | ) | SET_BIT(RCC->CR, RCC_CR_MSION) |
Macros to enable or disable the Internal Multi Speed oscillator (MSI).
| None |
Definition at line 3996 of file stm32l4xx_hal_rcc.h.
Referenced by HAL_RCC_OscConfig().
| #define __HAL_RCC_MSI_RANGE_CONFIG | ( | __MSIRANGEVALUE__ | ) |
do { \ SET_BIT(RCC->CR, RCC_CR_MSIRGSEL); \ MODIFY_REG(RCC->CR, RCC_CR_MSIRANGE, (__MSIRANGEVALUE__)); \ } while(0)
Macro configures the Internal Multi Speed oscillator (MSI) clock range in run mode.
| __MSIRANGEVALUE__ | specifies the MSI clock range. This parameter must be one of the following values:
|
| None |
Definition at line 4039 of file stm32l4xx_hal_rcc.h.
Referenced by HAL_RCC_OscConfig().
| #define __HAL_RCC_MSI_STANDBY_RANGE_CONFIG | ( | __MSIRANGEVALUE__ | ) | MODIFY_REG(RCC->CSR, RCC_CSR_MSISRANGE, (__MSIRANGEVALUE__) << 4U) |
Macro configures the Internal Multi Speed oscillator (MSI) clock range after Standby mode After Standby its frequency can be selected between 4 possible values (1, 2, 4 or 8 MHz).
| __MSIRANGEVALUE__ | specifies the MSI clock range. This parameter must be one of the following values:
|
| None |
Definition at line 4056 of file stm32l4xx_hal_rcc.h.
Referenced by HAL_RCCEx_StandbyMSIRangeConfig().
| #define __HAL_RCC_PLL_CONFIG | ( | __PLLSOURCE__, | |
| __PLLM__, | |||
| __PLLN__, | |||
| __PLLP__, | |||
| __PLLQ__, | |||
| __PLLR__ | |||
| ) |
MODIFY_REG(RCC->PLLCFGR, \
(RCC_PLLCFGR_PLLSRC | RCC_PLLCFGR_PLLM | RCC_PLLCFGR_PLLN | \
RCC_PLLCFGR_PLLQ | RCC_PLLCFGR_PLLR | RCC_PLLCFGR_PLLP | RCC_PLLCFGR_PLLPDIV), \
((__PLLSOURCE__) | \
(((__PLLM__) - 1U) << RCC_PLLCFGR_PLLM_Pos) | \
((__PLLN__) << RCC_PLLCFGR_PLLN_Pos) | \
((((__PLLQ__) >> 1U) - 1U) << RCC_PLLCFGR_PLLQ_Pos) | \
((((__PLLR__) >> 1U) - 1U) << RCC_PLLCFGR_PLLR_Pos) | \
((uint32_t)(__PLLP__) << RCC_PLLCFGR_PLLPDIV_Pos)))
Macro to configure the main PLL clock source, multiplication and division factors.
| __PLLSOURCE__ | specifies the PLL entry clock source. This parameter can be one of the following values:
|
| __PLLM__ | specifies the division factor for PLL VCO input clock. This parameter must be a number between Min_Data = 1 and Max_Data = 16 on STM32L4Rx/STM32L4Sx devices. This parameter must be a number between Min_Data = 1 and Max_Data = 8 on other devices. |
| __PLLN__ | specifies the multiplication factor for PLL VCO output clock. This parameter must be a number between 8 and 86. |
| __PLLP__ | specifies the division factor for SAI clock when SAI available on device. This parameter must be a number in the range (7 or 17) for STM32L47x/STM32L48x else (2 to 31). |
| __PLLQ__ | specifies the division factor for OTG FS, SDMMC1 and RNG clocks. This parameter must be in the range (2, 4, 6 or 8). |
| __PLLR__ | specifies the division factor for the main system clock. |
| None |
Definition at line 4306 of file stm32l4xx_hal_rcc.h.
Referenced by HAL_RCC_OscConfig().
| #define __HAL_RCC_PLL_DISABLE | ( | ) | CLEAR_BIT(RCC->CR, RCC_CR_PLLON) |
Definition at line 4234 of file stm32l4xx_hal_rcc.h.
Referenced by HAL_RCC_OscConfig().
| #define __HAL_RCC_PLL_ENABLE | ( | ) | SET_BIT(RCC->CR, RCC_CR_PLLON) |
Macros to enable or disable the main PLL.
| None |
Definition at line 4232 of file stm32l4xx_hal_rcc.h.
Referenced by HAL_RCC_OscConfig().
| #define __HAL_RCC_PLL_PLLM_CONFIG | ( | __PLLM__ | ) | MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLLM, ((__PLLM__) - 1) << 4U) |
Macro to configure the PLL source division factor M.
| __PLLM__ | specifies the division factor for PLL VCO input clock This parameter must be a number between Min_Data = 1 and Max_Data = 16 on STM32L4Rx/STM32L4Sx devices. This parameter must be a number between Min_Data = 1 and Max_Data = 8 on other devices. |
| None |
Definition at line 4262 of file stm32l4xx_hal_rcc.h.
| #define __HAL_RCC_PLL_PLLSOURCE_CONFIG | ( | __PLLSOURCE__ | ) | MODIFY_REG(RCC->PLLCFGR, RCC_PLLCFGR_PLLSRC, (__PLLSOURCE__)) |
Macro to configure the PLL clock source.
| __PLLSOURCE__ | specifies the PLL entry clock source. This parameter can be one of the following values:
|
| None |
Definition at line 4248 of file stm32l4xx_hal_rcc.h.
| #define __HAL_RCC_PLLCLKOUT_DISABLE | ( | __PLLCLOCKOUT__ | ) | CLEAR_BIT(RCC->PLLCFGR, (__PLLCLOCKOUT__)) |
Definition at line 4370 of file stm32l4xx_hal_rcc.h.
Referenced by HAL_RCC_OscConfig().
| #define __HAL_RCC_PLLCLKOUT_ENABLE | ( | __PLLCLOCKOUT__ | ) | SET_BIT(RCC->PLLCFGR, (__PLLCLOCKOUT__)) |
Enable or disable each clock output (RCC_PLL_SYSCLK, RCC_PLL_48M1CLK, RCC_PLL_SAI3CLK)
| __PLLCLOCKOUT__ | specifies the PLL clock to be output. This parameter can be one or a combination of the following values:
|
| None |
Definition at line 4368 of file stm32l4xx_hal_rcc.h.
Referenced by HAL_RCC_OscConfig(), and HAL_RCCEx_PeriphCLKConfig().
| #define __HAL_RCC_RTC_CONFIG | ( | __RTC_CLKSOURCE__ | ) | MODIFY_REG( RCC->BDCR, RCC_BDCR_RTCSEL, (__RTC_CLKSOURCE__)) |
Macros to configure the RTC clock (RTCCLK).
| __RTC_CLKSOURCE__ | specifies the RTC clock source. This parameter can be one of the following values:
|
| None |
Definition at line 4211 of file stm32l4xx_hal_rcc.h.
Referenced by HAL_RCCEx_PeriphCLKConfig().
| #define __HAL_RCC_SYSCLK_CONFIG | ( | __SYSCLKSOURCE__ | ) | MODIFY_REG(RCC->CFGR, RCC_CFGR_SW, (__SYSCLKSOURCE__)) |
Macro to configure the system clock source.
| __SYSCLKSOURCE__ | specifies the system clock source. This parameter can be one of the following values:
|
| None |
Definition at line 4395 of file stm32l4xx_hal_rcc.h.
| #define __HAL_RCC_WAKEUPSTOP_CLK_CONFIG | ( | __STOPWUCLK__ | ) | MODIFY_REG(RCC->CFGR, RCC_CFGR_STOPWUCK, (__STOPWUCLK__)) |
Macro to configure the wake up from stop clock.
| __STOPWUCLK__ | specifies the clock source used after wake up from stop. This parameter can be one of the following values:
|
| None |
Definition at line 4433 of file stm32l4xx_hal_rcc.h.
Referenced by HAL_RCCEx_WakeUpStopCLKConfig().
1.7.6.1