1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306 |
- /**
- ******************************************************************************
- * @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 */
|