12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313 |
- /**
- ******************************************************************************
- * @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
- *
- * <h2><center>© Copyright (c) 2018 STMicroelectronics.
- * All rights reserved.</center></h2>
- *
- * This software component is licensed by ST under BSD 3-Clause license,
- * the "License"; You may not use this file except in compliance with the
- * License. You may obtain a copy of the License at:
- * opensource.org/licenses/BSD-3-Clause
- *
- ******************************************************************************
- */
- /* 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 WWDGRST 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_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_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 WWDGRST 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_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_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 */
- /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|