You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			1307 lines
		
	
	
		
			59 KiB
		
	
	
	
		
			C
		
	
			
		
		
	
	
			1307 lines
		
	
	
		
			59 KiB
		
	
	
	
		
			C
		
	
| /**
 | |
|   ******************************************************************************
 | |
|   * @file    stm32g0xx_ll_bus.h
 | |
|   * @author  MCD Application Team
 | |
|   * @brief   Header file of BUS LL module.
 | |
| 
 | |
|   @verbatim
 | |
|                       ##### RCC Limitations #####
 | |
|   ==============================================================================
 | |
|     [..]
 | |
|       A delay between an RCC peripheral clock enable and the effective peripheral
 | |
|       enabling should be taken into account in order to manage the peripheral read/write
 | |
|       from/to registers.
 | |
|       (+) This delay depends on the peripheral mapping.
 | |
|         (++) AHB & APB peripherals, 1 dummy read is necessary
 | |
| 
 | |
|     [..]
 | |
|       Workarounds:
 | |
|       (#) For AHB & APB peripherals, a dummy read to the peripheral register has been
 | |
|           inserted in each LL_{BUS}_GRP{x}_EnableClock() function.
 | |
| 
 | |
|   @endverbatim
 | |
|   ******************************************************************************
 | |
|   * @attention
 | |
|   *
 | |
|   * Copyright (c) 2018 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.
 | |
|   ******************************************************************************
 | |
|   */
 | |
| 
 | |
| /* Define to prevent recursive inclusion -------------------------------------*/
 | |
| #ifndef STM32G0xx_LL_BUS_H
 | |
| #define STM32G0xx_LL_BUS_H
 | |
| 
 | |
| #ifdef __cplusplus
 | |
