RTEMS 6.1-rc4
Loading...
Searching...
No Matches
stm32h7xx_ll_bus.h
Go to the documentation of this file.
1
35/* Define to prevent recursive inclusion -------------------------------------*/
36#ifndef STM32H7xx_LL_BUS_H
37#define STM32H7xx_LL_BUS_H
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43/* Includes ------------------------------------------------------------------*/
44#include "stm32h7xx.h"
45
50#if defined(RCC)
51
57/* Private variables ---------------------------------------------------------*/
58
59/* Private constants ---------------------------------------------------------*/
60
61/* Private macros ------------------------------------------------------------*/
62
63/* Exported types ------------------------------------------------------------*/
64
65/* Exported constants --------------------------------------------------------*/
75#define LL_AHB3_GRP1_PERIPH_MDMA RCC_AHB3ENR_MDMAEN
76#define LL_AHB3_GRP1_PERIPH_DMA2D RCC_AHB3ENR_DMA2DEN
77
78#if defined(JPEG)
79#define LL_AHB3_GRP1_PERIPH_JPGDEC RCC_AHB3ENR_JPGDECEN
80#endif /* JPEG */
81
82#define LL_AHB3_GRP1_PERIPH_FMC RCC_AHB3ENR_FMCEN
83#if defined(QUADSPI)
84#define LL_AHB3_GRP1_PERIPH_QSPI RCC_AHB3ENR_QSPIEN
85#endif /* QUADSPI */
86#if defined(OCTOSPI1) || defined(OCTOSPI2)
87#define LL_AHB3_GRP1_PERIPH_OSPI1 RCC_AHB3ENR_OSPI1EN
88#define LL_AHB3_GRP1_PERIPH_OSPI2 RCC_AHB3ENR_OSPI2EN
89#endif /*(OCTOSPI1) || (OCTOSPI2)*/
90#if defined(OCTOSPIM)
91#define LL_AHB3_GRP1_PERIPH_OCTOSPIM RCC_AHB3ENR_IOMNGREN
92#endif /* OCTOSPIM */
93#if defined(OTFDEC1) || defined(OTFDEC2)
94#define LL_AHB3_GRP1_PERIPH_OTFDEC1 RCC_AHB3ENR_OTFDEC1EN
95#define LL_AHB3_GRP1_PERIPH_OTFDEC2 RCC_AHB3ENR_OTFDEC2EN
96#endif /* (OTFDEC1) || (OTFDEC2) */
97#if defined(GFXMMU)
98#define LL_AHB3_GRP1_PERIPH_GFXMMU RCC_AHB3ENR_GFXMMUEN
99#endif /* GFXMMU */
100#define LL_AHB3_GRP1_PERIPH_SDMMC1 RCC_AHB3ENR_SDMMC1EN
101#define LL_AHB3_GRP1_PERIPH_FLASH RCC_AHB3LPENR_FLASHLPEN
102#define LL_AHB3_GRP1_PERIPH_DTCM1 RCC_AHB3LPENR_DTCM1LPEN
103#define LL_AHB3_GRP1_PERIPH_DTCM2 RCC_AHB3LPENR_DTCM2LPEN
104#define LL_AHB3_GRP1_PERIPH_ITCM RCC_AHB3LPENR_ITCMLPEN
105#if defined(RCC_AHB3LPENR_AXISRAMLPEN)
106#define LL_AHB3_GRP1_PERIPH_AXISRAM RCC_AHB3LPENR_AXISRAMLPEN
107#else
108#define LL_AHB3_GRP1_PERIPH_AXISRAM1 RCC_AHB3LPENR_AXISRAM1LPEN
109#define LL_AHB3_GRP1_PERIPH_AXISRAM LL_AHB3_GRP1_PERIPH_AXISRAM1 /* for backward compatibility*/
110#endif /* RCC_AHB3LPENR_AXISRAMLPEN */
111#if defined(CD_AXISRAM2_BASE)
112#define LL_AHB3_GRP1_PERIPH_AXISRAM2 RCC_AHB3LPENR_AXISRAM2LPEN
113#endif /* CD_AXISRAM2_BASE */
114#if defined(CD_AXISRAM3_BASE)
115#define LL_AHB3_GRP1_PERIPH_AXISRAM3 RCC_AHB3LPENR_AXISRAM3LPEN
116#endif /* CD_AXISRAM3_BASE */
126#define LL_AHB1_GRP1_PERIPH_DMA1 RCC_AHB1ENR_DMA1EN
127#define LL_AHB1_GRP1_PERIPH_DMA2 RCC_AHB1ENR_DMA2EN
128#define LL_AHB1_GRP1_PERIPH_ADC12 RCC_AHB1ENR_ADC12EN
129#if defined(DUAL_CORE)
130#define LL_AHB1_GRP1_PERIPH_ART RCC_AHB1ENR_ARTEN
131#endif /* DUAL_CORE */
132#if defined(RCC_AHB1ENR_CRCEN)
133#define LL_AHB1_GRP1_PERIPH_CRC RCC_AHB1ENR_CRCEN
134#endif /* RCC_AHB1ENR_CRCEN */
135#if defined(ETH)
136#define LL_AHB1_GRP1_PERIPH_ETH1MAC RCC_AHB1ENR_ETH1MACEN
137#define LL_AHB1_GRP1_PERIPH_ETH1TX RCC_AHB1ENR_ETH1TXEN
138#define LL_AHB1_GRP1_PERIPH_ETH1RX RCC_AHB1ENR_ETH1RXEN
139#endif /* ETH */
140#define LL_AHB1_GRP1_PERIPH_USB1OTGHS RCC_AHB1ENR_USB1OTGHSEN
141#define LL_AHB1_GRP1_PERIPH_USB1OTGHSULPI RCC_AHB1ENR_USB1OTGHSULPIEN
142#if defined(USB2_OTG_FS)
143#define LL_AHB1_GRP1_PERIPH_USB2OTGHS RCC_AHB1ENR_USB2OTGHSEN
144#define LL_AHB1_GRP1_PERIPH_USB2OTGHSULPI RCC_AHB1ENR_USB2OTGHSULPIEN
145#endif /* USB2_OTG_FS */
155#define LL_AHB2_GRP1_PERIPH_DCMI RCC_AHB2ENR_DCMIEN
156#if defined(HSEM) && defined(RCC_AHB2ENR_HSEMEN)
157#define LL_AHB2_GRP1_PERIPH_HSEM RCC_AHB2ENR_HSEMEN
158#endif /* HSEM && RCC_AHB2ENR_HSEMEN */
159#if defined(CRYP)
160#define LL_AHB2_GRP1_PERIPH_CRYP RCC_AHB2ENR_CRYPEN
161#endif /* CRYP */
162#if defined(HASH)
163#define LL_AHB2_GRP1_PERIPH_HASH RCC_AHB2ENR_HASHEN
164#endif /* HASH */
165#define LL_AHB2_GRP1_PERIPH_RNG RCC_AHB2ENR_RNGEN
166#define LL_AHB2_GRP1_PERIPH_SDMMC2 RCC_AHB2ENR_SDMMC2EN
167#if defined(FMAC)
168#define LL_AHB2_GRP1_PERIPH_FMAC RCC_AHB2ENR_FMACEN
169#endif /* FMAC */
170#if defined(CORDIC)
171#define LL_AHB2_GRP1_PERIPH_CORDIC RCC_AHB2ENR_CORDICEN
172#endif /* CORDIC */
173#if defined(BDMA1)
174#define LL_AHB2_GRP1_PERIPH_BDMA1 RCC_AHB2ENR_BDMA1EN
175#endif /* BDMA1 */
176#if defined(RCC_AHB2ENR_D2SRAM1EN)
177#define LL_AHB2_GRP1_PERIPH_D2SRAM1 RCC_AHB2ENR_D2SRAM1EN
178#else
179#define LL_AHB2_GRP1_PERIPH_AHBSRAM1 RCC_AHB2ENR_AHBSRAM1EN
180#define LL_AHB2_GRP1_PERIPH_D2SRAM1 LL_AHB2_GRP1_PERIPH_AHBSRAM1 /* for backward compatibility*/
181#endif /* RCC_AHB2ENR_D2SRAM1EN */
182#if defined(RCC_AHB2ENR_D2SRAM2EN)
183#define LL_AHB2_GRP1_PERIPH_D2SRAM2 RCC_AHB2ENR_D2SRAM2EN
184#else
185#define LL_AHB2_GRP1_PERIPH_AHBSRAM2 RCC_AHB2ENR_AHBSRAM2EN
186#define LL_AHB2_GRP1_PERIPH_D2SRAM2 LL_AHB2_GRP1_PERIPH_AHBSRAM2 /* for backward compatibility*/
187#endif /* RCC_AHB2ENR_D2SRAM2EN */
188#if defined(RCC_AHB2ENR_D2SRAM3EN)
189#define LL_AHB2_GRP1_PERIPH_D2SRAM3 RCC_AHB2ENR_D2SRAM3EN
190#endif /* RCC_AHB2ENR_D2SRAM3EN */
200#define LL_AHB4_GRP1_PERIPH_GPIOA RCC_AHB4ENR_GPIOAEN
201#define LL_AHB4_GRP1_PERIPH_GPIOB RCC_AHB4ENR_GPIOBEN
202#define LL_AHB4_GRP1_PERIPH_GPIOC RCC_AHB4ENR_GPIOCEN
203#define LL_AHB4_GRP1_PERIPH_GPIOD RCC_AHB4ENR_GPIODEN
204#define LL_AHB4_GRP1_PERIPH_GPIOE RCC_AHB4ENR_GPIOEEN
205#define LL_AHB4_GRP1_PERIPH_GPIOF RCC_AHB4ENR_GPIOFEN
206#define LL_AHB4_GRP1_PERIPH_GPIOG RCC_AHB4ENR_GPIOGEN
207#define LL_AHB4_GRP1_PERIPH_GPIOH RCC_AHB4ENR_GPIOHEN
208#if defined(GPIOI)
209#define LL_AHB4_GRP1_PERIPH_GPIOI RCC_AHB4ENR_GPIOIEN
210#endif /* GPIOI */
211#define LL_AHB4_GRP1_PERIPH_GPIOJ RCC_AHB4ENR_GPIOJEN
212#define LL_AHB4_GRP1_PERIPH_GPIOK RCC_AHB4ENR_GPIOKEN
213#if defined(RCC_AHB4ENR_CRCEN)
214#define LL_AHB4_GRP1_PERIPH_CRC RCC_AHB4ENR_CRCEN
215#endif /* RCC_AHB4ENR_CRCEN */
216#if defined(BDMA2)
217#define LL_AHB4_GRP1_PERIPH_BDMA2 RCC_AHB4ENR_BDMA2EN
218#define LL_AHB4_GRP1_PERIPH_BDMA LL_AHB4_GRP1_PERIPH_BDMA2 /* for backward compatibility*/
219#else
220#define LL_AHB4_GRP1_PERIPH_BDMA RCC_AHB4ENR_BDMAEN
221#endif /* BDMA2 */
222#if defined(ADC3)
223#define LL_AHB4_GRP1_PERIPH_ADC3 RCC_AHB4ENR_ADC3EN
224#endif /* ADC3 */
225#if defined(HSEM) && defined(RCC_AHB4ENR_HSEMEN)
226#define LL_AHB4_GRP1_PERIPH_HSEM RCC_AHB4ENR_HSEMEN
227#endif /* HSEM && RCC_AHB4ENR_HSEMEN*/
228#define LL_AHB4_GRP1_PERIPH_BKPRAM RCC_AHB4ENR_BKPRAMEN
229#if defined(RCC_AHB4LPENR_SRAM4LPEN)
230#define LL_AHB4_GRP1_PERIPH_SRAM4 RCC_AHB4LPENR_SRAM4LPEN
231#define LL_AHB4_GRP1_PERIPH_D3SRAM1 LL_AHB4_GRP1_PERIPH_SRAM4
232#else
233#define LL_AHB4_GRP1_PERIPH_SRDSRAM RCC_AHB4ENR_SRDSRAMEN
234#define LL_AHB4_GRP1_PERIPH_SRAM4 LL_AHB4_GRP1_PERIPH_SRDSRAM /* for backward compatibility*/
235#define LL_AHB4_GRP1_PERIPH_D3SRAM1 LL_AHB4_GRP1_PERIPH_SRDSRAM /* for backward compatibility*/
236#endif /* RCC_AHB4ENR_D3SRAM1EN */
246#if defined(LTDC)
247#define LL_APB3_GRP1_PERIPH_LTDC RCC_APB3ENR_LTDCEN
248#endif /* LTDC */
249#if defined(DSI)
250#define LL_APB3_GRP1_PERIPH_DSI RCC_APB3ENR_DSIEN
251#endif /* DSI */
252#define LL_APB3_GRP1_PERIPH_WWDG1 RCC_APB3ENR_WWDG1EN
253#if defined(RCC_APB3ENR_WWDGEN)
254#define LL_APB3_GRP1_PERIPH_WWDG LL_APB3_GRP1_PERIPH_WWDG1 /* for backward compatibility*/
255#endif /* RCC_APB3ENR_WWDGEN */
265#define LL_APB1_GRP1_PERIPH_TIM2 RCC_APB1LENR_TIM2EN
266#define LL_APB1_GRP1_PERIPH_TIM3 RCC_APB1LENR_TIM3EN
267#define LL_APB1_GRP1_PERIPH_TIM4 RCC_APB1LENR_TIM4EN
268#define LL_APB1_GRP1_PERIPH_TIM5 RCC_APB1LENR_TIM5EN
269#define LL_APB1_GRP1_PERIPH_TIM6 RCC_APB1LENR_TIM6EN
270#define LL_APB1_GRP1_PERIPH_TIM7 RCC_APB1LENR_TIM7EN
271#define LL_APB1_GRP1_PERIPH_TIM12 RCC_APB1LENR_TIM12EN
272#define LL_APB1_GRP1_PERIPH_TIM13 RCC_APB1LENR_TIM13EN
273#define LL_APB1_GRP1_PERIPH_TIM14 RCC_APB1LENR_TIM14EN
274#define LL_APB1_GRP1_PERIPH_LPTIM1 RCC_APB1LENR_LPTIM1EN
275#if defined(DUAL_CORE)
276#define LL_APB1_GRP1_PERIPH_WWDG2 RCC_APB1LENR_WWDG2EN
277#endif /*DUAL_CORE*/
278#define LL_APB1_GRP1_PERIPH_SPI2 RCC_APB1LENR_SPI2EN
279#define LL_APB1_GRP1_PERIPH_SPI3 RCC_APB1LENR_SPI3EN
280#define LL_APB1_GRP1_PERIPH_SPDIFRX RCC_APB1LENR_SPDIFRXEN
281#define LL_APB1_GRP1_PERIPH_USART2 RCC_APB1LENR_USART2EN
282#define LL_APB1_GRP1_PERIPH_USART3 RCC_APB1LENR_USART3EN
283#define LL_APB1_GRP1_PERIPH_UART4 RCC_APB1LENR_UART4EN
284#define LL_APB1_GRP1_PERIPH_UART5 RCC_APB1LENR_UART5EN
285#define LL_APB1_GRP1_PERIPH_I2C1 RCC_APB1LENR_I2C1EN
286#define LL_APB1_GRP1_PERIPH_I2C2 RCC_APB1LENR_I2C2EN
287#define LL_APB1_GRP1_PERIPH_I2C3 RCC_APB1LENR_I2C3EN
288#if defined(I2C5)
289#define LL_APB1_GRP1_PERIPH_I2C5 RCC_APB1LENR_I2C5EN
290#endif /* I2C5 */
291#if defined(RCC_APB1LENR_CECEN)
292#define LL_APB1_GRP1_PERIPH_CEC RCC_APB1LENR_CECEN
293#else
294#define LL_APB1_GRP1_PERIPH_HDMICEC RCC_APB1LENR_HDMICECEN
295#define LL_APB1_GRP1_PERIPH_CEC LL_APB1_GRP1_PERIPH_HDMICEC /* for backward compatibility*/
296#endif /* RCC_APB1LENR_CECEN */
297#define LL_APB1_GRP1_PERIPH_DAC12 RCC_APB1LENR_DAC12EN
298#define LL_APB1_GRP1_PERIPH_UART7 RCC_APB1LENR_UART7EN
299#define LL_APB1_GRP1_PERIPH_UART8 RCC_APB1LENR_UART8EN
309#define LL_APB1_GRP2_PERIPH_CRS RCC_APB1HENR_CRSEN
310#define LL_APB1_GRP2_PERIPH_SWPMI1 RCC_APB1HENR_SWPMIEN
311#define LL_APB1_GRP2_PERIPH_OPAMP RCC_APB1HENR_OPAMPEN
312#define LL_APB1_GRP2_PERIPH_MDIOS RCC_APB1HENR_MDIOSEN
313#define LL_APB1_GRP2_PERIPH_FDCAN RCC_APB1HENR_FDCANEN
314#if defined(TIM23)
315#define LL_APB1_GRP2_PERIPH_TIM23 RCC_APB1HENR_TIM23EN
316#endif /* TIM23 */
317#if defined(TIM24)
318#define LL_APB1_GRP2_PERIPH_TIM24 RCC_APB1HENR_TIM24EN
319#endif /* TIM24 */
329#define LL_APB2_GRP1_PERIPH_TIM1 RCC_APB2ENR_TIM1EN
330#define LL_APB2_GRP1_PERIPH_TIM8 RCC_APB2ENR_TIM8EN
331#define LL_APB2_GRP1_PERIPH_USART1 RCC_APB2ENR_USART1EN
332#define LL_APB2_GRP1_PERIPH_USART6 RCC_APB2ENR_USART6EN
333#if defined(UART9)
334#define LL_APB2_GRP1_PERIPH_UART9 RCC_APB2ENR_UART9EN
335#endif /* UART9 */
336#if defined(USART10)
337#define LL_APB2_GRP1_PERIPH_USART10 RCC_APB2ENR_USART10EN
338#endif /* USART10 */
339#define LL_APB2_GRP1_PERIPH_SPI1 RCC_APB2ENR_SPI1EN
340#define LL_APB2_GRP1_PERIPH_SPI4 RCC_APB2ENR_SPI4EN
341#define LL_APB2_GRP1_PERIPH_TIM15 RCC_APB2ENR_TIM15EN
342#define LL_APB2_GRP1_PERIPH_TIM16 RCC_APB2ENR_TIM16EN
343#define LL_APB2_GRP1_PERIPH_TIM17 RCC_APB2ENR_TIM17EN
344#define LL_APB2_GRP1_PERIPH_SPI5 RCC_APB2ENR_SPI5EN
345#define LL_APB2_GRP1_PERIPH_SAI1 RCC_APB2ENR_SAI1EN
346#if defined(SAI2)
347#define LL_APB2_GRP1_PERIPH_SAI2 RCC_APB2ENR_SAI2EN
348#endif /* SAI2 */
349#if defined(SAI3)
350#define LL_APB2_GRP1_PERIPH_SAI3 RCC_APB2ENR_SAI3EN
351#endif /* SAI3 */
352#define LL_APB2_GRP1_PERIPH_DFSDM1 RCC_APB2ENR_DFSDM1EN
353#if defined(HRTIM1)
354#define LL_APB2_GRP1_PERIPH_HRTIM RCC_APB2ENR_HRTIMEN
355#endif /* HRTIM1 */
365#define LL_APB4_GRP1_PERIPH_SYSCFG RCC_APB4ENR_SYSCFGEN
366#define LL_APB4_GRP1_PERIPH_LPUART1 RCC_APB4ENR_LPUART1EN
367#define LL_APB4_GRP1_PERIPH_SPI6 RCC_APB4ENR_SPI6EN
368#define LL_APB4_GRP1_PERIPH_I2C4 RCC_APB4ENR_I2C4EN
369#define LL_APB4_GRP1_PERIPH_LPTIM2 RCC_APB4ENR_LPTIM2EN
370#define LL_APB4_GRP1_PERIPH_LPTIM3 RCC_APB4ENR_LPTIM3EN
371#if defined(LPTIM4)
372#define LL_APB4_GRP1_PERIPH_LPTIM4 RCC_APB4ENR_LPTIM4EN
373#endif /* LPTIM4 */
374#if defined(LPTIM5)
375#define LL_APB4_GRP1_PERIPH_LPTIM5 RCC_APB4ENR_LPTIM5EN
376#endif /* LPTIM5 */
377#if defined(DAC2)
378#define LL_APB4_GRP1_PERIPH_DAC2 RCC_APB4ENR_DAC2EN
379#endif /* DAC2 */
380#define LL_APB4_GRP1_PERIPH_COMP12 RCC_APB4ENR_COMP12EN
381#define LL_APB4_GRP1_PERIPH_VREF RCC_APB4ENR_VREFEN
382#define LL_APB4_GRP1_PERIPH_RTCAPB RCC_APB4ENR_RTCAPBEN
383#if defined(SAI4)
384#define LL_APB4_GRP1_PERIPH_SAI4 RCC_APB4ENR_SAI4EN
385#endif /* SAI4 */
386#if defined(DTS)
387#define LL_APB4_GRP1_PERIPH_DTS RCC_APB4ENR_DTSEN
388#endif /*DTS*/
389#if defined(DFSDM2_BASE)
390#define LL_APB4_GRP1_PERIPH_DFSDM2 RCC_APB4ENR_DFSDM2EN
391#endif /* DFSDM2_BASE */
400#if defined(RCC_D3AMR_BDMAAMEN)
401#define LL_CLKAM_PERIPH_BDMA RCC_D3AMR_BDMAAMEN
402#else
403#define LL_CLKAM_PERIPH_BDMA2 RCC_SRDAMR_BDMA2AMEN
404#define LL_CLKAM_PERIPH_BDMA LL_CLKAM_PERIPH_BDMA2 /* for backward compatibility*/
405#endif /* RCC_D3AMR_BDMAAMEN */
406#if defined(RCC_SRDAMR_GPIOAMEN)
407#define LL_CLKAM_PERIPH_GPIO RCC_SRDAMR_GPIOAMEN
408#endif /* RCC_SRDAMR_GPIOAMEN */
409#if defined(RCC_D3AMR_LPUART1AMEN)
410#define LL_CLKAM_PERIPH_LPUART1 RCC_D3AMR_LPUART1AMEN
411#else
412#define LL_CLKAM_PERIPH_LPUART1 RCC_SRDAMR_LPUART1AMEN
413#endif /* RCC_D3AMR_LPUART1AMEN */
414#if defined(RCC_D3AMR_SPI6AMEN)
415#define LL_CLKAM_PERIPH_SPI6 RCC_D3AMR_SPI6AMEN
416#else
417#define LL_CLKAM_PERIPH_SPI6 RCC_SRDAMR_SPI6AMEN
418#endif /* RCC_D3AMR_SPI6AMEN */
419#if defined(RCC_D3AMR_I2C4AMEN)
420#define LL_CLKAM_PERIPH_I2C4 RCC_D3AMR_I2C4AMEN
421#else
422#define LL_CLKAM_PERIPH_I2C4 RCC_SRDAMR_I2C4AMEN
423#endif /* RCC_D3AMR_I2C4AMEN */
424#if defined(RCC_D3AMR_LPTIM2AMEN)
425#define LL_CLKAM_PERIPH_LPTIM2 RCC_D3AMR_LPTIM2AMEN
426#else
427#define LL_CLKAM_PERIPH_LPTIM2 RCC_SRDAMR_LPTIM2AMEN
428#endif /* RCC_D3AMR_LPTIM2AMEN */
429#if defined(RCC_D3AMR_LPTIM3AMEN)
430#define LL_CLKAM_PERIPH_LPTIM3 RCC_D3AMR_LPTIM3AMEN
431#else
432#define LL_CLKAM_PERIPH_LPTIM3 RCC_SRDAMR_LPTIM3AMEN
433#endif /* RCC_D3AMR_LPTIM3AMEN */
434#if defined(RCC_D3AMR_LPTIM4AMEN)
435#define LL_CLKAM_PERIPH_LPTIM4 RCC_D3AMR_LPTIM4AMEN
436#endif /* RCC_D3AMR_LPTIM4AMEN */
437#if defined(RCC_D3AMR_LPTIM5AMEN)
438#define LL_CLKAM_PERIPH_LPTIM5 RCC_D3AMR_LPTIM5AMEN
439#endif /* RCC_D3AMR_LPTIM5AMEN */
440#if defined(DAC2)
441#define LL_CLKAM_PERIPH_DAC2 RCC_SRDAMR_DAC2AMEN
442#endif /* DAC2 */
443#if defined(RCC_D3AMR_COMP12AMEN)
444#define LL_CLKAM_PERIPH_COMP12 RCC_D3AMR_COMP12AMEN
445#else
446#define LL_CLKAM_PERIPH_COMP12 RCC_SRDAMR_COMP12AMEN
447#endif /* RCC_D3AMR_COMP12AMEN */
448#if defined(RCC_D3AMR_VREFAMEN)
449#define LL_CLKAM_PERIPH_VREF RCC_D3AMR_VREFAMEN
450#else
451#define LL_CLKAM_PERIPH_VREF RCC_SRDAMR_VREFAMEN
452#endif /* RCC_D3AMR_VREFAMEN */
453#if defined(RCC_D3AMR_RTCAMEN)
454#define LL_CLKAM_PERIPH_RTC RCC_D3AMR_RTCAMEN
455#else
456#define LL_CLKAM_PERIPH_RTC RCC_SRDAMR_RTCAMEN
457#endif /* RCC_D3AMR_RTCAMEN */
458#if defined(RCC_D3AMR_CRCAMEN)
459#define LL_CLKAM_PERIPH_CRC RCC_D3AMR_CRCAMEN
460#endif /* RCC_D3AMR_CRCAMEN */
461#if defined(SAI4)
462#define LL_CLKAM_PERIPH_SAI4 RCC_D3AMR_SAI4AMEN
463#endif /* SAI4 */
464#if defined(ADC3)
465#define LL_CLKAM_PERIPH_ADC3 RCC_D3AMR_ADC3AMEN
466#endif /* ADC3 */
467#if defined(RCC_SRDAMR_DTSAMEN)
468#define LL_CLKAM_PERIPH_DTS RCC_SRDAMR_DTSAMEN
469#endif /* RCC_SRDAMR_DTSAMEN */
470#if defined(RCC_D3AMR_DTSAMEN)
471#define LL_CLKAM_PERIPH_DTS RCC_D3AMR_DTSAMEN
472#endif /* RCC_D3AMR_DTSAMEN */
473#if defined(DFSDM2_BASE)
474#define LL_CLKAM_PERIPH_DFSDM2 RCC_SRDAMR_DFSDM2AMEN
475#endif /* DFSDM2_BASE */
476#if defined(RCC_D3AMR_BKPRAMAMEN)
477#define LL_CLKAM_PERIPH_BKPRAM RCC_D3AMR_BKPRAMAMEN
478#else
479#define LL_CLKAM_PERIPH_BKPRAM RCC_SRDAMR_BKPRAMAMEN
480#endif /* RCC_D3AMR_BKPRAMAMEN */
481#if defined(RCC_D3AMR_SRAM4AMEN)
482#define LL_CLKAM_PERIPH_SRAM4 RCC_D3AMR_SRAM4AMEN
483#else
484#define LL_CLKAM_PERIPH_SRDSRAM RCC_SRDAMR_SRDSRAMAMEN
485#define LL_CLKAM_PERIPH_SRAM4 LL_CLKAM_PERIPH_SRDSRAM
486#endif /* RCC_D3AMR_SRAM4AMEN */
491#if defined(RCC_CKGAENR_AXICKG)
496#define LL_CKGA_PERIPH_AXI RCC_CKGAENR_AXICKG
497#define LL_CKGA_PERIPH_AHB RCC_CKGAENR_AHBCKG
498#define LL_CKGA_PERIPH_CPU RCC_CKGAENR_CPUCKG
499#define LL_CKGA_PERIPH_SDMMC RCC_CKGAENR_SDMMCCKG
500#define LL_CKGA_PERIPH_MDMA RCC_CKGAENR_MDMACKG
501#define LL_CKGA_PERIPH_DMA2D RCC_CKGAENR_DMA2DCKG
502#define LL_CKGA_PERIPH_LTDC RCC_CKGAENR_LTDCCKG
503#define LL_CKGA_PERIPH_GFXMMUM RCC_CKGAENR_GFXMMUMCKG
504#define LL_CKGA_PERIPH_AHB12 RCC_CKGAENR_AHB12CKG
505#define LL_CKGA_PERIPH_AHB34 RCC_CKGAENR_AHB34CKG
506#define LL_CKGA_PERIPH_FLIFT RCC_CKGAENR_FLIFTCKG
507#define LL_CKGA_PERIPH_OCTOSPI2 RCC_CKGAENR_OCTOSPI2CKG
508#define LL_CKGA_PERIPH_FMC RCC_CKGAENR_FMCCKG
509#define LL_CKGA_PERIPH_OCTOSPI1 RCC_CKGAENR_OCTOSPI1CKG
510#define LL_CKGA_PERIPH_AXIRAM1 RCC_CKGAENR_AXIRAM1CKG
511#define LL_CKGA_PERIPH_AXIRAM2 RCC_CKGAENR_AXIRAM2CKG
512#define LL_CKGA_PERIPH_AXIRAM3 RCC_CKGAENR_AXIRAM3CKG
513#define LL_CKGA_PERIPH_GFXMMUS RCC_CKGAENR_GFXMMUSCKG
514#define LL_CKGA_PERIPH_ECCRAM RCC_CKGAENR_ECCRAMCKG
515#define LL_CKGA_PERIPH_EXTI RCC_CKGAENR_EXTICKG
516#define LL_CKGA_PERIPH_JTAG RCC_CKGAENR_JTAGCKG
520#endif /* RCC_CKGAENR_AXICKG */
521
526/* Exported macro ------------------------------------------------------------*/
527
528/* Exported functions --------------------------------------------------------*/
529
581__STATIC_INLINE void LL_AHB3_GRP1_EnableClock(uint32_t Periphs)
582{
583 __IO uint32_t tmpreg;
584 SET_BIT(RCC->AHB3ENR, Periphs);
585 /* Delay after an RCC peripheral clock enabling */
586 tmpreg = READ_BIT(RCC->AHB3ENR, Periphs);
587 (void)tmpreg;
588}
589
631__STATIC_INLINE uint32_t LL_AHB3_GRP1_IsEnabledClock(uint32_t Periphs)
632{
633 return ((READ_BIT(RCC->AHB3ENR, Periphs) == Periphs) ? 1U : 0U);
634}
635
677__STATIC_INLINE void LL_AHB3_GRP1_DisableClock(uint32_t Periphs)
678{
679 CLEAR_BIT(RCC->AHB3ENR, Periphs);
680}
681
713__STATIC_INLINE void LL_AHB3_GRP1_ForceReset(uint32_t Periphs)
714{
715 SET_BIT(RCC->AHB3RSTR, Periphs);
716}
717
749__STATIC_INLINE void LL_AHB3_GRP1_ReleaseReset(uint32_t Periphs)
750{
751 CLEAR_BIT(RCC->AHB3RSTR, Periphs);
752}
753
794__STATIC_INLINE void LL_AHB3_GRP1_EnableClockSleep(uint32_t Periphs)
795{
796 __IO uint32_t tmpreg;
797 SET_BIT(RCC->AHB3LPENR, Periphs);
798 /* Delay after an RCC peripheral clock enabling */
799 tmpreg = READ_BIT(RCC->AHB3LPENR, Periphs);
800 (void)tmpreg;
801}
802
843__STATIC_INLINE void LL_AHB3_GRP1_DisableClockSleep(uint32_t Periphs)
844{
845 CLEAR_BIT(RCC->AHB3LPENR, Periphs);
846}
847
888__STATIC_INLINE void LL_AHB1_GRP1_EnableClock(uint32_t Periphs)
889{
890 __IO uint32_t tmpreg;
891 SET_BIT(RCC->AHB1ENR, Periphs);
892 /* Delay after an RCC peripheral clock enabling */
893 tmpreg = READ_BIT(RCC->AHB1ENR, Periphs);
894 (void)tmpreg;
895}
896
928__STATIC_INLINE uint32_t LL_AHB1_GRP1_IsEnabledClock(uint32_t Periphs)
929{
930 return ((READ_BIT(RCC->AHB1ENR, Periphs) == Periphs) ? 1U : 0U);
931}
932
964__STATIC_INLINE void LL_AHB1_GRP1_DisableClock(uint32_t Periphs)
965{
966 CLEAR_BIT(RCC->AHB1ENR, Periphs);
967}
968
992__STATIC_INLINE void LL_AHB1_GRP1_ForceReset(uint32_t Periphs)
993{
994 SET_BIT(RCC->AHB1RSTR, Periphs);
995}
996
1020__STATIC_INLINE void LL_AHB1_GRP1_ReleaseReset(uint32_t Periphs)
1021{
1022 CLEAR_BIT(RCC->AHB1RSTR, Periphs);
1023}
1024
1056__STATIC_INLINE void LL_AHB1_GRP1_EnableClockSleep(uint32_t Periphs)
1057{
1058 __IO uint32_t tmpreg;
1059 SET_BIT(RCC->AHB1LPENR, Periphs);
1060 /* Delay after an RCC peripheral clock enabling */
1061 tmpreg = READ_BIT(RCC->AHB1LPENR, Periphs);
1062 (void)tmpreg;
1063}
1064
1096__STATIC_INLINE void LL_AHB1_GRP1_DisableClockSleep(uint32_t Periphs)
1097{
1098 CLEAR_BIT(RCC->AHB1LPENR, Periphs);
1099}
1100
1141__STATIC_INLINE void LL_AHB2_GRP1_EnableClock(uint32_t Periphs)
1142{
1143 __IO uint32_t tmpreg;
1144 SET_BIT(RCC->AHB2ENR, Periphs);
1145 /* Delay after an RCC peripheral clock enabling */
1146 tmpreg = READ_BIT(RCC->AHB2ENR, Periphs);
1147 (void)tmpreg;
1148}
1149
1181__STATIC_INLINE uint32_t LL_AHB2_GRP1_IsEnabledClock(uint32_t Periphs)
1182{
1183 return ((READ_BIT(RCC->AHB2ENR, Periphs) == Periphs) ? 1U : 0U);
1184}
1185
1217__STATIC_INLINE void LL_AHB2_GRP1_DisableClock(uint32_t Periphs)
1218{
1219 CLEAR_BIT(RCC->AHB2ENR, Periphs);
1220}
1221
1247__STATIC_INLINE void LL_AHB2_GRP1_ForceReset(uint32_t Periphs)
1248{
1249 SET_BIT(RCC->AHB2RSTR, Periphs);
1250}
1251
1277__STATIC_INLINE void LL_AHB2_GRP1_ReleaseReset(uint32_t Periphs)
1278{
1279 CLEAR_BIT(RCC->AHB2RSTR, Periphs);
1280}
1281
1311__STATIC_INLINE void LL_AHB2_GRP1_EnableClockSleep(uint32_t Periphs)
1312{
1313 __IO uint32_t tmpreg;
1314 SET_BIT(RCC->AHB2LPENR, Periphs);
1315 /* Delay after an RCC peripheral clock enabling */
1316 tmpreg = READ_BIT(RCC->AHB2LPENR, Periphs);
1317 (void)tmpreg;
1318}
1319
1347__STATIC_INLINE void LL_AHB2_GRP1_DisableClockSleep(uint32_t Periphs)
1348{
1349 CLEAR_BIT(RCC->AHB2LPENR, Periphs);
1350}
1351
1402__STATIC_INLINE void LL_AHB4_GRP1_EnableClock(uint32_t Periphs)
1403{
1404 __IO uint32_t tmpreg;
1405 SET_BIT(RCC->AHB4ENR, Periphs);
1406 /* Delay after an RCC peripheral clock enabling */
1407 tmpreg = READ_BIT(RCC->AHB4ENR, Periphs);
1408 (void)tmpreg;
1409}
1410
1452__STATIC_INLINE uint32_t LL_AHB4_GRP1_IsEnabledClock(uint32_t Periphs)
1453{
1454 return ((READ_BIT(RCC->AHB4ENR, Periphs) == Periphs) ? 1U : 0U);
1455}
1456
1498__STATIC_INLINE void LL_AHB4_GRP1_DisableClock(uint32_t Periphs)
1499{
1500 CLEAR_BIT(RCC->AHB4ENR, Periphs);
1501}
1502
1540__STATIC_INLINE void LL_AHB4_GRP1_ForceReset(uint32_t Periphs)
1541{
1542 SET_BIT(RCC->AHB4RSTR, Periphs);
1543}
1544
1582__STATIC_INLINE void LL_AHB4_GRP1_ReleaseReset(uint32_t Periphs)
1583{
1584 CLEAR_BIT(RCC->AHB4RSTR, Periphs);
1585}
1586
1624__STATIC_INLINE void LL_AHB4_GRP1_EnableClockSleep(uint32_t Periphs)
1625{
1626 __IO uint32_t tmpreg;
1627 SET_BIT(RCC->AHB4LPENR, Periphs);
1628 /* Delay after an RCC peripheral clock enabling */
1629 tmpreg = READ_BIT(RCC->AHB4LPENR, Periphs);
1630 (void)tmpreg;
1631}
1632
1670__STATIC_INLINE void LL_AHB4_GRP1_DisableClockSleep(uint32_t Periphs)
1671{
1672 CLEAR_BIT(RCC->AHB4LPENR, Periphs);
1673}
1674
1697__STATIC_INLINE void LL_APB3_GRP1_EnableClock(uint32_t Periphs)
1698{
1699 __IO uint32_t tmpreg;
1700 SET_BIT(RCC->APB3ENR, Periphs);
1701 /* Delay after an RCC peripheral clock enabling */
1702 tmpreg = READ_BIT(RCC->APB3ENR, Periphs);
1703 (void)tmpreg;
1704}
1705
1719__STATIC_INLINE uint32_t LL_APB3_GRP1_IsEnabledClock(uint32_t Periphs)
1720{
1721 return ((READ_BIT(RCC->APB3ENR, Periphs) == Periphs) ? 1U : 0U);
1722}
1723
1737__STATIC_INLINE void LL_APB3_GRP1_DisableClock(uint32_t Periphs)
1738{
1739 CLEAR_BIT(RCC->APB3ENR, Periphs);
1740}
1741
1753__STATIC_INLINE void LL_APB3_GRP1_ForceReset(uint32_t Periphs)
1754{
1755 SET_BIT(RCC->APB3RSTR, Periphs);
1756}
1757
1769__STATIC_INLINE void LL_APB3_GRP1_ReleaseReset(uint32_t Periphs)
1770{
1771 CLEAR_BIT(RCC->APB3RSTR, Periphs);
1772}
1773
1787__STATIC_INLINE void LL_APB3_GRP1_EnableClockSleep(uint32_t Periphs)
1788{
1789 __IO uint32_t tmpreg;
1790 SET_BIT(RCC->APB3LPENR, Periphs);
1791 /* Delay after an RCC peripheral clock enabling */
1792 tmpreg = READ_BIT(RCC->APB3LPENR, Periphs);
1793 (void)tmpreg;
1794}
1795
1809__STATIC_INLINE void LL_APB3_GRP1_DisableClockSleep(uint32_t Periphs)
1810{
1811 CLEAR_BIT(RCC->APB3LPENR, Periphs);
1812}
1813
1882__STATIC_INLINE void LL_APB1_GRP1_EnableClock(uint32_t Periphs)
1883{
1884 __IO uint32_t tmpreg;
1885 SET_BIT(RCC->APB1LENR, Periphs);
1886 /* Delay after an RCC peripheral clock enabling */
1887 tmpreg = READ_BIT(RCC->APB1LENR, Periphs);
1888 (void)tmpreg;
1889}
1890
1950__STATIC_INLINE uint32_t LL_APB1_GRP1_IsEnabledClock(uint32_t Periphs)
1951{
1952 return ((READ_BIT(RCC->APB1LENR, Periphs) == Periphs) ? 1U : 0U);
1953}
1954
2014__STATIC_INLINE void LL_APB1_GRP1_DisableClock(uint32_t Periphs)
2015{
2016 CLEAR_BIT(RCC->APB1LENR, Periphs);
2017}
2018
2076__STATIC_INLINE void LL_APB1_GRP1_ForceReset(uint32_t Periphs)
2077{
2078 SET_BIT(RCC->APB1LRSTR, Periphs);
2079}
2080
2138__STATIC_INLINE void LL_APB1_GRP1_ReleaseReset(uint32_t Periphs)
2139{
2140 CLEAR_BIT(RCC->APB1LRSTR, Periphs);
2141}
2142
2202__STATIC_INLINE void LL_APB1_GRP1_EnableClockSleep(uint32_t Periphs)
2203{
2204 __IO uint32_t tmpreg;
2205 SET_BIT(RCC->APB1LLPENR, Periphs);
2206 /* Delay after an RCC peripheral clock enabling */
2207 tmpreg = READ_BIT(RCC->APB1LLPENR, Periphs);
2208 (void)tmpreg;
2209}
2210
2270__STATIC_INLINE void LL_APB1_GRP1_DisableClockSleep(uint32_t Periphs)
2271{
2272 CLEAR_BIT(RCC->APB1LLPENR, Periphs);
2273}
2274
2294__STATIC_INLINE void LL_APB1_GRP2_EnableClock(uint32_t Periphs)
2295{
2296 __IO uint32_t tmpreg;
2297 SET_BIT(RCC->APB1HENR, Periphs);
2298 /* Delay after an RCC peripheral clock enabling */
2299 tmpreg = READ_BIT(RCC->APB1HENR, Periphs);
2300 (void)tmpreg;
2301}
2302
2322__STATIC_INLINE uint32_t LL_APB1_GRP2_IsEnabledClock(uint32_t Periphs)
2323{
2324 return ((READ_BIT(RCC->APB1HENR, Periphs) == Periphs) ? 1U : 0U);
2325}
2326
2346__STATIC_INLINE void LL_APB1_GRP2_DisableClock(uint32_t Periphs)
2347{
2348 CLEAR_BIT(RCC->APB1HENR, Periphs);
2349}
2350
2370__STATIC_INLINE void LL_APB1_GRP2_ForceReset(uint32_t Periphs)
2371{
2372 SET_BIT(RCC->APB1HRSTR, Periphs);
2373}
2374
2394__STATIC_INLINE void LL_APB1_GRP2_ReleaseReset(uint32_t Periphs)
2395{
2396 CLEAR_BIT(RCC->APB1HRSTR, Periphs);
2397}
2398
2418__STATIC_INLINE void LL_APB1_GRP2_EnableClockSleep(uint32_t Periphs)
2419{
2420 __IO uint32_t tmpreg;
2421 SET_BIT(RCC->APB1HLPENR, Periphs);
2422 /* Delay after an RCC peripheral clock enabling */
2423 tmpreg = READ_BIT(RCC->APB1HLPENR, Periphs);
2424 (void)tmpreg;
2425}
2426
2446__STATIC_INLINE void LL_APB1_GRP2_DisableClockSleep(uint32_t Periphs)
2447{
2448 CLEAR_BIT(RCC->APB1HLPENR, Periphs);
2449}
2450
2501__STATIC_INLINE void LL_APB2_GRP1_EnableClock(uint32_t Periphs)
2502{
2503 __IO uint32_t tmpreg;
2504 SET_BIT(RCC->APB2ENR, Periphs);
2505 /* Delay after an RCC peripheral clock enabling */
2506 tmpreg = READ_BIT(RCC->APB2ENR, Periphs);
2507 (void)tmpreg;
2508}
2509
2551__STATIC_INLINE uint32_t LL_APB2_GRP1_IsEnabledClock(uint32_t Periphs)
2552{
2553 return ((READ_BIT(RCC->APB2ENR, Periphs) == Periphs) ? 1U : 0U);
2554}
2555
2597__STATIC_INLINE void LL_APB2_GRP1_DisableClock(uint32_t Periphs)
2598{
2599 CLEAR_BIT(RCC->APB2ENR, Periphs);
2600}
2601
2643__STATIC_INLINE void LL_APB2_GRP1_ForceReset(uint32_t Periphs)
2644{
2645 SET_BIT(RCC->APB2RSTR, Periphs);
2646}
2647
2689__STATIC_INLINE void LL_APB2_GRP1_ReleaseReset(uint32_t Periphs)
2690{
2691 CLEAR_BIT(RCC->APB2RSTR, Periphs);
2692}
2693
2735__STATIC_INLINE void LL_APB2_GRP1_EnableClockSleep(uint32_t Periphs)
2736{
2737 __IO uint32_t tmpreg;
2738 SET_BIT(RCC->APB2LPENR, Periphs);
2739 /* Delay after an RCC peripheral clock enabling */
2740 tmpreg = READ_BIT(RCC->APB2LPENR, Periphs);
2741 (void)tmpreg;
2742}
2743
2785__STATIC_INLINE void LL_APB2_GRP1_DisableClockSleep(uint32_t Periphs)
2786{
2787 CLEAR_BIT(RCC->APB2LPENR, Periphs);
2788}
2789
2836__STATIC_INLINE void LL_APB4_GRP1_EnableClock(uint32_t Periphs)
2837{
2838 __IO uint32_t tmpreg;
2839 SET_BIT(RCC->APB4ENR, Periphs);
2840 /* Delay after an RCC peripheral clock enabling */
2841 tmpreg = READ_BIT(RCC->APB4ENR, Periphs);
2842 (void)tmpreg;
2843}
2844
2882__STATIC_INLINE uint32_t LL_APB4_GRP1_IsEnabledClock(uint32_t Periphs)
2883{
2884 return ((READ_BIT(RCC->APB4ENR, Periphs) == Periphs) ? 1U : 0U);
2885}
2886
2924__STATIC_INLINE void LL_APB4_GRP1_DisableClock(uint32_t Periphs)
2925{
2926 CLEAR_BIT(RCC->APB4ENR, Periphs);
2927}
2928
2964__STATIC_INLINE void LL_APB4_GRP1_ForceReset(uint32_t Periphs)
2965{
2966 SET_BIT(RCC->APB4RSTR, Periphs);
2967}
2968
3004__STATIC_INLINE void LL_APB4_GRP1_ReleaseReset(uint32_t Periphs)
3005{
3006 CLEAR_BIT(RCC->APB4RSTR, Periphs);
3007}
3008
3046__STATIC_INLINE void LL_APB4_GRP1_EnableClockSleep(uint32_t Periphs)
3047{
3048 __IO uint32_t tmpreg;
3049 SET_BIT(RCC->APB4LPENR, Periphs);
3050 /* Delay after an RCC peripheral clock enabling */
3051 tmpreg = READ_BIT(RCC->APB4LPENR, Periphs);
3052 (void)tmpreg;
3053}
3054
3092__STATIC_INLINE void LL_APB4_GRP1_DisableClockSleep(uint32_t Periphs)
3093{
3094 CLEAR_BIT(RCC->APB4LPENR, Periphs);
3095}
3096
3152__STATIC_INLINE void LL_CLKAM_Enable(uint32_t Periphs)
3153{
3154 __IO uint32_t tmpreg;
3155
3156#if defined(RCC_D3AMR_BDMAAMEN)
3157 SET_BIT(RCC->D3AMR, Periphs);
3158 /* Delay after an RCC peripheral clock enabling */
3159 tmpreg = READ_BIT(RCC->D3AMR, Periphs);
3160#else
3161 SET_BIT(RCC->SRDAMR, Periphs);
3162 /* Delay after an RCC peripheral clock enabling */
3163 tmpreg = READ_BIT(RCC->SRDAMR, Periphs);
3164#endif /* RCC_D3AMR_BDMAAMEN */
3165 (void)tmpreg;
3166}
3167
3214__STATIC_INLINE void LL_CLKAM_Disable(uint32_t Periphs)
3215{
3216#if defined(RCC_D3AMR_BDMAAMEN)
3217 CLEAR_BIT(RCC->D3AMR, Periphs);
3218#else
3219 CLEAR_BIT(RCC->SRDAMR, Periphs);
3220#endif /* RCC_D3AMR_BDMAAMEN */
3221}
3222
3232#if defined(RCC_CKGAENR_AXICKG)
3233
3234
3282__STATIC_INLINE void LL_CKGA_Enable(uint32_t Periphs)
3283{
3284 __IO uint32_t tmpreg;
3285 SET_BIT(RCC->CKGAENR, Periphs);
3286 /* Delay after an RCC peripheral clock enabling */
3287 tmpreg = READ_BIT(RCC->CKGAENR, Periphs);
3288 (void)tmpreg;
3289}
3290
3291#endif /* RCC_CKGAENR_AXICKG */
3292
3293#if defined(RCC_CKGAENR_AXICKG)
3294
3342__STATIC_INLINE void LL_CKGA_Disable(uint32_t Periphs)
3343{
3344 CLEAR_BIT(RCC->CKGAENR, Periphs);
3345}
3346
3347#endif /* RCC_CKGAENR_AXICKG */
3348
3353#if defined(DUAL_CORE)
3389__STATIC_INLINE void LL_C1_AHB3_GRP1_EnableClock(uint32_t Periphs)
3390{
3391 __IO uint32_t tmpreg;
3392 SET_BIT(RCC_C1->AHB3ENR, Periphs);
3393 /* Delay after an RCC peripheral clock enabling */
3394 tmpreg = READ_BIT(RCC_C1->AHB3ENR, Periphs);
3395 (void)tmpreg;
3396}
3397
3429__STATIC_INLINE uint32_t LL_C1_AHB3_GRP1_IsEnabledClock(uint32_t Periphs)
3430{
3431 return ((READ_BIT(RCC_C1->AHB3ENR, Periphs) == Periphs) ? 1U : 0U);
3432}
3433
3465__STATIC_INLINE void LL_C1_AHB3_GRP1_DisableClock(uint32_t Periphs)
3466{
3467 CLEAR_BIT(RCC_C1->AHB3ENR, Periphs);
3468}
3469
3510__STATIC_INLINE void LL_C1_AHB3_GRP1_EnableClockSleep(uint32_t Periphs)
3511{
3512 __IO uint32_t tmpreg;
3513 SET_BIT(RCC_C1->AHB3LPENR, Periphs);
3514 /* Delay after an RCC peripheral clock enabling */
3515 tmpreg = READ_BIT(RCC_C1->AHB3LPENR, Periphs);
3516 (void)tmpreg;
3517}
3518
3559__STATIC_INLINE void LL_C1_AHB3_GRP1_DisableClockSleep(uint32_t Periphs)
3560{
3561 CLEAR_BIT(RCC_C1->AHB3LPENR, Periphs);
3562}
3563
3603__STATIC_INLINE void LL_C1_AHB1_GRP1_EnableClock(uint32_t Periphs)
3604{
3605 __IO uint32_t tmpreg;
3606 SET_BIT(RCC_C1->AHB1ENR, Periphs);
3607 /* Delay after an RCC peripheral clock enabling */
3608 tmpreg = READ_BIT(RCC_C1->AHB1ENR, Periphs);
3609 (void)tmpreg;
3610}
3611
3643__STATIC_INLINE uint32_t LL_C1_AHB1_GRP1_IsEnabledClock(uint32_t Periphs)
3644{
3645 return ((READ_BIT(RCC_C1->AHB1ENR, Periphs) == Periphs) ? 1U : 0U);
3646}
3647
3679__STATIC_INLINE void LL_C1_AHB1_GRP1_DisableClock(uint32_t Periphs)
3680{
3681 CLEAR_BIT(RCC_C1->AHB1ENR, Periphs);
3682}
3683
3715__STATIC_INLINE void LL_C1_AHB1_GRP1_EnableClockSleep(uint32_t Periphs)
3716{
3717 __IO uint32_t tmpreg;
3718 SET_BIT(RCC_C1->AHB1LPENR, Periphs);
3719 /* Delay after an RCC peripheral clock enabling */
3720 tmpreg = READ_BIT(RCC_C1->AHB1LPENR, Periphs);
3721 (void)tmpreg;
3722}
3723
3755__STATIC_INLINE void LL_C1_AHB1_GRP1_DisableClockSleep(uint32_t Periphs)
3756{
3757 CLEAR_BIT(RCC_C1->AHB1LPENR, Periphs);
3758}
3759
3795__STATIC_INLINE void LL_C1_AHB2_GRP1_EnableClock(uint32_t Periphs)
3796{
3797 __IO uint32_t tmpreg;
3798 SET_BIT(RCC_C1->AHB2ENR, Periphs);
3799 /* Delay after an RCC peripheral clock enabling */
3800 tmpreg = READ_BIT(RCC_C1->AHB2ENR, Periphs);
3801 (void)tmpreg;
3802}
3803
3831__STATIC_INLINE uint32_t LL_C1_AHB2_GRP1_IsEnabledClock(uint32_t Periphs)
3832{
3833 return ((READ_BIT(RCC_C1->AHB2ENR, Periphs) == Periphs) ? 1U : 0U);
3834}
3835
3863__STATIC_INLINE void LL_C1_AHB2_GRP1_DisableClock(uint32_t Periphs)
3864{
3865 CLEAR_BIT(RCC_C1->AHB2ENR, Periphs);
3866}
3867
3893__STATIC_INLINE void LL_C1_AHB2_GRP1_EnableClockSleep(uint32_t Periphs)
3894{
3895 __IO uint32_t tmpreg;
3896 SET_BIT(RCC_C1->AHB2LPENR, Periphs);
3897 /* Delay after an RCC peripheral clock enabling */
3898 tmpreg = READ_BIT(RCC_C1->AHB2LPENR, Periphs);
3899 (void)tmpreg;
3900}
3901
3927__STATIC_INLINE void LL_C1_AHB2_GRP1_DisableClockSleep(uint32_t Periphs)
3928{
3929 CLEAR_BIT(RCC_C1->AHB2LPENR, Periphs);
3930}
3931
3981__STATIC_INLINE void LL_C1_AHB4_GRP1_EnableClock(uint32_t Periphs)
3982{
3983 __IO uint32_t tmpreg;
3984 SET_BIT(RCC_C1->AHB4ENR, Periphs);
3985 /* Delay after an RCC peripheral clock enabling */
3986 tmpreg = READ_BIT(RCC_C1->AHB4ENR, Periphs);
3987 (void)tmpreg;
3988}
3989
4031__STATIC_INLINE uint32_t LL_C1_AHB4_GRP1_IsEnabledClock(uint32_t Periphs)
4032{
4033 return ((READ_BIT(RCC_C1->AHB4ENR, Periphs) == Periphs) ? 1U : 0U);
4034}
4035
4077__STATIC_INLINE void LL_C1_AHB4_GRP1_DisableClock(uint32_t Periphs)
4078{
4079 CLEAR_BIT(RCC_C1->AHB4ENR, Periphs);
4080}
4081
4119__STATIC_INLINE void LL_C1_AHB4_GRP1_EnableClockSleep(uint32_t Periphs)
4120{
4121 __IO uint32_t tmpreg;
4122 SET_BIT(RCC_C1->AHB4LPENR, Periphs);
4123 /* Delay after an RCC peripheral clock enabling */
4124 tmpreg = READ_BIT(RCC_C1->AHB4LPENR, Periphs);
4125 (void)tmpreg;
4126}
4127
4165__STATIC_INLINE void LL_C1_AHB4_GRP1_DisableClockSleep(uint32_t Periphs)
4166{
4167 CLEAR_BIT(RCC_C1->AHB4LPENR, Periphs);
4168}
4169
4191__STATIC_INLINE void LL_C1_APB3_GRP1_EnableClock(uint32_t Periphs)
4192{
4193 __IO uint32_t tmpreg;
4194 SET_BIT(RCC_C1->APB3ENR, Periphs);
4195 /* Delay after an RCC peripheral clock enabling */
4196 tmpreg = READ_BIT(RCC_C1->APB3ENR, Periphs);
4197 (void)tmpreg;
4198}
4199
4213__STATIC_INLINE uint32_t LL_C1_APB3_GRP1_IsEnabledClock(uint32_t Periphs)
4214{
4215 return ((READ_BIT(RCC_C1->APB3ENR, Periphs) == Periphs) ? 1U : 0U);
4216}
4217
4232__STATIC_INLINE void LL_C1_APB3_GRP1_DisableClock(uint32_t Periphs)
4233{
4234 CLEAR_BIT(RCC_C1->APB3ENR, Periphs);
4235}
4236
4250__STATIC_INLINE void LL_C1_APB3_GRP1_EnableClockSleep(uint32_t Periphs)
4251{
4252 __IO uint32_t tmpreg;
4253 SET_BIT(RCC_C1->APB3LPENR, Periphs);
4254 /* Delay after an RCC peripheral clock enabling */
4255 tmpreg = READ_BIT(RCC_C1->APB3LPENR, Periphs);
4256 (void)tmpreg;
4257}
4258
4272__STATIC_INLINE void LL_C1_APB3_GRP1_DisableClockSleep(uint32_t Periphs)
4273{
4274 CLEAR_BIT(RCC_C1->APB3LPENR, Periphs);
4275}
4276
4342__STATIC_INLINE void LL_C1_APB1_GRP1_EnableClock(uint32_t Periphs)
4343{
4344 __IO uint32_t tmpreg;
4345 SET_BIT(RCC_C1->APB1LENR, Periphs);
4346 /* Delay after an RCC peripheral clock enabling */
4347 tmpreg = READ_BIT(RCC_C1->APB1LENR, Periphs);
4348 (void)tmpreg;
4349}
4350
4408__STATIC_INLINE uint32_t LL_C1_APB1_GRP1_IsEnabledClock(uint32_t Periphs)
4409{
4410 return ((READ_BIT(RCC_C1->APB1LENR, Periphs) == Periphs) ? 1U : 0U);
4411}
4412
4470__STATIC_INLINE void LL_C1_APB1_GRP1_DisableClock(uint32_t Periphs)
4471{
4472 CLEAR_BIT(RCC_C1->APB1LENR, Periphs);
4473}
4474
4532__STATIC_INLINE void LL_C1_APB1_GRP1_EnableClockSleep(uint32_t Periphs)
4533{
4534 __IO uint32_t tmpreg;
4535 SET_BIT(RCC_C1->APB1LLPENR, Periphs);
4536 /* Delay after an RCC peripheral clock enabling */
4537 tmpreg = READ_BIT(RCC_C1->APB1LLPENR, Periphs);
4538 (void)tmpreg;
4539}
4540
4598__STATIC_INLINE void LL_C1_APB1_GRP1_DisableClockSleep(uint32_t Periphs)
4599{
4600 CLEAR_BIT(RCC_C1->APB1LLPENR, Periphs);
4601}
4602
4622__STATIC_INLINE void LL_C1_APB1_GRP2_EnableClock(uint32_t Periphs)
4623{
4624 __IO uint32_t tmpreg;
4625 SET_BIT(RCC_C1->APB1HENR, Periphs);
4626 /* Delay after an RCC peripheral clock enabling */
4627 tmpreg = READ_BIT(RCC_C1->APB1HENR, Periphs);
4628 (void)tmpreg;
4629}
4630
4650__STATIC_INLINE uint32_t LL_C1_APB1_GRP2_IsEnabledClock(uint32_t Periphs)
4651{
4652 return ((READ_BIT(RCC_C1->APB1HENR, Periphs) == Periphs) ? 1U : 0U);
4653}
4654
4674__STATIC_INLINE void LL_C1_APB1_GRP2_DisableClock(uint32_t Periphs)
4675{
4676 CLEAR_BIT(RCC_C1->APB1HENR, Periphs);
4677}
4678
4698__STATIC_INLINE void LL_C1_APB1_GRP2_EnableClockSleep(uint32_t Periphs)
4699{
4700 __IO uint32_t tmpreg;
4701 SET_BIT(RCC_C1->APB1HLPENR, Periphs);
4702 /* Delay after an RCC peripheral clock enabling */
4703 tmpreg = READ_BIT(RCC_C1->APB1HLPENR, Periphs);
4704 (void)tmpreg;
4705}
4706
4726__STATIC_INLINE void LL_C1_APB1_GRP2_DisableClockSleep(uint32_t Periphs)
4727{
4728 CLEAR_BIT(RCC_C1->APB1HLPENR, Periphs);
4729}
4730
4780__STATIC_INLINE void LL_C1_APB2_GRP1_EnableClock(uint32_t Periphs)
4781{
4782 __IO uint32_t tmpreg;
4783 SET_BIT(RCC_C1->APB2ENR, Periphs);
4784 /* Delay after an RCC peripheral clock enabling */
4785 tmpreg = READ_BIT(RCC_C1->APB2ENR, Periphs);
4786 (void)tmpreg;
4787}
4788
4830__STATIC_INLINE uint32_t LL_C1_APB2_GRP1_IsEnabledClock(uint32_t Periphs)
4831{
4832 return ((READ_BIT(RCC_C1->APB2ENR, Periphs) == Periphs) ? 1U : 0U);
4833}
4834
4876__STATIC_INLINE void LL_C1_APB2_GRP1_DisableClock(uint32_t Periphs)
4877{
4878 CLEAR_BIT(RCC_C1->APB2ENR, Periphs);
4879}
4880
4922__STATIC_INLINE void LL_C1_APB2_GRP1_EnableClockSleep(uint32_t Periphs)
4923{
4924 __IO uint32_t tmpreg;
4925 SET_BIT(RCC_C1->APB2LPENR, Periphs);
4926 /* Delay after an RCC peripheral clock enabling */
4927 tmpreg = READ_BIT(RCC_C1->APB2LPENR, Periphs);
4928 (void)tmpreg;
4929}
4930
4972__STATIC_INLINE void LL_C1_APB2_GRP1_DisableClockSleep(uint32_t Periphs)
4973{
4974 CLEAR_BIT(RCC_C1->APB2LPENR, Periphs);
4975}
4976
5021__STATIC_INLINE void LL_C1_APB4_GRP1_EnableClock(uint32_t Periphs)
5022{
5023 __IO uint32_t tmpreg;
5024 SET_BIT(RCC_C1->APB4ENR, Periphs);
5025 /* Delay after an RCC peripheral clock enabling */
5026 tmpreg = READ_BIT(RCC_C1->APB4ENR, Periphs);
5027 (void)tmpreg;
5028}
5029
5064__STATIC_INLINE uint32_t LL_C1_APB4_GRP1_IsEnabledClock(uint32_t Periphs)
5065{
5066 return ((READ_BIT(RCC_C1->APB4ENR, Periphs) == Periphs) ? 1U : 0U);
5067}
5068
5104__STATIC_INLINE void LL_C1_APB4_GRP1_DisableClock(uint32_t Periphs)
5105{
5106 CLEAR_BIT(RCC_C1->APB4ENR, Periphs);
5107}
5108
5144__STATIC_INLINE void LL_C1_APB4_GRP1_EnableClockSleep(uint32_t Periphs)
5145{
5146 __IO uint32_t tmpreg;
5147 SET_BIT(RCC_C1->APB4LPENR, Periphs);
5148 /* Delay after an RCC peripheral clock enabling */
5149 tmpreg = READ_BIT(RCC_C1->APB4LPENR, Periphs);
5150 (void)tmpreg;
5151}
5152
5188__STATIC_INLINE void LL_C1_APB4_GRP1_DisableClockSleep(uint32_t Periphs)
5189{
5190 CLEAR_BIT(RCC_C1->APB4LPENR, Periphs);
5191}
5192
5228__STATIC_INLINE void LL_C2_AHB3_GRP1_EnableClock(uint32_t Periphs)
5229{
5230 __IO uint32_t tmpreg;
5231 SET_BIT(RCC_C2->AHB3ENR, Periphs);
5232 /* Delay after an RCC peripheral clock enabling */
5233 tmpreg = READ_BIT(RCC_C2->AHB3ENR, Periphs);
5234 (void)tmpreg;
5235}
5236
5264__STATIC_INLINE uint32_t LL_C2_AHB3_GRP1_IsEnabledClock(uint32_t Periphs)
5265{
5266 return ((READ_BIT(RCC_C2->AHB3ENR, Periphs) == Periphs) ? 1U : 0U);
5267}
5268
5296__STATIC_INLINE void LL_C2_AHB3_GRP1_DisableClock(uint32_t Periphs)
5297{
5298 CLEAR_BIT(RCC_C2->AHB3ENR, Periphs);
5299}
5300
5327__STATIC_INLINE void LL_C2_AHB3_GRP1_EnableClockSleep(uint32_t Periphs)
5328{
5329 __IO uint32_t tmpreg;
5330 SET_BIT(RCC_C2->AHB3LPENR, Periphs);
5331 /* Delay after an RCC peripheral clock enabling */
5332 tmpreg = READ_BIT(RCC_C2->AHB3LPENR, Periphs);
5333 (void)tmpreg;
5334}
5335
5362__STATIC_INLINE void LL_C2_AHB3_GRP1_DisableClockSleep(uint32_t Periphs)
5363{
5364 CLEAR_BIT(RCC_C2->AHB3LPENR, Periphs);
5365}
5366
5404__STATIC_INLINE void LL_C2_AHB1_GRP1_EnableClock(uint32_t Periphs)
5405{
5406 __IO uint32_t tmpreg;
5407 SET_BIT(RCC_C2->AHB1ENR, Periphs);
5408 /* Delay after an RCC peripheral clock enabling */
5409 tmpreg = READ_BIT(RCC_C2->AHB1ENR, Periphs);
5410 (void)tmpreg;
5411}
5412
5442__STATIC_INLINE uint32_t LL_C2_AHB1_GRP1_IsEnabledClock(uint32_t Periphs)
5443{
5444 return ((READ_BIT(RCC_C2->AHB1ENR, Periphs) == Periphs) ? 1U : 0U);
5445}
5446
5476__STATIC_INLINE void LL_C2_AHB1_GRP1_DisableClock(uint32_t Periphs)
5477{
5478 CLEAR_BIT(RCC_C2->AHB1ENR, Periphs);
5479}
5480
5510__STATIC_INLINE void LL_C2_AHB1_GRP1_EnableClockSleep(uint32_t Periphs)
5511{
5512 __IO uint32_t tmpreg;
5513 SET_BIT(RCC_C2->AHB1LPENR, Periphs);
5514 /* Delay after an RCC peripheral clock enabling */
5515 tmpreg = READ_BIT(RCC_C2->AHB1LPENR, Periphs);
5516 (void)tmpreg;
5517}
5518
5548__STATIC_INLINE void LL_C2_AHB1_GRP1_DisableClockSleep(uint32_t Periphs)
5549{
5550 CLEAR_BIT(RCC_C2->AHB1LPENR, Periphs);
5551}
5552
5578__STATIC_INLINE void LL_C2_AHB2_GRP1_EnableClock(uint32_t Periphs)
5579{
5580 __IO uint32_t tmpreg;
5581 SET_BIT(RCC_C2->AHB2ENR, Periphs);
5582 /* Delay after an RCC peripheral clock enabling */
5583 tmpreg = READ_BIT(RCC_C2->AHB2ENR, Periphs);
5584 (void)tmpreg;
5585}
5586
5604__STATIC_INLINE uint32_t LL_C2_AHB2_GRP1_IsEnabledClock(uint32_t Periphs)
5605{
5606 return ((READ_BIT(RCC_C2->AHB2ENR, Periphs) == Periphs) ? 1U : 0U);
5607}
5608
5626__STATIC_INLINE void LL_C2_AHB2_GRP1_DisableClock(uint32_t Periphs)
5627{
5628 CLEAR_BIT(RCC_C2->AHB2ENR, Periphs);
5629}
5630
5654__STATIC_INLINE void LL_C2_AHB2_GRP1_EnableClockSleep(uint32_t Periphs)
5655{
5656 __IO uint32_t tmpreg;
5657 SET_BIT(RCC_C2->AHB2LPENR, Periphs);
5658 /* Delay after an RCC peripheral clock enabling */
5659 tmpreg = READ_BIT(RCC_C2->AHB2LPENR, Periphs);
5660 (void)tmpreg;
5661}
5662
5686__STATIC_INLINE void LL_C2_AHB2_GRP1_DisableClockSleep(uint32_t Periphs)
5687{
5688 CLEAR_BIT(RCC_C2->AHB2LPENR, Periphs);
5689}
5690
5740__STATIC_INLINE void LL_C2_AHB4_GRP1_EnableClock(uint32_t Periphs)
5741{
5742 __IO uint32_t tmpreg;
5743 SET_BIT(RCC_C2->AHB4ENR, Periphs);
5744 /* Delay after an RCC peripheral clock enabling */
5745 tmpreg = READ_BIT(RCC_C2->AHB4ENR, Periphs);
5746 (void)tmpreg;
5747}
5748
5790__STATIC_INLINE uint32_t LL_C2_AHB4_GRP1_IsEnabledClock(uint32_t Periphs)
5791{
5792 return ((READ_BIT(RCC_C2->AHB4ENR, Periphs) == Periphs) ? 1U : 0U);
5793}
5794
5836__STATIC_INLINE void LL_C2_AHB4_GRP1_DisableClock(uint32_t Periphs)
5837{
5838 CLEAR_BIT(RCC_C2->AHB4ENR, Periphs);
5839}
5840
5878__STATIC_INLINE void LL_C2_AHB4_GRP1_EnableClockSleep(uint32_t Periphs)
5879{
5880 __IO uint32_t tmpreg;
5881 SET_BIT(RCC_C2->AHB4LPENR, Periphs);
5882 /* Delay after an RCC peripheral clock enabling */
5883 tmpreg = READ_BIT(RCC_C2->AHB4LPENR, Periphs);
5884 (void)tmpreg;
5885}
5886
5924__STATIC_INLINE void LL_C2_AHB4_GRP1_DisableClockSleep(uint32_t Periphs)
5925{
5926 CLEAR_BIT(RCC_C2->AHB4LPENR, Periphs);
5927}
5928
5950__STATIC_INLINE void LL_C2_APB3_GRP1_EnableClock(uint32_t Periphs)
5951{
5952 __IO uint32_t tmpreg;
5953 SET_BIT(RCC_C2->APB3ENR, Periphs);
5954 /* Delay after an RCC peripheral clock enabling */
5955 tmpreg = READ_BIT(RCC_C2->APB3ENR, Periphs);
5956 (void)tmpreg;
5957}
5958
5972__STATIC_INLINE uint32_t LL_C2_APB3_GRP1_IsEnabledClock(uint32_t Periphs)
5973{
5974 return ((READ_BIT(RCC_C2->APB3ENR, Periphs) == Periphs) ? 1U : 0U);
5975}
5976
5990__STATIC_INLINE void LL_C2_APB3_GRP1_DisableClock(uint32_t Periphs)
5991{
5992 CLEAR_BIT(RCC_C2->APB3ENR, Periphs);
5993}
5994
6008__STATIC_INLINE void LL_C2_APB3_GRP1_EnableClockSleep(uint32_t Periphs)
6009{
6010 __IO uint32_t tmpreg;
6011 SET_BIT(RCC_C2->APB3LPENR, Periphs);
6012 /* Delay after an RCC peripheral clock enabling */
6013 tmpreg = READ_BIT(RCC_C2->APB3LPENR, Periphs);
6014 (void)tmpreg;
6015}
6016
6030__STATIC_INLINE void LL_C2_APB3_GRP1_DisableClockSleep(uint32_t Periphs)
6031{
6032 CLEAR_BIT(RCC_C2->APB3LPENR, Periphs);
6033}
6034
6100__STATIC_INLINE void LL_C2_APB1_GRP1_EnableClock(uint32_t Periphs)
6101{
6102 __IO uint32_t tmpreg;
6103 SET_BIT(RCC_C2->APB1LENR, Periphs);
6104 /* Delay after an RCC peripheral clock enabling */
6105 tmpreg = READ_BIT(RCC_C2->APB1LENR, Periphs);
6106 (void)tmpreg;
6107}
6108
6166__STATIC_INLINE uint32_t LL_C2_APB1_GRP1_IsEnabledClock(uint32_t Periphs)
6167{
6168 return ((READ_BIT(RCC_C2->APB1LENR, Periphs) == Periphs) ? 1U : 0U);
6169}
6170
6228__STATIC_INLINE void LL_C2_APB1_GRP1_DisableClock(uint32_t Periphs)
6229{
6230 CLEAR_BIT(RCC_C2->APB1LENR, Periphs);
6231}
6232
6290__STATIC_INLINE void LL_C2_APB1_GRP1_EnableClockSleep(uint32_t Periphs)
6291{
6292 __IO uint32_t tmpreg;
6293 SET_BIT(RCC_C2->APB1LLPENR, Periphs);
6294 /* Delay after an RCC peripheral clock enabling */
6295 tmpreg = READ_BIT(RCC_C2->APB1LLPENR, Periphs);
6296 (void)tmpreg;
6297}
6298
6356__STATIC_INLINE void LL_C2_APB1_GRP1_DisableClockSleep(uint32_t Periphs)
6357{
6358 CLEAR_BIT(RCC_C2->APB1LLPENR, Periphs);
6359}
6360
6380__STATIC_INLINE void LL_C2_APB1_GRP2_EnableClock(uint32_t Periphs)
6381{
6382 __IO uint32_t tmpreg;
6383 SET_BIT(RCC_C2->APB1HENR, Periphs);
6384 /* Delay after an RCC peripheral clock enabling */
6385 tmpreg = READ_BIT(RCC_C2->APB1HENR, Periphs);
6386 (void)tmpreg;
6387}
6388
6408__STATIC_INLINE uint32_t LL_C2_APB1_GRP2_IsEnabledClock(uint32_t Periphs)
6409{
6410 return ((READ_BIT(RCC_C2->APB1HENR, Periphs) == Periphs) ? 1U : 0U);
6411}
6412
6432__STATIC_INLINE void LL_C2_APB1_GRP2_DisableClock(uint32_t Periphs)
6433{
6434 CLEAR_BIT(RCC_C2->APB1HENR, Periphs);
6435}
6436
6456__STATIC_INLINE void LL_C2_APB1_GRP2_EnableClockSleep(uint32_t Periphs)
6457{
6458 __IO uint32_t tmpreg;
6459 SET_BIT(RCC_C2->APB1HLPENR, Periphs);
6460 /* Delay after an RCC peripheral clock enabling */
6461 tmpreg = READ_BIT(RCC_C2->APB1HLPENR, Periphs);
6462 (void)tmpreg;
6463}
6464
6484__STATIC_INLINE void LL_C2_APB1_GRP2_DisableClockSleep(uint32_t Periphs)
6485{
6486 CLEAR_BIT(RCC_C2->APB1HLPENR, Periphs);
6487}
6488
6535__STATIC_INLINE void LL_C2_APB2_GRP1_EnableClock(uint32_t Periphs)
6536{
6537 __IO uint32_t tmpreg;
6538 SET_BIT(RCC_C2->APB2ENR, Periphs);
6539 /* Delay after an RCC peripheral clock enabling */
6540 tmpreg = READ_BIT(RCC_C2->APB2ENR, Periphs);
6541 (void)tmpreg;
6542}
6543
6581__STATIC_INLINE uint32_t LL_C2_APB2_GRP1_IsEnabledClock(uint32_t Periphs)
6582{
6583 return ((READ_BIT(RCC_C2->APB2ENR, Periphs) == Periphs) ? 1U : 0U);
6584}
6585
6623__STATIC_INLINE void LL_C2_APB2_GRP1_DisableClock(uint32_t Periphs)
6624{
6625 CLEAR_BIT(RCC_C2->APB2ENR, Periphs);
6626}
6627
6665__STATIC_INLINE void LL_C2_APB2_GRP1_EnableClockSleep(uint32_t Periphs)
6666{
6667 __IO uint32_t tmpreg;
6668 SET_BIT(RCC_C2->APB2LPENR, Periphs);
6669 /* Delay after an RCC peripheral clock enabling */
6670 tmpreg = READ_BIT(RCC_C2->APB2LPENR, Periphs);
6671 (void)tmpreg;
6672}
6673
6711__STATIC_INLINE void LL_C2_APB2_GRP1_DisableClockSleep(uint32_t Periphs)
6712{
6713 CLEAR_BIT(RCC_C2->APB2LPENR, Periphs);
6714}
6715
6755__STATIC_INLINE void LL_C2_APB4_GRP1_EnableClock(uint32_t Periphs)
6756{
6757 __IO uint32_t tmpreg;
6758 SET_BIT(RCC_C2->APB4ENR, Periphs);
6759 /* Delay after an RCC peripheral clock enabling */
6760 tmpreg = READ_BIT(RCC_C2->APB4ENR, Periphs);
6761 (void)tmpreg;
6762}
6763
6795__STATIC_INLINE uint32_t LL_C2_APB4_GRP1_IsEnabledClock(uint32_t Periphs)
6796{
6797 return ((READ_BIT(RCC_C2->APB4ENR, Periphs) == Periphs) ? 1U : 0U);
6798}
6799
6831__STATIC_INLINE void LL_C2_APB4_GRP1_DisableClock(uint32_t Periphs)
6832{
6833 CLEAR_BIT(RCC_C2->APB4ENR, Periphs);
6834}
6835
6867__STATIC_INLINE void LL_C2_APB4_GRP1_EnableClockSleep(uint32_t Periphs)
6868{
6869 __IO uint32_t tmpreg;
6870 SET_BIT(RCC_C2->APB4LPENR, Periphs);
6871 /* Delay after an RCC peripheral clock enabling */
6872 tmpreg = READ_BIT(RCC_C2->APB4LPENR, Periphs);
6873 (void)tmpreg;
6874}
6875
6907__STATIC_INLINE void LL_C2_APB4_GRP1_DisableClockSleep(uint32_t Periphs)
6908{
6909 CLEAR_BIT(RCC_C2->APB4LPENR, Periphs);
6910}
6911
6916#endif /*DUAL_CORE*/
6917
6926#endif /* defined(RCC) */
6927
6932#ifdef __cplusplus
6933}
6934#endif
6935
6936#endif /* STM32H7xx_LL_BUS_H */
6937
6938
#define __IO
Definition: core_cm4.h:239
CMSIS STM32H7xx Device Peripheral Access Layer Header File.