| extern "C" {
 | |
| #endif
 | |
| 
 | |
| /* Includes ------------------------------------------------------------------*/
 | |
| #include "stm32g0xx.h"
 | |
| 
 | |
| /** @addtogroup STM32G0xx_LL_Driver
 | |
|   * @{
 | |
|   */
 | |
| 
 | |
| #if defined(RCC)
 | |
| 
 | |
| /** @defgroup BUS_LL BUS
 | |
|   * @{
 | |
|   */
 | |
| 
 | |
| /* Private types -------------------------------------------------------------*/
 | |
| /* Private variables ---------------------------------------------------------*/
 | |
| 
 | |
| /* Private constants ---------------------------------------------------------*/
 | |
| 
 | |
| /* Private macros ------------------------------------------------------------*/
 | |
| 
 | |
| /* Exported types ------------------------------------------------------------*/
 | |
| /* Exported constants --------------------------------------------------------*/
 | |
| /** @defgroup BUS_LL_Exported_Constants BUS Exported Constants
 | |
|   * @{
 | |
|   */
 | |
| 
 | |
| /** @defgroup BUS_LL_EC_AHB1_GRP1_PERIPH  AHB1 GRP1 PERIPH
 | |
|   * @{
 | |
|   */
 | |
| #define LL_AHB1_GRP1_PERIPH_ALL            0xFFFFFFFFU
 | |
| #define LL_AHB1_GRP1_PERIPH_DMA1           RCC_AHBENR_DMA1EN
 | |
| #if defined(DMA2)
 | |
| #define LL_AHB1_GRP1_PERIPH_DMA2           RCC_AHBENR_DMA2EN
 | |
| #endif /* DMA2 */
 | |
| #define LL_AHB1_GRP1_PERIPH_FLASH          RCC_AHBENR_FLASHEN
 | |
| #define LL_AHB1_GRP1_PERIPH_SRAM           RCC_AHBSMENR_SRAMSMEN
 | |
| #if defined(CRC)
 | |
| #define LL_AHB1_GRP1_PERIPH_CRC            RCC_AHBENR_CRCEN
 | |
| #endif /* CRC */
 | |
| #if defined(AES)
 | |
| #define LL_AHB1_GRP1_PERIPH_CRYP           RCC_AHBENR_AESEN
 | |
| #endif /* AES */
 | |
| #if defined(RNG)
 | |
| #define LL_AHB1_GRP1_PERIPH_RNG            RCC_AHBENR_RNGEN
 | |
| #endif /* RNG */
 | |
| /**
 | |
|   * @}
 | |
|   */
 | |
| 
 | |
| 
 | |
| /** @defgroup BUS_LL_EC_APB1_GRP1_PERIPH  APB1 GRP1 PERIPH
 | |
|   * @{
 | |
|   */
 | |
| #define LL_APB1_GRP1_PERIPH_ALL            0xFFFFFFFFU
 | |
| #if defined(TIM2)
 | |
| #define LL_APB1_GRP1_PERIPH_TIM2           RCC_APBENR1_TIM2EN
 | |
| #endif /* TIM2 */
 | |
| #if defined(TIM3)
 | |
| #define LL_APB1_GRP1_PERIPH_TIM3           RCC_APBENR1_TIM3EN
 | |
| #endif /* TIM3 */
 | |
| #if defined(TIM4)
 | |
| #define LL_APB1_GRP1_PERIPH_TIM4           RCC_APBENR1_TIM4EN
 | |
| #endif /* TIM4 */
 | |
| #if defined(TIM6)
 | |
| #define LL_APB1_GRP1_PERIPH_TIM6           RCC_APBENR1_TIM6EN
 | |
| #endif /* TIM6 */
 | |
| #if defined(TIM7)
 | |
| #define LL_APB1_GRP1_PERIPH_TIM7           RCC_APBENR1_TIM7EN
 | |
| #endif /* TIM7 */
 | |
| #if defined(LPUART2)
 | |
| #define LL_APB1_GRP1_PERIPH_LPUART2        RCC_APBENR1_LPUART2EN
 | |
| #endif /* LPUART2 */
 | |
| #if defined(USART5)
 | |
| #define LL_APB1_GRP1_PERIPH_USART5         RCC_APBENR1_USART5EN
 | |
| #endif /* USART5 */
 | |
| #if defined(USART6)
 | |
| #define LL_APB1_GRP1_PERIPH_USART6         RCC_APBENR1_USART6EN
 | |
| #endif /* USART6 */
 | |
| #define LL_APB1_GRP1_PERIPH_RTC            RCC_APBENR1_RTCAPBEN
 | |
| #define LL_APB1_GRP1_PERIPH_WWDG           RCC_APBENR1_WWDGEN
 | |
| #if defined(FDCAN1) || defined(FDCAN2)
 | |
| #define LL_APB1_GRP1_PERIPH_FDCAN          RCC_APBENR1_FDCANEN
 | |
| #endif /* FDCAN1 */
 | |
| #if defined(USB_DRD_FS)
 | |
| #define LL_APB1_GRP1_PERIPH_USB            RCC_APBENR1_USBEN
 | |
| #endif /* USB_DRD_FS */
 | |
| #define LL_APB1_GRP1_PERIPH_SPI2           RCC_APBENR1_SPI2EN
 | |
| #if defined(SPI3)
 | |
| #define LL_APB1_GRP1_PERIPH_SPI3           RCC_APBENR1_SPI3EN
 | |
| #endif /* SPI3 */
 | |
| #if defined(CRS)
 | |
| #define LL_APB1_GRP1_PERIPH_CRS            RCC_APBENR1_CRSEN
 | |
| #endif /* CRS */
 | |
| #define LL_APB1_GRP1_PERIPH_USART2         RCC_APBENR1_USART2EN
 | |
| #if defined(USART3)
 | |
| #define LL_APB1_GRP1_PERIPH_USART3         RCC_APBENR1_USART3EN
 | |
| #endif /* USART3 */
 | |
| #if defined(USART4)
 | |
| #define LL_APB1_GRP1_PERIPH_USART4         RCC_APBENR1_USART4EN
 | |
| #endif /* USART4 */
 | |
| #if defined(LPUART1)
 | |
| #define LL_APB1_GRP1_PERIPH_LPUART1        RCC_APBENR1_LPUART1EN
 | |
| #endif /* LPUART1 */
 | |
| #define LL_APB1_GRP1_PERIPH_I2C1           RCC_APBENR1_I2C1EN
 | |
| #define LL_APB1_GRP1_PERIPH_I2C2           RCC_APBENR1_I2C2EN
 | |
| #if defined(I2C3)
 | |
| #define LL_APB1_GRP1_PERIPH_I2C3           RCC_APBENR1_I2C3EN
 | |
| #endif /* I2C3 */
 | |
| #if defined(CEC)
 | |
| #define LL_APB1_GRP1_PERIPH_CEC            RCC_APBENR1_CECEN
 | |
| #endif /* CEC */
 | |
| #if defined(UCPD1)
 | |
| #define LL_APB1_GRP1_PERIPH_UCPD1          RCC_APBENR1_UCPD1EN
 | |
| #endif /* UCPD1 */
 | |
| #if defined(UCPD2)
 | |
| #define LL_APB1_GRP1_PERIPH_UCPD2          RCC_APBENR1_UCPD2EN
 | |
| #endif /* UCPD2 */
 | |
| #define LL_APB1_GRP1_PERIPH_DBGMCU         RCC_APBENR1_DBGEN
 | |
| #define LL_APB1_GRP1_PERIPH_PWR            RCC_APBENR1_PWREN
 | |
| #if defined(DAC1)
 | |
| #define LL_APB1_GRP1_PERIPH_DAC1           RCC_APBENR1_DAC1EN
 | |
| #endif /* DAC1 */
 | |
| #if defined(LPTIM2)
 | |
| #define LL_APB1_GRP1_PERIPH_LPTIM2         RCC_APBENR1_LPTIM2EN
 | |
| #endif /* LPTIM2 */
 | |
| #if defined(LPTIM1)
 | |
| #define LL_APB1_GRP1_PERIPH_LPTIM1         RCC_APBENR1_LPTIM1EN
 | |
| #endif /* LPTIM1 */
 | |
| /**
 | |
|   * @}
 | |
|   */
 | |
| 
 | |
| /** @defgroup BUS_LL_EC_APB2_GRP1_PERIPH  APB2 GRP1 PERIPH
 | |
|   * @{
 | |
|   */
 | |
| #define LL_APB2_GRP1_PERIPH_ALL            0xFFFFFFFFU
 | |
| #define LL_APB2_GRP1_PERIPH_SYSCFG         RCC_APBENR2_SYSCFGEN
 | |
| #define LL_APB2_GRP1_PERIPH_TIM1           RCC_APBENR2_TIM1EN
 | |
| #define LL_APB2_GRP1_PERIPH_SPI1           RCC_APBENR2_SPI1EN
 | |
| #define LL_APB2_GRP1_PERIPH_USART1         RCC_APBENR2_USART1EN
 | |
| #if defined(TIM14)
 | |
| #define LL_APB2_GRP1_PERIPH_TIM14          RCC_APBENR2_TIM14EN
 | |
| #endif /* TIM14 */
 | |
| #if defined(TIM15)
 | |
| #define LL_APB2_GRP1_PERIPH_TIM15          RCC_APBENR2_TIM15EN
 | |
| #endif /* TIM15 */
 | |
| #if defined(TIM16)
 | |
| #define LL_APB2_GRP1_PERIPH_TIM16          RCC_APBENR2_TIM16EN
 | |
| #endif /* TIM16 */
 | |
| #if defined(TIM17)
 | |
| #define LL_APB2_GRP1_PERIPH_TIM17          RCC_APBENR2_TIM17EN
 | |
| #endif /* TIM17 */
 | |
| #if defined(ADC)
 | |
| #define LL_APB2_GRP1_PERIPH_ADC            RCC_APBENR2_ADCEN
 | |
| #endif /* ADC */
 | |
| /**
 | |
|   * @}
 | |
|   */
 | |
| 
 | |
| /** @defgroup BUS_LL_EC_IOP_GRP1_PERIPH  IOP GRP1 PERIPH
 | |
|   * @{
 | |
|   */
 | |
| #define LL_IOP_GRP1_PERIPH_ALL             0xFFFFFFFFU
 | |
| #define LL_IOP_GRP1_PERIPH_GPIOA           RCC_IOPENR_GPIOAEN
 | |
| #define LL_IOP_GRP1_PERIPH_GPIOB           RCC_IOPENR_GPIOBEN
 | |
| #define LL_IOP_GRP1_PERIPH_GPIOC           RCC_IOPENR_GPIOCEN
 | |
| #define LL_IOP_GRP1_PERIPH_GPIOD           RCC_IOPENR_GPIODEN
 | |
| #if defined(GPIOE)
 | |
| #define LL_IOP_GRP1_PERIPH_GPIOE           RCC_IOPENR_GPIOEEN
 | |
| #endif /* GPIOE */
 | |
| #if defined(GPIOF)
 | |
| #define LL_IOP_GRP1_PERIPH_GPIOF           RCC_IOPENR_GPIOFEN
 | |
| #endif /* GPIOF */
 | |
| /**
 | |
|   * @}
 | |
|   */
 | |
| 
 | |
| /**
 | |
|   * @}
 | |
|   */
 | |
| 
 | |
| /* Exported macro ------------------------------------------------------------*/
 | |
| /* Exported functions --------------------------------------------------------*/
 | |
| /** @defgroup BUS_LL_Exported_Functions BUS Exported Functions
 | |
|   * @{
 | |
|   */
 | |
| 
 | |
| /** @defgroup BUS_LL_EF_AHB1 AHB1
 | |
|   * @{
 | |
|   */
 | |
| 
 | |
| /**
 | |
|   * @brief  Enable AHB1 peripherals clock.
 | |
|   * @rmtoll AHBENR       DMA1EN        LL_AHB1_GRP1_EnableClock\n
 | |
|   *         AHBENR       FLASHEN       LL_AHB1_GRP1_EnableClock\n
 | |
|   *         AHBENR       CRCEN         LL_AHB1_GRP1_EnableClock\n
 | |
|   *         AHBENR       AESEN         LL_AHB1_GRP1_EnableClock\n
 | |
|   *         AHBENR       RNGEN         LL_AHB1_GRP1_EnableClock
 | |
|   * @param  Periphs This parameter can be a combination of the following values:
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_DMA1
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_FLASH
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_CRC
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_CRYP (*)
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_RNG  (*)
 | |
|   * @note   (*) RNG & CRYP Peripherals available only on STM32G081xx
 | |
|   * @retval None
 | |
|   */
 | |
| __STATIC_INLINE void LL_AHB1_GRP1_EnableClock(uint32_t Periphs)
 | |
| {
 | |
|   __IO uint32_t tmpreg;
 | |
|   SET_BIT(RCC->AHBENR, Periphs);
 | |
|   /* Delay after an RCC peripheral clock enabling */
 | |
|   tmpreg = READ_BIT(RCC->AHBENR, Periphs);
 | |
|   (void)tmpreg;
 | |
| }
 | |
| 
 | |
| /**
 | |
|   * @brief  Check if AHB1 peripheral clock is enabled or not
 | |
|   * @rmtoll AHBENR       DMA1EN        LL_AHB1_GRP1_IsEnabledClock\n
 | |
|   *         AHBENR       FLASHEN       LL_AHB1_GRP1_IsEnabledClock\n
 | |
|   *         AHBENR       CRCEN         LL_AHB1_GRP1_IsEnabledClock\n
 | |
|   *         AHBENR       AESEN         LL_AHB1_GRP1_IsEnabledClock\n
 | |
|   *         AHBENR       RNGEN         LL_AHB1_GRP1_IsEnabledClock
 | |
|   * @param  Periphs This parameter can be a combination of the following values:
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_DMA1
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_FLASH
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_CRC
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_CRYP (*)
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_RNG  (*)
 | |
|   * @note   (*) RNG & CRYP Peripherals available only on STM32G081xx
 | |
|   * @retval State of Periphs (1 or 0).
 | |
|   */
 | |
| __STATIC_INLINE uint32_t LL_AHB1_GRP1_IsEnabledClock(uint32_t Periphs)
 | |
| {
 | |
|   return ((READ_BIT(RCC->AHBENR, Periphs) == Periphs) ? 1UL : 0UL);
 | |
| }
 | |
| 
 | |
| /**
 | |
|   * @brief  Disable AHB1 peripherals clock.
 | |
|   * @rmtoll AHBENR       DMA1EN        LL_AHB1_GRP1_DisableClock\n
 | |
|   *         AHBENR       FLASHEN       LL_AHB1_GRP1_DisableClock\n
 | |
|   *         AHBENR       CRCEN         LL_AHB1_GRP1_DisableClock\n
 | |
|   *         AHBENR       AESEN         LL_AHB1_GRP1_DisableClock\n
 | |
|   *         AHBENR       RNGEN         LL_AHB1_GRP1_DisableClock
 | |
|   * @param  Periphs This parameter can be a combination of the following values:
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_DMA1
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_FLASH
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_CRC
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_CRYP (*)
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_RNG  (*)
 | |
|   * @note   (*) RNG & CRYP Peripherals available only on STM32G081xx
 | |
|   * @retval None
 | |
|   */
 | |
| __STATIC_INLINE void LL_AHB1_GRP1_DisableClock(uint32_t Periphs)
 | |
| {
 | |
|   CLEAR_BIT(RCC->AHBENR, Periphs);
 | |
| }
 | |
| 
 | |
| /**
 | |
|   * @brief  Force AHB1 peripherals reset.
 | |
|   * @rmtoll AHBRSTR      DMA1RST       LL_AHB1_GRP1_ForceReset\n
 | |
|   *         AHBRSTR      FLASHRST      LL_AHB1_GRP1_ForceReset\n
 | |
|   *         AHBRSTR      CRCRST        LL_AHB1_GRP1_ForceReset\n
 | |
|   *         AHBRSTR      AESRST        LL_AHB1_GRP1_ForceReset\n
 | |
|   *         AHBRSTR      RNGRST        LL_AHB1_GRP1_ForceReset
 | |
|   * @param  Periphs This parameter can be a combination of the following values:
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_ALL
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_DMA1
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_FLASH
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_CRC
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_CRYP (*)
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_RNG  (*)
 | |
|   * @note   (*) RNG & CRYP Peripherals available only on STM32G081xx
 | |
|   * @retval None
 | |
|   */
 | |
| __STATIC_INLINE void LL_AHB1_GRP1_ForceReset(uint32_t Periphs)
 | |
| {
 | |
|   SET_BIT(RCC->AHBRSTR, Periphs);
 | |
| }
 | |
| 
 | |
| /**
 | |
|   * @brief  Release AHB1 peripherals reset.
 | |
|   * @rmtoll AHBRSTR      DMA1RST       LL_AHB1_GRP1_ReleaseReset\n
 | |
|   *         AHBRSTR      FLASHRST      LL_AHB1_GRP1_ReleaseReset\n
 | |
|   *         AHBRSTR      CRCRST        LL_AHB1_GRP1_ReleaseReset\n
 | |
|   *         AHBRSTR      AESRST        LL_AHB1_GRP1_ReleaseReset\n
 | |
|   *         AHBRSTR      RNGRST        LL_AHB1_GRP1_ReleaseReset
 | |
|   * @param  Periphs This parameter can be a combination of the following values:
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_ALL
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_DMA1
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_FLASH
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_CRC
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_CRYP (*)
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_RNG  (*)
 | |
|   * @note   (*) RNG & CRYP Peripherals available only on STM32G081xx
 | |
|   * @retval None
 | |
|   */
 | |
| __STATIC_INLINE void LL_AHB1_GRP1_ReleaseReset(uint32_t Periphs)
 | |
| {
 | |
|   CLEAR_BIT(RCC->AHBRSTR, Periphs);
 | |
| }
 | |
| 
 | |
| /**
 | |
|   * @brief  Enable AHB1 peripheral clocks in Sleep and Stop modes
 | |
|   * @rmtoll AHBSMENR     DMA1SMEN      LL_AHB1_GRP1_EnableClockStopSleep\n
 | |
|   *         AHBSMENR     FLASHSMEN     LL_AHB1_GRP1_EnableClockStopSleep\n
 | |
|   *         AHBSMENR     SRAMSMEN      LL_AHB1_GRP1_EnableClockStopSleep\n
 | |
|   *         AHBSMENR     CRCSMEN       LL_AHB1_GRP1_EnableClockStopSleep\n
 | |
|   *         AHBSMENR     AESSMEN       LL_AHB1_GRP1_EnableClockStopSleep\n
 | |
|   *         AHBSMENR     RNGSMEN       LL_AHB1_GRP1_EnableClockStopSleep
 | |
|   * @param  Periphs This parameter can be a combination of the following values:
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_DMA1
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_FLASH
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_SRAM
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_CRC
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_CRYP (*)
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_RNG  (*)
 | |
|   * @note   (*) RNG & CRYP Peripherals available only on STM32G081xx
 | |
|   * @retval None
 | |
|   */
 | |
| __STATIC_INLINE void LL_AHB1_GRP1_EnableClockStopSleep(uint32_t Periphs)
 | |
| {
 | |
|   __IO uint32_t tmpreg;
 | |
|   SET_BIT(RCC->AHBSMENR, Periphs);
 | |
|   /* Delay after an RCC peripheral clock enabling */
 | |
|   tmpreg = READ_BIT(RCC->AHBSMENR, Periphs);
 | |
|   (void)tmpreg;
 | |
| }
 | |
| 
 | |
| /**
 | |
|   * @brief  Disable AHB1 peripheral clocks in Sleep and Stop modes
 | |
|   * @rmtoll AHBSMENR     DMA1SMEN      LL_AHB1_GRP1_DisableClockStopSleep\n
 | |
|   *         AHBSMENR     FLASHSMEN     LL_AHB1_GRP1_DisableClockStopSleep\n
 | |
|   *         AHBSMENR     SRAMSMEN      LL_AHB1_GRP1_DisableClockStopSleep\n
 | |
|   *         AHBSMENR     CRCSMEN       LL_AHB1_GRP1_DisableClockStopSleep\n
 | |
|   *         AHBSMENR     AESSMEN       LL_AHB1_GRP1_DisableClockStopSleep\n
 | |
|   *         AHBSMENR     RNGSMEN       LL_AHB1_GRP1_DisableClockStopSleep
 | |
|   * @param  Periphs This parameter can be a combination of the following values:
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_DMA1
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_FLASH
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_SRAM
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_CRC
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_CRYP (*)
 | |
|   *         @arg @ref LL_AHB1_GRP1_PERIPH_RNG  (*)
 | |
|   * @note   (*) RNG & CRYP Peripherals available only on STM32G081xx
 | |
|   * @retval None
 | |
|   */
 | |
| __STATIC_INLINE void LL_AHB1_GRP1_DisableClockStopSleep(uint32_t Periphs)
 | |
| {
 | |
|   CLEAR_BIT(RCC->AHBSMENR, Periphs);
 | |
| }
 | |
| 
 | |
| /**
 | |
|   * @}
 | |
|   */
 | |
| 
 | |
| /** @defgroup BUS_LL_EF_APB1 APB1
 | |
|   * @{
 | |
|   */
 | |
| 
 | |
| /**
 | |
|   * @brief  Enable APB1 peripherals clock.
 | |
|   * @rmtoll APBENR1      TIM2EN        LL_APB1_GRP1_EnableClock\n
 | |
|   *         APBENR1      TIM3EN        LL_APB1_GRP1_EnableClock\n
 | |
|   *         APBENR1      TIM4EN        LL_APB1_GRP1_EnableClock\n
 | |
|   *         APBENR1      TIM6EN        LL_APB1_GRP1_EnableClock\n
 | |
|   *         APBENR1      TIM7EN        LL_APB1_GRP1_EnableClock\n
 | |
|   *         APBENR1      RTCAPBEN      LL_APB1_GRP1_EnableClock\n
 | |
|   *         APBENR1      WWDGEN        LL_APB1_GRP1_EnableClock\n
 | |
|   *         APBENR1      SPI2EN        LL_APB1_GRP1_EnableClock\n
 | |
|   *         APBENR1      SPI3EN        LL_APB1_GRP1_EnableClock\n
 | |
|   *         APBENR1      USART2EN      LL_APB1_GRP1_EnableClock\n
 | |
|   *         APBENR1      USART3EN      LL_APB1_GRP1_EnableClock\n
 | |
|   *         APBENR1      USART4EN      LL_APB1_GRP1_EnableClock\n
 | |
|   *         APBENR1      USART5EN      LL_APB1_GRP1_EnableClock\n
 | |
|   *         APBENR1      USART6EN      LL_APB1_GRP1_EnableClock\n
 | |
|   *         APBENR1      LPUART1EN     LL_APB1_GRP1_EnableClock\n
 | |
|   *         APBENR1      LPUART2EN     LL_APB1_GRP1_EnableClock\n
 | |
|   *         APBENR1      I2C1EN        LL_APB1_GRP1_EnableClock\n
 | |
|   *         APBENR1      I2C2EN        LL_APB1_GRP1_EnableClock\n
 | |
|   *         APBENR1      I2C3EN        LL_APB1_GRP1_EnableClock\n
 | |
|   *         APBENR1      CECEN         LL_APB1_GRP1_EnableClock\n
 | |
|   *         APBENR1      UCPD1EN       LL_APB1_GRP1_EnableClock\n
 | |
|   *         APBENR1      UCPD2EN       LL_APB1_GRP1_EnableClock\n
 | |
|   *         APBENR1      USBEN         LL_APB1_GRP1_EnableClock\n
 | |
|   *         APBENR1      FDCANEN       LL_APB1_GRP1_EnableClock\n
 | |
|   *         APBENR1      DBGEN         LL_APB1_GRP1_EnableClock\n
 | |
|   *         APBENR1      PWREN         LL_APB1_GRP1_EnableClock\n
 | |
|   *         APBENR1      DAC1EN        LL_APB1_GRP1_EnableClock\n
 | |
|   *         APBENR1      LPTIM2EN      LL_APB1_GRP1_EnableClock\n
 | |
|   *         APBENR1      LPTIM1EN      LL_APB1_GRP1_EnableClock
 | |
|   * @param  Periphs This parameter can be a combination of the following values:
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM2    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM3
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM4    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM6    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM7    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_RTC
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_WWDG
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_SPI2
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_SPI3    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART2
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART3  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART4  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART5  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART6  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_LPUART1 (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_LPUART2 (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_I2C1
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_I2C2
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_I2C3    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_CEC     (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_UCPD1   (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_UCPD2   (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USB     (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_FDCAN   (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_DBGMCU
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_PWR
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_DAC1    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_LPTIM2  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_LPTIM1  (1)
 | |
|   * @note Peripheral marked with (1) are not available all devices
 | |
|   * @retval None
 | |
|   */
 | |
| __STATIC_INLINE void LL_APB1_GRP1_EnableClock(uint32_t Periphs)
 | |
| {
 | |
|   __IO uint32_t tmpreg;
 | |
|   SET_BIT(RCC->APBENR1, Periphs);
 | |
|   /* Delay after an RCC peripheral clock enabling */
 | |
|   tmpreg = READ_BIT(RCC->APBENR1, Periphs);
 | |
|   (void)tmpreg;
 | |
| }
 | |
| 
 | |
| /**
 | |
|   * @brief  Check if APB1 peripheral clock is enabled or not
 | |
|   * @rmtoll APBENR1      TIM2EN        LL_APB1_GRP1_IsEnabledClock\n
 | |
|   *         APBENR1      TIM3EN        LL_APB1_GRP1_IsEnabledClock\n
 | |
|   *         APBENR1      TIM4EN        LL_APB1_GRP1_IsEnabledClock\n
 | |
|   *         APBENR1      TIM6EN        LL_APB1_GRP1_IsEnabledClock\n
 | |
|   *         APBENR1      TIM7EN        LL_APB1_GRP1_IsEnabledClock\n
 | |
|   *         APBENR1      RTCAPBEN      LL_APB1_GRP1_IsEnabledClock\n
 | |
|   *         APBENR1      WWDGEN        LL_APB1_GRP1_IsEnabledClock\n
 | |
|   *         APBENR1      SPI2EN        LL_APB1_GRP1_IsEnabledClock\n
 | |
|   *         APBENR1      SPI3EN        LL_APB1_GRP1_IsEnabledClock\n
 | |
|   *         APBENR1      USART2EN      LL_APB1_GRP1_IsEnabledClock\n
 | |
|   *         APBENR1      USART3EN      LL_APB1_GRP1_IsEnabledClock\n
 | |
|   *         APBENR1      USART4EN      LL_APB1_GRP1_IsEnabledClock\n
 | |
|   *         APBENR1      USART5EN      LL_APB1_GRP1_IsEnabledClock\n
 | |
|   *         APBENR1      USART6EN      LL_APB1_GRP1_IsEnabledClock\n
 | |
|   *         APBENR1      LPUART1EN     LL_APB1_GRP1_IsEnabledClock\n
 | |
|   *         APBENR1      LPUART2EN     LL_APB1_GRP1_IsEnabledClock\n
 | |
|   *         APBENR1      I2C1EN        LL_APB1_GRP1_IsEnabledClock\n
 | |
|   *         APBENR1      I2C2EN        LL_APB1_GRP1_IsEnabledClock\n
 | |
|   *         APBENR1      I2C3EN        LL_APB1_GRP1_IsEnabledClock\n
 | |
|   *         APBENR1      CECEN         LL_APB1_GRP1_IsEnabledClock\n
 | |
|   *         APBENR1      UCPD1EN       LL_APB1_GRP1_IsEnabledClock\n
 | |
|   *         APBENR1      UCPD2EN       LL_APB1_GRP1_IsEnabledClock\n
 | |
|   *         APBENR1      USBEN         LL_APB1_GRP1_IsEnabledClock\n
 | |
|   *         APBENR1      FDCANEN       LL_APB1_GRP1_IsEnabledClock\n
 | |
|   *         APBENR1      DBGEN         LL_APB1_GRP1_IsEnabledClock\n
 | |
|   *         APBENR1      PWREN         LL_APB1_GRP1_IsEnabledClock\n
 | |
|   *         APBENR1      DAC1EN        LL_APB1_GRP1_IsEnabledClock\n
 | |
|   *         APBENR1      LPTIM2EN      LL_APB1_GRP1_IsEnabledClock\n
 | |
|   *         APBENR1      LPTIM1EN      LL_APB1_GRP1_IsEnabledClock
 | |
|   * @param  Periphs This parameter can be a combination of the following values:
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM2    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM3
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM4    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM6    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM7    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_RTC
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_WWDG
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_SPI2
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_SPI3    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART2
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART3  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART4  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART5  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART6  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_LPUART1 (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_LPUART2 (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_I2C1
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_I2C2
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_I2C3    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_CEC     (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_UCPD1   (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_UCPD2   (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USB     (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_FDCAN   (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_DBGMCU
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_PWR
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_DAC1    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_LPTIM2  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_LPTIM1  (1)
 | |
|   * @note Peripheral marked with (1) are not available all devices
 | |
|   * @retval State of Periphs (1 or 0).
 | |
|   */
 | |
| __STATIC_INLINE uint32_t LL_APB1_GRP1_IsEnabledClock(uint32_t Periphs)
 | |
| {
 | |
|   return ((READ_BIT(RCC->APBENR1, Periphs) == (Periphs)) ? 1UL : 0UL);
 | |
| }
 | |
| 
 | |
| /**
 | |
|   * @brief  Disable APB1 peripherals clock.
 | |
|   * @rmtoll APBENR1      TIM2EN        LL_APB1_GRP1_DisableClock\n
 | |
|   *         APBENR1      TIM3EN        LL_APB1_GRP1_DisableClock\n
 | |
|   *         APBENR1      TIM4EN        LL_APB1_GRP1_DisableClock\n
 | |
|   *         APBENR1      TIM6EN        LL_APB1_GRP1_DisableClock\n
 | |
|   *         APBENR1      TIM7EN        LL_APB1_GRP1_DisableClock\n
 | |
|   *         APBENR1      RTCAPBEN      LL_APB1_GRP1_DisableClock\n
 | |
|   *         APBENR1      WWDGEN        LL_APB1_GRP1_DisableClock\n
 | |
|   *         APBENR1      SPI2EN        LL_APB1_GRP1_DisableClock\n
 | |
|   *         APBENR1      SPI3EN        LL_APB1_GRP1_DisableClock\n
 | |
|   *         APBENR1      USART2EN      LL_APB1_GRP1_DisableClock\n
 | |
|   *         APBENR1      USART3EN      LL_APB1_GRP1_DisableClock\n
 | |
|   *         APBENR1      USART4EN      LL_APB1_GRP1_DisableClock\n
 | |
|   *         APBENR1      USART5EN      LL_APB1_GRP1_DisableClock\n
 | |
|   *         APBENR1      USART6EN      LL_APB1_GRP1_DisableClock\n
 | |
|   *         APBENR1      LPUART1EN     LL_APB1_GRP1_DisableClock\n
 | |
|   *         APBENR1      LPUART2EN     LL_APB1_GRP1_DisableClock\n
 | |
|   *         APBENR1      I2C1EN        LL_APB1_GRP1_DisableClock\n
 | |
|   *         APBENR1      I2C2EN        LL_APB1_GRP1_DisableClock\n
 | |
|   *         APBENR1      I2C3EN        LL_APB1_GRP1_DisableClock\n
 | |
|   *         APBENR1      CECEN         LL_APB1_GRP1_DisableClock\n
 | |
|   *         APBENR1      UCPD1EN       LL_APB1_GRP1_DisableClock\n
 | |
|   *         APBENR1      UCPD2EN       LL_APB1_GRP1_DisableClock\n
 | |
|   *         APBENR1      USBEN         LL_APB1_GRP1_DisableClock\n
 | |
|   *         APBENR1      FDCANEN       LL_APB1_GRP1_DisableClock\n
 | |
|   *         APBENR1      DBGEN         LL_APB1_GRP1_DisableClock\n
 | |
|   *         APBENR1      PWREN         LL_APB1_GRP1_DisableClock\n
 | |
|   *         APBENR1      DAC1EN        LL_APB1_GRP1_DisableClock\n
 | |
|   *         APBENR1      LPTIM2EN      LL_APB1_GRP1_DisableClock\n
 | |
|   *         APBENR1      LPTIM1EN      LL_APB1_GRP1_DisableClock
 | |
|   * @param  Periphs This parameter can be a combination of the following values:
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM2    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM3
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM4    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM6    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM7    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_RTC
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_WWDG
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_SPI2
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_SPI3    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART2
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART3  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART4  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART5  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART6  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_LPUART1 (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_LPUART2 (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_I2C1
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_I2C2
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_I2C3    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_CEC     (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_UCPD1   (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_UCPD2   (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USB     (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_FDCAN   (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_DBGMCU
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_PWR
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_DAC1    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_LPTIM2  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_LPTIM1  (1)
 | |
|   * @note Peripheral marked with (1) are not available all devices
 | |
|   * @retval None
 | |
|   */
 | |
| __STATIC_INLINE void LL_APB1_GRP1_DisableClock(uint32_t Periphs)
 | |
| {
 | |
|   CLEAR_BIT(RCC->APBENR1, Periphs);
 | |
| }
 | |
| 
 | |
| /**
 | |
|   * @brief  Force APB1 peripherals reset.
 | |
|   * @rmtoll APBRSTR1     TIM2RST       LL_APB1_GRP1_ForceReset\n
 | |
|   *         APBRSTR1     TIM3RST       LL_APB1_GRP1_ForceReset\n
 | |
|   *         APBRSTR1     TIM4RST       LL_APB1_GRP1_ForceReset\n
 | |
|   *         APBRSTR1     TIM6RST       LL_APB1_GRP1_ForceReset\n
 | |
|   *         APBRSTR1     TIM7RST       LL_APB1_GRP1_ForceReset\n
 | |
|   *         APBRSTR1     RTCRST        LL_APB1_GRP1_ForceReset\n
 | |
|   *         APBRSTR1     SPI2RST       LL_APB1_GRP1_ForceReset\n
 | |
|   *         APBRSTR1     SPI3RST       LL_APB1_GRP1_ForceReset\n
 | |
|   *         APBRSTR1     USART2RST     LL_APB1_GRP1_ForceReset\n
 | |
|   *         APBRSTR1     USART3RST     LL_APB1_GRP1_ForceReset\n
 | |
|   *         APBRSTR1     USART4RST     LL_APB1_GRP1_ForceReset\n
 | |
|   *         APBRSTR1     USART5RST     LL_APB1_GRP1_ForceReset\n
 | |
|   *         APBRSTR1     USART6RST     LL_APB1_GRP1_ForceReset\n
 | |
|   *         APBRSTR1     LPUART1RST    LL_APB1_GRP1_ForceReset\n
 | |
|   *         APBRSTR1     LPUART2RST    LL_APB1_GRP1_ForceReset\n
 | |
|   *         APBRSTR1     I2C1RST       LL_APB1_GRP1_ForceReset\n
 | |
|   *         APBRSTR1     I2C2RST       LL_APB1_GRP1_ForceReset\n
 | |
|   *         APBRSTR1     I2C3RST       LL_APB1_GRP1_ForceReset\n
 | |
|   *         APBRSTR1     CECRST        LL_APB1_GRP1_ForceReset\n
 | |
|   *         APBRSTR1     UCPD1RST      LL_APB1_GRP1_ForceReset\n
 | |
|   *         APBRSTR1     UCPD2RST      LL_APB1_GRP1_ForceReset\n
 | |
|   *         APBRSTR1     USBRST        LL_APB1_GRP1_ForceReset\n
 | |
|   *         APBRSTR1     FDCANRST      LL_APB1_GRP1_ForceReset\n
 | |
|   *         APBRSTR1     DBGRST        LL_APB1_GRP1_ForceReset\n
 | |
|   *         APBRSTR1     PWRRST        LL_APB1_GRP1_ForceReset\n
 | |
|   *         APBRSTR1     DAC1RST       LL_APB1_GRP1_ForceReset\n
 | |
|   *         APBRSTR1     LPTIM2RST     LL_APB1_GRP1_ForceReset\n
 | |
|   *         APBRSTR1     LPTIM1RST     LL_APB1_GRP1_ForceReset
 | |
|   * @param  Periphs This parameter can be a combination of the following values:
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM2    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM3
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM4    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM6    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM7    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_RTC
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_SPI2
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_SPI3    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART2
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART3  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART4  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART5  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART6  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_LPUART1 (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_LPUART2 (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_I2C1
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_I2C2
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_I2C3    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_CEC     (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_UCPD1   (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_UCPD2   (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USB     (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_FDCAN   (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_DBGMCU
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_PWR
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_DAC1    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_LPTIM2  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_LPTIM1  (1)
 | |
|   * @note Peripheral marked with (1) are not available all devices
 | |
|   * @retval None
 | |
|   */
 | |
| __STATIC_INLINE void LL_APB1_GRP1_ForceReset(uint32_t Periphs)
 | |
| {
 | |
|   SET_BIT(RCC->APBRSTR1, Periphs);
 | |
| }
 | |
| 
 | |
| /**
 | |
|   * @brief  Release APB1 peripherals reset.
 | |
|   * @rmtoll APBRSTR1     TIM2RST       LL_APB1_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR1     TIM4RST       LL_APB1_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR1     TIM6RST       LL_APB1_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR1     TIM7RST       LL_APB1_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR1     RTCRST        LL_APB1_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR1     SPI2RST       LL_APB1_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR1     SPI3RST       LL_APB1_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR1     USART2RST     LL_APB1_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR1     USART3RST     LL_APB1_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR1     USART4RST     LL_APB1_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR1     USART5RST     LL_APB1_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR1     USART6RST     LL_APB1_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR1     LPUART1RST    LL_APB1_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR1     LPUART2RST    LL_APB1_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR1     I2C1RST       LL_APB1_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR1     I2C2RST       LL_APB1_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR1     I2C3RST       LL_APB1_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR1     CECRST        LL_APB1_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR1     UCPD1RST      LL_APB1_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR1     UCPD2RST      LL_APB1_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR1     USBRST        LL_APB1_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR1     FDCANRST      LL_APB1_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR1     DBGRST        LL_APB1_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR1     PWRRST        LL_APB1_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR1     DAC1RST       LL_APB1_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR1     LPTIM2RST     LL_APB1_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR1     LPTIM1RST     LL_APB1_GRP1_ReleaseReset
 | |
|   * @param  Periphs This parameter can be a combination of the following values:
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM2    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM3
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM4    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM6    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM7    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_RTC
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_SPI2
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_SPI3    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART2
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART3  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART4  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART5  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART6  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_LPUART1 (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_LPUART2 (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_I2C1
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_I2C2
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_I2C3    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_CEC     (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_UCPD1   (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_UCPD2   (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USB     (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_FDCAN   (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_DBGMCU
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_PWR
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_DAC1    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_LPTIM2  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_LPTIM1  (1)
 | |
|   * @note Peripheral marked with (1) are not available all devices
 | |
|   * @retval None
 | |
|   */
 | |
| __STATIC_INLINE void LL_APB1_GRP1_ReleaseReset(uint32_t Periphs)
 | |
| {
 | |
|   CLEAR_BIT(RCC->APBRSTR1, Periphs);
 | |
| }
 | |
| 
 | |
| /**
 | |
|   * @brief  Enable APB1 peripheral clocks in Sleep and Stop modes
 | |
|   * @rmtoll APBSMENR1    TIM2SMEN      LL_APB1_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR1    TIM3SMEN      LL_APB1_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR1    TIM4SMEN      LL_APB1_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR1    TIM6SMEN      LL_APB1_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR1    TIM7SMEN      LL_APB1_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR1    RTCAPBSMEN    LL_APB1_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR1    WWDGSMEN      LL_APB1_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR1    SPI2SMEN      LL_APB1_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR1    SPI3SMEN      LL_APB1_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR1    USART2SMEN    LL_APB1_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR1    USART3SMEN    LL_APB1_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR1    USART4SMEN    LL_APB1_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR1    USART5SMEN    LL_APB1_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR1    USART6SMEN    LL_APB1_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR1    LPUART1SMEN   LL_APB1_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR1    LPUART2SMEN   LL_APB1_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR1    I2C1SMEN      LL_APB1_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR1    I2C2SMEN      LL_APB1_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR1    I2C3SMEN      LL_APB1_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR1    CECSMEN       LL_APB1_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR1    UCPD1SMEN     LL_APB1_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR1    UCPD2SMEN     LL_APB1_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR1    USBSMEN       LL_APB1_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR1    FDCANSMEN     LL_APB1_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR1    DBGSMEN       LL_APB1_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR1    PWRSMEN       LL_APB1_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR1    DAC1SMEN      LL_APB1_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR1    LPTIM2SMEN    LL_APB1_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR1    LPTIM1SMEN    LL_APB1_GRP1_EnableClockStopSleep
 | |
|   * @param  Periphs This parameter can be a combination of the following values:
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM2    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM3
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM4    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM6    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM7    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_RTC
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_WWDG
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_SPI2
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_SPI3    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART2
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART3  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART4  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART5  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART6  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_LPUART1 (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_LPUART2 (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_I2C1
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_I2C2
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_I2C3    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_CEC     (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_UCPD1   (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_UCPD2   (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USB     (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_FDCAN   (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_DBGMCU
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_PWR
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_DAC1    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_LPTIM2  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_LPTIM1  (1)
 | |
|   * @note Peripheral marked with (1) are not available all devices
 | |
|   * @retval None
 | |
|   */
 | |
| __STATIC_INLINE void LL_APB1_GRP1_EnableClockStopSleep(uint32_t Periphs)
 | |
| {
 | |
|   __IO uint32_t tmpreg;
 | |
|   SET_BIT(RCC->APBSMENR1, Periphs);
 | |
|   /* Delay after an RCC peripheral clock enabling */
 | |
|   tmpreg = READ_BIT(RCC->APBSMENR1, Periphs);
 | |
|   (void)tmpreg;
 | |
| }
 | |
| 
 | |
| /**
 | |
|   * @brief  Disable APB1 peripheral clocks in Sleep and Stop modes
 | |
|   * @rmtoll APBSMENR1    TIM2SMEN      LL_APB1_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR1    TIM3SMEN      LL_APB1_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR1    TIM'SMEN      LL_APB1_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR1    TIM6SMEN      LL_APB1_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR1    TIM7SMEN      LL_APB1_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR1    RTCAPBSMEN    LL_APB1_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR1    WWDGSMEN      LL_APB1_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR1    SPI2SMEN      LL_APB1_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR1    SPI3SMEN      LL_APB1_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR1    USART2SMEN    LL_APB1_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR1    USART3SMEN    LL_APB1_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR1    USART4SMEN    LL_APB1_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR1    USART5SMEN    LL_APB1_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR1    USART6SMEN    LL_APB1_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR1    LPUART1SMEN   LL_APB1_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR1    LPUART2SMEN   LL_APB1_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR1    I2C1SMEN      LL_APB1_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR1    I2C2SMEN      LL_APB1_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR1    I2C3SMEN      LL_APB1_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR1    CECSMEN       LL_APB1_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR1    UCPD1SMEN     LL_APB1_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR1    UCPD2SMEN     LL_APB1_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR1    USBSMEN       LL_APB1_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR1    FSCANSMEN     LL_APB1_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR1    DBGSMEN       LL_APB1_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR1    PWRSMEN       LL_APB1_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR1    DAC1SMEN      LL_APB1_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR1    LPTIM2SMEN    LL_APB1_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR1    LPTIM1SMEN    LL_APB1_GRP1_DisableClockStopSleep
 | |
|   * @param  Periphs This parameter can be a combination of the following values:
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM2    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM3
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM4    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM6    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_TIM7    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_RTC
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_WWDG
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_SPI2
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_SPI3    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART2
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART3  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART4  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART5  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USART6  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_LPUART1 (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_LPUART2 (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_I2C1
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_I2C2
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_I2C3    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_CEC     (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_UCPD1   (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_UCPD2   (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_USB     (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_FDCAN   (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_DBGMCU
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_PWR
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_DAC1    (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_LPTIM2  (1)
 | |
|   *         @arg @ref LL_APB1_GRP1_PERIPH_LPTIM1  (1)
 | |
|   * @note Peripheral marked with (1) are not available all devices
 | |
|   * @retval None
 | |
|   */
 | |
| __STATIC_INLINE void LL_APB1_GRP1_DisableClockStopSleep(uint32_t Periphs)
 | |
| {
 | |
|   CLEAR_BIT(RCC->APBSMENR1, Periphs);
 | |
| }
 | |
| 
 | |
| /**
 | |
|   * @}
 | |
|   */
 | |
| 
 | |
| /** @defgroup BUS_LL_EF_APB2 APB2
 | |
|   * @{
 | |
|   */
 | |
| 
 | |
| /**
 | |
|   * @brief  Enable APB2 peripherals clock.
 | |
|   * @rmtoll APBENR2      SYSCFGEN      LL_APB2_GRP1_EnableClock\n
 | |
|   *         APBENR2      TIM1EN        LL_APB2_GRP1_EnableClock\n
 | |
|   *         APBENR2      SPI1EN        LL_APB2_GRP1_EnableClock\n
 | |
|   *         APBENR2      USART1EN      LL_APB2_GRP1_EnableClock\n
 | |
|   *         APBENR2      TIM14EN       LL_APB2_GRP1_EnableClock\n
 | |
|   *         APBENR2      TIM15EN       LL_APB2_GRP1_EnableClock\n
 | |
|   *         APBENR2      TIM16EN       LL_APB2_GRP1_EnableClock\n
 | |
|   *         APBENR2      TIM17EN       LL_APB2_GRP1_EnableClock\n
 | |
|   *         APBENR2      ADCEN         LL_APB2_GRP1_EnableClock
 | |
|   * @param  Periphs This parameter can be a combination of the following values:
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_SYSCFG
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM1
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_SPI1
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_USART1
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM14
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM15 (*)
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM16
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM17
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_ADC
 | |
|   * @note (*) peripheral not available on all devices
 | |
|   * @retval None
 | |
|   */
 | |
| __STATIC_INLINE void LL_APB2_GRP1_EnableClock(uint32_t Periphs)
 | |
| {
 | |
|   __IO uint32_t tmpreg;
 | |
|   SET_BIT(RCC->APBENR2, Periphs);
 | |
|   /* Delay after an RCC peripheral clock enabling */
 | |
|   tmpreg = READ_BIT(RCC->APBENR2, Periphs);
 | |
|   (void)tmpreg;
 | |
| }
 | |
| 
 | |
| /**
 | |
|   * @brief  Check if APB2 peripheral clock is enabled or not
 | |
|   * @rmtoll APBENR2      SYSCFGEN      LL_APB2_GRP1_IsEnabledClock\n
 | |
|   *         APBENR2      TIM1EN        LL_APB2_GRP1_IsEnabledClock\n
 | |
|   *         APBENR2      SPI1EN        LL_APB2_GRP1_IsEnabledClock\n
 | |
|   *         APBENR2      USART1EN      LL_APB2_GRP1_IsEnabledClock\n
 | |
|   *         APBENR2      TIM14EN       LL_APB2_GRP1_IsEnabledClock\n
 | |
|   *         APBENR2      TIM15EN       LL_APB2_GRP1_IsEnabledClock\n
 | |
|   *         APBENR2      TIM16EN       LL_APB2_GRP1_IsEnabledClock\n
 | |
|   *         APBENR2      TIM17EN       LL_APB2_GRP1_IsEnabledClock\n
 | |
|   *         APBENR2      ADCEN         LL_APB2_GRP1_IsEnabledClock
 | |
|   * @param  Periphs This parameter can be a combination of the following values:
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_SYSCFG
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM1
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_SPI1
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_USART1
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM14
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM15 (*)
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM16
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM17
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_ADC
 | |
|   * @note (*) peripheral not available on all devices
 | |
|   * @retval State of Periphs (1 or 0).
 | |
|   */
 | |
| __STATIC_INLINE uint32_t LL_APB2_GRP1_IsEnabledClock(uint32_t Periphs)
 | |
| {
 | |
|   return ((READ_BIT(RCC->APBENR2, Periphs) == (Periphs)) ? 1UL : 0UL);
 | |
| }
 | |
| 
 | |
| /**
 | |
|   * @brief  Disable APB2 peripherals clock.
 | |
|   * @rmtoll APBENR2      SYSCFGEN      LL_APB2_GRP1_DisableClock\n
 | |
|   *         APBENR2      TIM1EN        LL_APB2_GRP1_DisableClock\n
 | |
|   *         APBENR2      SPI1EN        LL_APB2_GRP1_DisableClock\n
 | |
|   *         APBENR2      USART1EN      LL_APB2_GRP1_DisableClock\n
 | |
|   *         APBENR2      TIM14EN       LL_APB2_GRP1_DisableClock\n
 | |
|   *         APBENR2      TIM15EN       LL_APB2_GRP1_DisableClock\n
 | |
|   *         APBENR2      TIM16EN       LL_APB2_GRP1_DisableClock\n
 | |
|   *         APBENR2      TIM17EN       LL_APB2_GRP1_DisableClock\n
 | |
|   *         APBENR2      ADCEN         LL_APB2_GRP1_DisableClock
 | |
|   * @param  Periphs This parameter can be a combination of the following values:
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_SYSCFG
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM1
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_SPI1
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_USART1
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM14
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM15 (*)
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM16
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM17
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_ADC
 | |
|   * @note (*) peripheral not available on all devices
 | |
|   * @retval None
 | |
|   */
 | |
| __STATIC_INLINE void LL_APB2_GRP1_DisableClock(uint32_t Periphs)
 | |
| {
 | |
|   CLEAR_BIT(RCC->APBENR2, Periphs);
 | |
| }
 | |
| 
 | |
| /**
 | |
|   * @brief  Force APB2 peripherals reset.
 | |
|   * @rmtoll APBRSTR2     SYSCFGRST     LL_APB2_GRP1_ForceReset\n
 | |
|   *         APBRSTR2     TIM1RST       LL_APB2_GRP1_ForceReset\n
 | |
|   *         APBRSTR2     SPI1RST       LL_APB2_GRP1_ForceReset\n
 | |
|   *         APBRSTR2     USART1RST     LL_APB2_GRP1_ForceReset\n
 | |
|   *         APBRSTR2     TIM14RST      LL_APB2_GRP1_ForceReset\n
 | |
|   *         APBRSTR2     TIM15RST      LL_APB2_GRP1_ForceReset\n
 | |
|   *         APBRSTR2     TIM16RST      LL_APB2_GRP1_ForceReset\n
 | |
|   *         APBRSTR2     TIM17RST      LL_APB2_GRP1_ForceReset\n
 | |
|   *         APBRSTR2     ADCRST        LL_APB2_GRP1_ForceReset
 | |
|   * @param  Periphs This parameter can be a combination of the following values:
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_ALL
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_SYSCFG
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM1
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_SPI1
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_USART1
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM14
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM15 (*)
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM16
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM17
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_ADC
 | |
|   * @note (*) peripheral not available on all devices
 | |
|   * @retval None
 | |
|   */
 | |
| __STATIC_INLINE void LL_APB2_GRP1_ForceReset(uint32_t Periphs)
 | |
| {
 | |
|   SET_BIT(RCC->APBRSTR2, Periphs);
 | |
| }
 | |
| 
 | |
| /**
 | |
|   * @brief  Release APB2 peripherals reset.
 | |
|   * @rmtoll APBRSTR2     SYSCFGRST     LL_APB2_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR2     TIM1RST       LL_APB2_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR2     SPI1RST       LL_APB2_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR2     USART1RST     LL_APB2_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR2     TIM14RST      LL_APB2_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR2     TIM15RST      LL_APB2_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR2     TIM16RST      LL_APB2_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR2     TIM17RST      LL_APB2_GRP1_ReleaseReset\n
 | |
|   *         APBRSTR2     ADCRST        LL_APB2_GRP1_ReleaseReset
 | |
|   * @param  Periphs This parameter can be a combination of the following values:
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_ALL
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_SYSCFG
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM1
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_SPI1
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_USART1
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM14
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM15 (*)
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM16
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM17
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_ADC
 | |
|   * @note (*) peripheral not available on all devices
 | |
|   * @retval None
 | |
|   */
 | |
| __STATIC_INLINE void LL_APB2_GRP1_ReleaseReset(uint32_t Periphs)
 | |
| {
 | |
|   CLEAR_BIT(RCC->APBRSTR2, Periphs);
 | |
| }
 | |
| 
 | |
| /**
 | |
|   * @brief  Enable APB2 peripheral clocks in Sleep and Stop modes
 | |
|   * @rmtoll APBSMENR2    SYSCFGSMEN    LL_APB2_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR2    TIM1SMEN      LL_APB2_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR2    SPI1SMEN      LL_APB2_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR2    USART1SMEN    LL_APB2_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR2    TIM14SMEN     LL_APB2_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR2    TIM15SMEN     LL_APB2_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR2    TIM16SMEN     LL_APB2_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR2    TIM17SMEN     LL_APB2_GRP1_EnableClockStopSleep\n
 | |
|   *         APBSMENR2    ADCSMEN       LL_APB2_GRP1_EnableClockStopSleep
 | |
|   * @param  Periphs This parameter can be a combination of the following values:
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_SYSCFG
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM1
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_SPI1
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_USART1
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM14
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM15 (*)
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM16
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM17
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_ADC
 | |
|   * @note (*) peripheral not available on all devices
 | |
|   * @retval None
 | |
|   */
 | |
| __STATIC_INLINE void LL_APB2_GRP1_EnableClockStopSleep(uint32_t Periphs)
 | |
| {
 | |
|   __IO uint32_t tmpreg;
 | |
|   SET_BIT(RCC->APBSMENR2, Periphs);
 | |
|   /* Delay after an RCC peripheral clock enabling */
 | |
|   tmpreg = READ_BIT(RCC->APBSMENR2, Periphs);
 | |
|   (void)tmpreg;
 | |
| }
 | |
| 
 | |
| /**
 | |
|   * @brief  Disable APB2 peripheral clocks in Sleep and Stop modes
 | |
|   * @rmtoll APBSMENR2    SYSCFGSMEN    LL_APB2_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR2    TIM1SMEN      LL_APB2_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR2    SPI1SMEN      LL_APB2_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR2    USART1SMEN    LL_APB2_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR2    TIM14SMEN     LL_APB2_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR2    TIM15SMEN     LL_APB2_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR2    TIM16SMEN     LL_APB2_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR2    TIM17SMEN     LL_APB2_GRP1_DisableClockStopSleep\n
 | |
|   *         APBSMENR2    ADCSMEN       LL_APB2_GRP1_DisableClockStopSleep
 | |
|   * @param  Periphs This parameter can be a combination of the following values:
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_SYSCFG
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM1
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_SPI1
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_USART1
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM14
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM15 (*)
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM16
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_TIM17
 | |
|   *         @arg @ref LL_APB2_GRP1_PERIPH_ADC
 | |
|   * @note (*) peripheral not available on all devices
 | |
|   * @retval None
 | |
|   */
 | |
| __STATIC_INLINE void LL_APB2_GRP1_DisableClockStopSleep(uint32_t Periphs)
 | |
| {
 | |
|   CLEAR_BIT(RCC->APBSMENR2, Periphs);
 | |
| }
 | |
| 
 | |
| /**
 | |
|   * @}
 | |
|   */
 | |
| 
 | |
| /** @defgroup BUS_LL_EF_IOP IOP
 | |
|   * @{
 | |
|   */
 | |
| 
 | |
| /**
 | |
|   * @brief  Enable IOP peripherals clock.
 | |
|   * @rmtoll IOPENR       GPIOAEN       LL_IOP_GRP1_EnableClock\n
 | |
|   *         IOPENR       GPIOBEN       LL_IOP_GRP1_EnableClock\n
 | |
|   *         IOPENR       GPIOCEN       LL_IOP_GRP1_EnableClock\n
 | |
|   *         IOPENR       GPIODEN       LL_IOP_GRP1_EnableClock\n
 | |
|   *         IOPENR       GPIOEEN       LL_IOP_GRP1_EnableClock\n
 | |
|   *         IOPENR       GPIOFEN       LL_IOP_GRP1_EnableClock
 | |
|   * @param  Periphs This parameter can be a combination of the following values:
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOA
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOB
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOC
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOD
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOE
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOF
 | |
|   * @retval None
 | |
|   */
 | |
| __STATIC_INLINE void LL_IOP_GRP1_EnableClock(uint32_t Periphs)
 | |
| {
 | |
|   __IO uint32_t tmpreg;
 | |
|   SET_BIT(RCC->IOPENR, Periphs);
 | |
|   /* Delay after an RCC peripheral clock enabling */
 | |
|   tmpreg = READ_BIT(RCC->IOPENR, Periphs);
 | |
|   (void)tmpreg;
 | |
| }
 | |
| 
 | |
| /**
 | |
|   * @brief  Check if IOP peripheral clock is enabled or not
 | |
|   * @rmtoll IOPENR       GPIOAEN       LL_IOP_GRP1_IsEnabledClock\n
 | |
|   *         IOPENR       GPIOBEN       LL_IOP_GRP1_IsEnabledClock\n
 | |
|   *         IOPENR       GPIOCEN       LL_IOP_GRP1_IsEnabledClock\n
 | |
|   *         IOPENR       GPIODEN       LL_IOP_GRP1_IsEnabledClock\n
 | |
|   *         IOPENR       GPIOEEN       LL_IOP_GRP1_IsEnabledClock\n
 | |
|   *         IOPENR       GPIOFEN       LL_IOP_GRP1_IsEnabledClock
 | |
|   * @param  Periphs This parameter can be a combination of the following values:
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOA
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOB
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOC
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOD
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOE
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOF
 | |
|   * @retval State of Periphs (1 or 0).
 | |
|   */
 | |
| __STATIC_INLINE uint32_t LL_IOP_GRP1_IsEnabledClock(uint32_t Periphs)
 | |
| {
 | |
|   return ((READ_BIT(RCC->IOPENR, Periphs) == Periphs) ? 1UL : 0UL);
 | |
| }
 | |
| 
 | |
| /**
 | |
|   * @brief  Disable IOP peripherals clock.
 | |
|   * @rmtoll IOPENR       GPIOAEN       LL_IOP_GRP1_DisableClock\n
 | |
|   *         IOPENR       GPIOBEN       LL_IOP_GRP1_DisableClock\n
 | |
|   *         IOPENR       GPIOCEN       LL_IOP_GRP1_DisableClock\n
 | |
|   *         IOPENR       GPIODEN       LL_IOP_GRP1_DisableClock\n
 | |
|   *         IOPENR       GPIOEEN       LL_IOP_GRP1_DisableClock\n
 | |
|   *         IOPENR       GPIOFEN       LL_IOP_GRP1_DisableClock
 | |
|   * @param  Periphs This parameter can be a combination of the following values:
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOA
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOB
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOC
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOD
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOE
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOF
 | |
|   * @retval None
 | |
|   */
 | |
| __STATIC_INLINE void LL_IOP_GRP1_DisableClock(uint32_t Periphs)
 | |
| {
 | |
|   CLEAR_BIT(RCC->IOPENR, Periphs);
 | |
| }
 | |
| 
 | |
| /**
 | |
|   * @brief  Disable IOP peripherals clock.
 | |
|   * @rmtoll IOPRSTR      GPIOARST      LL_IOP_GRP1_ForceReset\n
 | |
|   *         IOPRSTR      GPIOBRST      LL_IOP_GRP1_ForceReset\n
 | |
|   *         IOPRSTR      GPIOCRST      LL_IOP_GRP1_ForceReset\n
 | |
|   *         IOPRSTR      GPIODRST      LL_IOP_GRP1_ForceReset\n
 | |
|   *         IOPRSTR      GPIOERST      LL_IOP_GRP1_ForceReset\n
 | |
|   *         IOPRSTR      GPIOFRST      LL_IOP_GRP1_ForceReset
 | |
|   * @param  Periphs This parameter can be a combination of the following values:
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_ALL
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOA
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOB
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOC
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOD
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOE
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOF
 | |
|   * @retval None
 | |
|   */
 | |
| __STATIC_INLINE void LL_IOP_GRP1_ForceReset(uint32_t Periphs)
 | |
| {
 | |
|   SET_BIT(RCC->IOPRSTR, Periphs);
 | |
| }
 | |
| 
 | |
| /**
 | |
|   * @brief  Release IOP peripherals reset.
 | |
|   * @rmtoll IOPRSTR      GPIOARST      LL_IOP_GRP1_ReleaseReset\n
 | |
|   *         IOPRSTR      GPIOBRST      LL_IOP_GRP1_ReleaseReset\n
 | |
|   *         IOPRSTR      GPIOCRST      LL_IOP_GRP1_ReleaseReset\n
 | |
|   *         IOPRSTR      GPIODRST      LL_IOP_GRP1_ReleaseReset\n
 | |
|   *         IOPRSTR      GPIOERST      LL_IOP_GRP1_ReleaseReset\n
 | |
|   *         IOPRSTR      GPIOFRST      LL_IOP_GRP1_ReleaseReset
 | |
|   * @param  Periphs This parameter can be a combination of the following values:
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_ALL
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOA
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOB
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOC
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOD
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOE
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOF
 | |
|   * @retval None
 | |
|   */
 | |
| __STATIC_INLINE void LL_IOP_GRP1_ReleaseReset(uint32_t Periphs)
 | |
| {
 | |
|   CLEAR_BIT(RCC->IOPRSTR, Periphs);
 | |
| }
 | |
| 
 | |
| /**
 | |
|   * @brief  Enable IOP peripheral clocks in Sleep and Stop modes
 | |
|   * @rmtoll IOPSMENR     GPIOASMEN     LL_IOP_GRP1_EnableClockStopSleep\n
 | |
|   *         IOPSMENR     GPIOBSMEN     LL_IOP_GRP1_EnableClockStopSleep\n
 | |
|   *         IOPSMENR     GPIOCSMEN     LL_IOP_GRP1_EnableClockStopSleep\n
 | |
|   *         IOPSMENR     GPIODSMEN     LL_IOP_GRP1_EnableClockStopSleep\n
 | |
|   *         IOPSMENR     GPIOESMEN     LL_IOP_GRP1_EnableClockStopSleep\n
 | |
|   *         IOPSMENR     GPIOFSMEN     LL_IOP_GRP1_EnableClockStopSleep
 | |
|   * @param  Periphs This parameter can be a combination of the following values:
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOA
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOB
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOC
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOD
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOE
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOF
 | |
|   * @retval None
 | |
|   */
 | |
| __STATIC_INLINE void LL_IOP_GRP1_EnableClockStopSleep(uint32_t Periphs)
 | |
| {
 | |
|   __IO uint32_t tmpreg;
 | |
|   SET_BIT(RCC->IOPSMENR, Periphs);
 | |
|   /* Delay after an RCC peripheral clock enabling */
 | |
|   tmpreg = READ_BIT(RCC->IOPSMENR, Periphs);
 | |
|   (void)tmpreg;
 | |
| }
 | |
| 
 | |
| /**
 | |
|   * @brief  Disable IOP peripheral clocks in Sleep and Stop modes
 | |
|   * @rmtoll IOPSMENR     GPIOASMEN     LL_IOP_GRP1_DisableClockStopSleep\n
 | |
|   *         IOPSMENR     GPIOBSMEN     LL_IOP_GRP1_DisableClockStopSleep\n
 | |
|   *         IOPSMENR     GPIOCSMEN     LL_IOP_GRP1_DisableClockStopSleep\n
 | |
|   *         IOPSMENR     GPIODSMEN     LL_IOP_GRP1_DisableClockStopSleep\n
 | |
|   *         IOPSMENR     GPIOESMEN     LL_IOP_GRP1_DisableClockStopSleep\n
 | |
|   *         IOPSMENR     GPIOFSMEN     LL_IOP_GRP1_DisableClockStopSleep
 | |
|   * @param  Periphs This parameter can be a combination of the following values:
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOA
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOB
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOC
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOD
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOE
 | |
|   *         @arg @ref LL_IOP_GRP1_PERIPH_GPIOF
 | |
|   * @retval None
 | |
|   */
 | |
| __STATIC_INLINE void LL_IOP_GRP1_DisableClockStopSleep(uint32_t Periphs)
 | |
| {
 | |
|   CLEAR_BIT(RCC->IOPSMENR, Periphs);
 | |
| }
 | |
| 
 | |
| /**
 | |
|   * @}
 | |
|   */
 | |
| 
 | |
| 
 | |
| /**
 | |
|   * @}
 | |
|   */
 | |
| 
 | |
| /**
 | |
|   * @}
 | |
|   */
 | |
| 
 | |
| #endif /* RCC */
 | |
| 
 | |
| /**
 | |
|   * @}
 | |
|   */
 | |
| 
 | |
| #ifdef __cplusplus
 | |
| }
 | |
| #endif
 | |
| 
 | |
| #endif /* STM32G0xx_LL_BUS_H */
 | |
| 
 |