stm32f1_staging/stm32f101/
mod.rs

1/*!Peripheral access API for STM32F101 microcontrollers (generated using svd2rust v0.36.1 (a85deda 2025-04-04))
2
3You can find an overview of the generated API [here].
4
5API features to be included in the [next] svd2rust release can be generated by cloning the svd2rust [repository], checking out the above commit, and running `cargo doc --open`.
6
7[here]: https://docs.rs/svd2rust/0.36.1/svd2rust/#peripheral-api
8[next]: https://github.com/rust-embedded/svd2rust/blob/master/CHANGELOG.md#unreleased
9[repository]: https://github.com/rust-embedded/svd2rust*/
10///Number available in the NVIC for configuring priority
11pub const NVIC_PRIO_BITS: u8 = 4;
12#[cfg(feature = "rt")]
13pub use self::Interrupt as interrupt;
14pub use cortex_m::peripheral::Peripherals as CorePeripherals;
15pub use cortex_m::peripheral::{
16    CBP, CPUID, DCB, DWT, FPB, ITM, MPU, NVIC, SCB, SYST, TPIU,
17};
18#[cfg(feature = "rt")]
19pub use cortex_m_rt::interrupt;
20#[cfg(feature = "rt")]
21extern "C" {
22    fn WWDG();
23    fn PVD();
24    fn TAMPER();
25    fn RTC();
26    fn FLASH();
27    fn RCC();
28    fn EXTI0();
29    fn EXTI1();
30    fn EXTI2();
31    fn EXTI3();
32    fn EXTI4();
33    fn DMA1_CHANNEL1();
34    fn DMA1_CHANNEL2();
35    fn DMA1_CHANNEL3();
36    fn DMA1_CHANNEL4();
37    fn DMA1_CHANNEL5();
38    fn DMA1_CHANNEL6();
39    fn DMA1_CHANNEL7();
40    fn ADC1_2();
41    fn USB_HP_CAN_TX();
42    fn USB_LP_CAN_RX0();
43    fn EXTI9_5();
44    fn TIM1_BRK();
45    fn TIM1_UP();
46    fn TIM1_TRG_COM();
47    fn TIM1_CC();
48    fn TIM2();
49    fn TIM3();
50    fn TIM4();
51    fn I2C1_EV();
52    fn I2C1_ER();
53    fn I2C2_EV();
54    fn I2C2_ER();
55    fn SPI1();
56    fn SPI2();
57    fn USART1();
58    fn USART2();
59    fn USART3();
60    fn EXTI15_10();
61    fn RTC_ALARM();
62    fn USBWAKEUP();
63    fn TIM8_BRK();
64    fn TIM8_UP();
65    fn TIM8_TRG_COM();
66    fn TIM8_CC();
67    fn ADC3();
68    fn FSMC();
69    fn SDIO();
70    fn TIM5();
71    fn SPI3();
72    fn UART4();
73    fn UART5();
74    fn TIM6();
75    fn TIM7();
76    fn DMA2_CH1();
77    fn DMA2_CH2();
78    fn DMA2_CH3();
79    fn DMA2_CHANNEL4_5();
80}
81#[doc(hidden)]
82#[repr(C)]
83pub union Vector {
84    _handler: unsafe extern "C" fn(),
85    _reserved: u32,
86}
87#[cfg(feature = "rt")]
88#[doc(hidden)]
89#[link_section = ".vector_table.interrupts"]
90#[no_mangle]
91pub static __INTERRUPTS: [Vector; 60] = [
92    Vector { _handler: WWDG },
93    Vector { _handler: PVD },
94    Vector { _handler: TAMPER },
95    Vector { _handler: RTC },
96    Vector { _handler: FLASH },
97    Vector { _handler: RCC },
98    Vector { _handler: EXTI0 },
99    Vector { _handler: EXTI1 },
100    Vector { _handler: EXTI2 },
101    Vector { _handler: EXTI3 },
102    Vector { _handler: EXTI4 },
103    Vector { _handler: DMA1_CHANNEL1 },
104    Vector { _handler: DMA1_CHANNEL2 },
105    Vector { _handler: DMA1_CHANNEL3 },
106    Vector { _handler: DMA1_CHANNEL4 },
107    Vector { _handler: DMA1_CHANNEL5 },
108    Vector { _handler: DMA1_CHANNEL6 },
109    Vector { _handler: DMA1_CHANNEL7 },
110    Vector { _handler: ADC1_2 },
111    Vector { _handler: USB_HP_CAN_TX },
112    Vector { _handler: USB_LP_CAN_RX0 },
113    Vector { _reserved: 0 },
114    Vector { _reserved: 0 },
115    Vector { _handler: EXTI9_5 },
116    Vector { _handler: TIM1_BRK },
117    Vector { _handler: TIM1_UP },
118    Vector { _handler: TIM1_TRG_COM },
119    Vector { _handler: TIM1_CC },
120    Vector { _handler: TIM2 },
121    Vector { _handler: TIM3 },
122    Vector { _handler: TIM4 },
123    Vector { _handler: I2C1_EV },
124    Vector { _handler: I2C1_ER },
125    Vector { _handler: I2C2_EV },
126    Vector { _handler: I2C2_ER },
127    Vector { _handler: SPI1 },
128    Vector { _handler: SPI2 },
129    Vector { _handler: USART1 },
130    Vector { _handler: USART2 },
131    Vector { _handler: USART3 },
132    Vector { _handler: EXTI15_10 },
133    Vector { _handler: RTC_ALARM },
134    Vector { _handler: USBWAKEUP },
135    Vector { _handler: TIM8_BRK },
136    Vector { _handler: TIM8_UP },
137    Vector { _handler: TIM8_TRG_COM },
138    Vector { _handler: TIM8_CC },
139    Vector { _handler: ADC3 },
140    Vector { _handler: FSMC },
141    Vector { _handler: SDIO },
142    Vector { _handler: TIM5 },
143    Vector { _handler: SPI3 },
144    Vector { _handler: UART4 },
145    Vector { _handler: UART5 },
146    Vector { _handler: TIM6 },
147    Vector { _handler: TIM7 },
148    Vector { _handler: DMA2_CH1 },
149    Vector { _handler: DMA2_CH2 },
150    Vector { _handler: DMA2_CH3 },
151    Vector {
152        _handler: DMA2_CHANNEL4_5,
153    },
154];
155///Enumeration of all the interrupts.
156#[cfg_attr(feature = "defmt", derive(defmt::Format))]
157#[derive(Copy, Clone, Debug, PartialEq, Eq)]
158#[repr(u16)]
159pub enum Interrupt {
160    ///0 - Window Watchdog interrupt
161    WWDG = 0,
162    ///1 - PVD through EXTI Line detection interrupt
163    PVD = 1,
164    ///2 - Tamper interrupt
165    TAMPER = 2,
166    ///3 - RTC global interrupt
167    RTC = 3,
168    ///4 - Flash global interrupt
169    FLASH = 4,
170    ///5 - RCC global interrupt
171    RCC = 5,
172    ///6 - EXTI Line0 interrupt
173    EXTI0 = 6,
174    ///7 - EXTI Line1 interrupt
175    EXTI1 = 7,
176    ///8 - EXTI Line2 interrupt
177    EXTI2 = 8,
178    ///9 - EXTI Line3 interrupt
179    EXTI3 = 9,
180    ///10 - EXTI Line4 interrupt
181    EXTI4 = 10,
182    ///11 - DMA1 Channel1 global interrupt
183    DMA1_CHANNEL1 = 11,
184    ///12 - DMA1 Channel2 global interrupt
185    DMA1_CHANNEL2 = 12,
186    ///13 - DMA1 Channel3 global interrupt
187    DMA1_CHANNEL3 = 13,
188    ///14 - DMA1 Channel4 global interrupt
189    DMA1_CHANNEL4 = 14,
190    ///15 - DMA1 Channel5 global interrupt
191    DMA1_CHANNEL5 = 15,
192    ///16 - DMA1 Channel6 global interrupt
193    DMA1_CHANNEL6 = 16,
194    ///17 - DMA1 Channel7 global interrupt
195    DMA1_CHANNEL7 = 17,
196    ///18 - ADC1 and ADC2 global interrupt
197    ADC1_2 = 18,
198    ///19 - USB High Priority or CAN TX
199    USB_HP_CAN_TX = 19,
200    ///20 - USB Low Priority or CAN RX0
201    USB_LP_CAN_RX0 = 20,
202    ///23 - EXTI Line\[9:5\] interrupts
203    EXTI9_5 = 23,
204    ///24 - TIM1 Break interrupt
205    TIM1_BRK = 24,
206    ///25 - TIM1 Update interrupt
207    TIM1_UP = 25,
208    ///26 - TIM1 Trigger and Commutation
209    TIM1_TRG_COM = 26,
210    ///27 - TIM1 Capture Compare interrupt
211    TIM1_CC = 27,
212    ///28 - TIM2 global interrupt
213    TIM2 = 28,
214    ///29 - TIM3 global interrupt
215    TIM3 = 29,
216    ///30 - TIM4 global interrupt
217    TIM4 = 30,
218    ///31 - I2C1 event interrupt
219    I2C1_EV = 31,
220    ///32 - I2C1 error interrupt
221    I2C1_ER = 32,
222    ///33 - I2C2 event interrupt
223    I2C2_EV = 33,
224    ///34 - I2C2 error interrupt
225    I2C2_ER = 34,
226    ///35 - SPI1 global interrupt
227    SPI1 = 35,
228    ///36 - SPI2 global interrupt
229    SPI2 = 36,
230    ///37 - USART1 global interrupt
231    USART1 = 37,
232    ///38 - USART2 global interrupt
233    USART2 = 38,
234    ///39 - USART3 global interrupt
235    USART3 = 39,
236    ///40 - EXTI Line\[15:10\] interrupts
237    EXTI15_10 = 40,
238    ///41 - RTC Alarms (A and B) through EXTI line interrupt
239    RTC_ALARM = 41,
240    ///42 - USB Device FS Wakeup through EXTI line interrupt
241    USBWAKEUP = 42,
242    ///43 - TIM8 Break interrupt
243    TIM8_BRK = 43,
244    ///44 - TIM8 Update interrupt
245    TIM8_UP = 44,
246    ///45 - TIM8 Trigger and Commutation
247    TIM8_TRG_COM = 45,
248    ///46 - TIM8 Capture Compare interrupt
249    TIM8_CC = 46,
250    ///47 - ADC3 global interrupt
251    ADC3 = 47,
252    ///48 - FSMC global interrupt
253    FSMC = 48,
254    ///49 - SDIO global interrupt
255    SDIO = 49,
256    ///50 - TIM5 global interrupt
257    TIM5 = 50,
258    ///51 - SPI3 global interrupt
259    SPI3 = 51,
260    ///52 - UART4 global interrupt
261    UART4 = 52,
262    ///53 - UART5 global interrupt
263    UART5 = 53,
264    ///54 - TIM6 global interrupt
265    TIM6 = 54,
266    ///55 - TIM7 global interrupt
267    TIM7 = 55,
268    ///56 - DMA2 Channel 1 interrupt
269    DMA2_CH1 = 56,
270    ///57 - DMA2 Channel 2 interrupt
271    DMA2_CH2 = 57,
272    ///58 - DMA2 Channel 3 interrupt
273    DMA2_CH3 = 58,
274    ///59 - DMA2 Channel4 and DMA2
275    DMA2_CHANNEL4_5 = 59,
276}
277unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
278    #[inline(always)]
279    fn number(self) -> u16 {
280        self as u16
281    }
282}
283///Flexible static memory controller
284///
285///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#FSMC)
286pub type FSMC = crate::Periph<fsmc::RegisterBlock, 0xa000_0000>;
287impl core::fmt::Debug for FSMC {
288    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
289        f.debug_struct("FSMC").finish()
290    }
291}
292///Flexible static memory controller
293pub mod fsmc;
294///Power control
295///
296///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#PWR)
297pub type PWR = crate::Periph<pwr::RegisterBlock, 0x4000_7000>;
298impl core::fmt::Debug for PWR {
299    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
300        f.debug_struct("PWR").finish()
301    }
302}
303///Power control
304pub mod pwr;
305///Reset and clock control
306///
307///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#RCC)
308pub type RCC = crate::Periph<rcc::RegisterBlock, 0x4002_1000>;
309impl core::fmt::Debug for RCC {
310    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
311        f.debug_struct("RCC").finish()
312    }
313}
314///Reset and clock control
315pub mod rcc;
316///General purpose I/O
317///
318///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#GPIOA)
319pub type GPIOA = crate::Periph<gpioa::RegisterBlock, 0x4001_0800>;
320impl core::fmt::Debug for GPIOA {
321    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
322        f.debug_struct("GPIOA").finish()
323    }
324}
325///General purpose I/O
326pub mod gpioa;
327///General purpose I/O
328///
329///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#GPIOA)
330pub type GPIOB = crate::Periph<gpioa::RegisterBlock, 0x4001_0c00>;
331impl core::fmt::Debug for GPIOB {
332    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
333        f.debug_struct("GPIOB").finish()
334    }
335}
336///General purpose I/O
337pub use self::gpioa as gpiob;
338///General purpose I/O
339///
340///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#GPIOA)
341pub type GPIOC = crate::Periph<gpioa::RegisterBlock, 0x4001_1000>;
342impl core::fmt::Debug for GPIOC {
343    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
344        f.debug_struct("GPIOC").finish()
345    }
346}
347///General purpose I/O
348pub use self::gpioa as gpioc;
349///General purpose I/O
350///
351///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#GPIOA)
352pub type GPIOD = crate::Periph<gpioa::RegisterBlock, 0x4001_1400>;
353impl core::fmt::Debug for GPIOD {
354    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
355        f.debug_struct("GPIOD").finish()
356    }
357}
358///General purpose I/O
359pub use self::gpioa as gpiod;
360///General purpose I/O
361///
362///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#GPIOA)
363pub type GPIOE = crate::Periph<gpioa::RegisterBlock, 0x4001_1800>;
364impl core::fmt::Debug for GPIOE {
365    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
366        f.debug_struct("GPIOE").finish()
367    }
368}
369///General purpose I/O
370pub use self::gpioa as gpioe;
371///General purpose I/O
372///
373///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#GPIOA)
374pub type GPIOF = crate::Periph<gpioa::RegisterBlock, 0x4001_1c00>;
375impl core::fmt::Debug for GPIOF {
376    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
377        f.debug_struct("GPIOF").finish()
378    }
379}
380///General purpose I/O
381pub use self::gpioa as gpiof;
382///General purpose I/O
383///
384///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#GPIOA)
385pub type GPIOG = crate::Periph<gpioa::RegisterBlock, 0x4001_2000>;
386impl core::fmt::Debug for GPIOG {
387    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
388        f.debug_struct("GPIOG").finish()
389    }
390}
391///General purpose I/O
392pub use self::gpioa as gpiog;
393///Alternate function I/O
394///
395///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#AFIO)
396pub type AFIO = crate::Periph<afio::RegisterBlock, 0x4001_0000>;
397impl core::fmt::Debug for AFIO {
398    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
399        f.debug_struct("AFIO").finish()
400    }
401}
402///Alternate function I/O
403pub mod afio;
404///EXTI
405///
406///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#EXTI)
407pub type EXTI = crate::Periph<exti::RegisterBlock, 0x4001_0400>;
408impl core::fmt::Debug for EXTI {
409    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
410        f.debug_struct("EXTI").finish()
411    }
412}
413///EXTI
414pub mod exti;
415///DMA controller
416///
417///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#DMA1)
418pub type DMA1 = crate::Periph<dma1::RegisterBlock, 0x4002_0000>;
419impl core::fmt::Debug for DMA1 {
420    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
421        f.debug_struct("DMA1").finish()
422    }
423}
424///DMA controller
425pub mod dma1;
426///DMA controller
427///
428///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#DMA1)
429pub type DMA2 = crate::Periph<dma1::RegisterBlock, 0x4002_0400>;
430impl core::fmt::Debug for DMA2 {
431    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
432        f.debug_struct("DMA2").finish()
433    }
434}
435///DMA controller
436pub use self::dma1 as dma2;
437///Real time clock
438///
439///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#RTC)
440pub type RTC = crate::Periph<rtc::RegisterBlock, 0x4000_2800>;
441impl core::fmt::Debug for RTC {
442    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
443        f.debug_struct("RTC").finish()
444    }
445}
446///Real time clock
447pub mod rtc;
448///Independent watchdog
449///
450///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#IWDG)
451pub type IWDG = crate::Periph<iwdg::RegisterBlock, 0x4000_3000>;
452impl core::fmt::Debug for IWDG {
453    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
454        f.debug_struct("IWDG").finish()
455    }
456}
457///Independent watchdog
458pub mod iwdg;
459///Window watchdog
460///
461///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#WWDG)
462pub type WWDG = crate::Periph<wwdg::RegisterBlock, 0x4000_2c00>;
463impl core::fmt::Debug for WWDG {
464    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
465        f.debug_struct("WWDG").finish()
466    }
467}
468///Window watchdog
469pub mod wwdg;
470///General purpose timer
471///
472///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#TIM2)
473pub type TIM2 = crate::Periph<tim2::RegisterBlock, 0x4000_0000>;
474impl core::fmt::Debug for TIM2 {
475    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
476        f.debug_struct("TIM2").finish()
477    }
478}
479///General purpose timer
480pub mod tim2;
481///General purpose timer
482///
483///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#TIM2)
484pub type TIM3 = crate::Periph<tim2::RegisterBlock, 0x4000_0400>;
485impl core::fmt::Debug for TIM3 {
486    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
487        f.debug_struct("TIM3").finish()
488    }
489}
490///General purpose timer
491pub use self::tim2 as tim3;
492///General purpose timer
493///
494///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#TIM2)
495pub type TIM4 = crate::Periph<tim2::RegisterBlock, 0x4000_0800>;
496impl core::fmt::Debug for TIM4 {
497    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
498        f.debug_struct("TIM4").finish()
499    }
500}
501///General purpose timer
502pub use self::tim2 as tim4;
503///General purpose timer
504///
505///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#TIM2)
506pub type TIM5 = crate::Periph<tim2::RegisterBlock, 0x4000_0c00>;
507impl core::fmt::Debug for TIM5 {
508    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
509        f.debug_struct("TIM5").finish()
510    }
511}
512///General purpose timer
513pub use self::tim2 as tim5;
514///General purpose timer
515///
516///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#TIM9)
517pub type TIM9 = crate::Periph<tim9::RegisterBlock, 0x4001_4c00>;
518impl core::fmt::Debug for TIM9 {
519    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
520        f.debug_struct("TIM9").finish()
521    }
522}
523///General purpose timer
524pub mod tim9;
525///General purpose timer
526///
527///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#TIM9)
528pub type TIM12 = crate::Periph<tim9::RegisterBlock, 0x4000_1800>;
529impl core::fmt::Debug for TIM12 {
530    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
531        f.debug_struct("TIM12").finish()
532    }
533}
534///General purpose timer
535pub use self::tim9 as tim12;
536///General purpose timer
537///
538///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#TIM10)
539pub type TIM10 = crate::Periph<tim10::RegisterBlock, 0x4001_5000>;
540impl core::fmt::Debug for TIM10 {
541    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
542        f.debug_struct("TIM10").finish()
543    }
544}
545///General purpose timer
546pub mod tim10;
547///General purpose timer
548///
549///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#TIM10)
550pub type TIM11 = crate::Periph<tim10::RegisterBlock, 0x4001_5400>;
551impl core::fmt::Debug for TIM11 {
552    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
553        f.debug_struct("TIM11").finish()
554    }
555}
556///General purpose timer
557pub use self::tim10 as tim11;
558///General purpose timer
559///
560///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#TIM10)
561pub type TIM13 = crate::Periph<tim10::RegisterBlock, 0x4000_1c00>;
562impl core::fmt::Debug for TIM13 {
563    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
564        f.debug_struct("TIM13").finish()
565    }
566}
567///General purpose timer
568pub use self::tim10 as tim13;
569///General purpose timer
570///
571///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#TIM10)
572pub type TIM14 = crate::Periph<tim10::RegisterBlock, 0x4000_2000>;
573impl core::fmt::Debug for TIM14 {
574    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
575        f.debug_struct("TIM14").finish()
576    }
577}
578///General purpose timer
579pub use self::tim10 as tim14;
580///Basic timer
581///
582///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#TIM6)
583pub type TIM6 = crate::Periph<tim6::RegisterBlock, 0x4000_1000>;
584impl core::fmt::Debug for TIM6 {
585    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
586        f.debug_struct("TIM6").finish()
587    }
588}
589///Basic timer
590pub mod tim6;
591///Basic timer
592///
593///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#TIM6)
594pub type TIM7 = crate::Periph<tim6::RegisterBlock, 0x4000_1400>;
595impl core::fmt::Debug for TIM7 {
596    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
597        f.debug_struct("TIM7").finish()
598    }
599}
600///Basic timer
601pub use self::tim6 as tim7;
602///Inter integrated circuit
603///
604///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#I2C1)
605pub type I2C1 = crate::Periph<i2c1::RegisterBlock, 0x4000_5400>;
606impl core::fmt::Debug for I2C1 {
607    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
608        f.debug_struct("I2C1").finish()
609    }
610}
611///Inter integrated circuit
612pub mod i2c1;
613///Inter integrated circuit
614///
615///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#I2C1)
616pub type I2C2 = crate::Periph<i2c1::RegisterBlock, 0x4000_5800>;
617impl core::fmt::Debug for I2C2 {
618    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
619        f.debug_struct("I2C2").finish()
620    }
621}
622///Inter integrated circuit
623pub use self::i2c1 as i2c2;
624///Serial peripheral interface
625///
626///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#SPI1)
627pub type SPI1 = crate::Periph<spi1::RegisterBlock, 0x4001_3000>;
628impl core::fmt::Debug for SPI1 {
629    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
630        f.debug_struct("SPI1").finish()
631    }
632}
633///Serial peripheral interface
634pub mod spi1;
635///Serial peripheral interface
636///
637///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#SPI1)
638pub type SPI2 = crate::Periph<spi1::RegisterBlock, 0x4000_3800>;
639impl core::fmt::Debug for SPI2 {
640    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
641        f.debug_struct("SPI2").finish()
642    }
643}
644///Serial peripheral interface
645pub use self::spi1 as spi2;
646///Serial peripheral interface
647///
648///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#SPI1)
649pub type SPI3 = crate::Periph<spi1::RegisterBlock, 0x4000_3c00>;
650impl core::fmt::Debug for SPI3 {
651    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
652        f.debug_struct("SPI3").finish()
653    }
654}
655///Serial peripheral interface
656pub use self::spi1 as spi3;
657///Universal synchronous asynchronous receiver transmitter
658///
659///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#USART1)
660pub type USART1 = crate::Periph<usart1::RegisterBlock, 0x4001_3800>;
661impl core::fmt::Debug for USART1 {
662    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
663        f.debug_struct("USART1").finish()
664    }
665}
666///Universal synchronous asynchronous receiver transmitter
667pub mod usart1;
668///Universal synchronous asynchronous receiver transmitter
669///
670///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#USART1)
671pub type USART2 = crate::Periph<usart1::RegisterBlock, 0x4000_4400>;
672impl core::fmt::Debug for USART2 {
673    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
674        f.debug_struct("USART2").finish()
675    }
676}
677///Universal synchronous asynchronous receiver transmitter
678pub use self::usart1 as usart2;
679///Universal synchronous asynchronous receiver transmitter
680///
681///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#USART1)
682pub type USART3 = crate::Periph<usart1::RegisterBlock, 0x4000_4800>;
683impl core::fmt::Debug for USART3 {
684    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
685        f.debug_struct("USART3").finish()
686    }
687}
688///Universal synchronous asynchronous receiver transmitter
689pub use self::usart1 as usart3;
690///Digital to analog converter
691///
692///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#DAC)
693pub type DAC = crate::Periph<dac::RegisterBlock, 0x4000_7400>;
694impl core::fmt::Debug for DAC {
695    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
696        f.debug_struct("DAC").finish()
697    }
698}
699///Digital to analog converter
700pub mod dac;
701///Debug support
702///
703///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#DBGMCU)
704pub type DBGMCU = crate::Periph<dbgmcu::RegisterBlock, 0xe004_2000>;
705impl core::fmt::Debug for DBGMCU {
706    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
707        f.debug_struct("DBGMCU").finish()
708    }
709}
710///Debug support
711pub mod dbgmcu;
712///Universal asynchronous receiver transmitter
713///
714///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#UART4)
715pub type UART4 = crate::Periph<uart4::RegisterBlock, 0x4000_4c00>;
716impl core::fmt::Debug for UART4 {
717    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
718        f.debug_struct("UART4").finish()
719    }
720}
721///Universal asynchronous receiver transmitter
722pub mod uart4;
723///Universal asynchronous receiver transmitter
724///
725///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#UART4)
726pub type UART5 = crate::Periph<uart4::RegisterBlock, 0x4000_5000>;
727impl core::fmt::Debug for UART5 {
728    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
729        f.debug_struct("UART5").finish()
730    }
731}
732///Universal asynchronous receiver transmitter
733pub use self::uart4 as uart5;
734///CRC calculation unit
735///
736///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#CRC)
737pub type CRC = crate::Periph<crc::RegisterBlock, 0x4002_3000>;
738impl core::fmt::Debug for CRC {
739    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
740        f.debug_struct("CRC").finish()
741    }
742}
743///CRC calculation unit
744pub mod crc;
745///FLASH
746///
747///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#FLASH)
748pub type FLASH = crate::Periph<flash::RegisterBlock, 0x4002_2000>;
749impl core::fmt::Debug for FLASH {
750    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
751        f.debug_struct("FLASH").finish()
752    }
753}
754///FLASH
755pub mod flash;
756///Backup registers
757///
758///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#BKP)
759pub type BKP = crate::Periph<bkp::RegisterBlock, 0x4000_6c04>;
760impl core::fmt::Debug for BKP {
761    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
762        f.debug_struct("BKP").finish()
763    }
764}
765///Backup registers
766pub mod bkp;
767///Analog to digital converter
768///
769///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#ADC1)
770pub type ADC1 = crate::Periph<adc1::RegisterBlock, 0x4001_2400>;
771impl core::fmt::Debug for ADC1 {
772    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
773        f.debug_struct("ADC1").finish()
774    }
775}
776///Analog to digital converter
777pub mod adc1;
778///USB on the go full speed
779///
780///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#OTG_FS_DEVICE)
781pub type OTG_FS_DEVICE = crate::Periph<otg_fs_device::RegisterBlock, 0x5000_0800>;
782impl core::fmt::Debug for OTG_FS_DEVICE {
783    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
784        f.debug_struct("OTG_FS_DEVICE").finish()
785    }
786}
787///USB on the go full speed
788pub mod otg_fs_device;
789///USB on the go full speed
790///
791///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#OTG_FS_GLOBAL)
792pub type OTG_FS_GLOBAL = crate::Periph<otg_fs_global::RegisterBlock, 0x5000_0000>;
793impl core::fmt::Debug for OTG_FS_GLOBAL {
794    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
795        f.debug_struct("OTG_FS_GLOBAL").finish()
796    }
797}
798///USB on the go full speed
799pub mod otg_fs_global;
800///USB on the go full speed
801///
802///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#OTG_FS_HOST)
803pub type OTG_FS_HOST = crate::Periph<otg_fs_host::RegisterBlock, 0x5000_0400>;
804impl core::fmt::Debug for OTG_FS_HOST {
805    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
806        f.debug_struct("OTG_FS_HOST").finish()
807    }
808}
809///USB on the go full speed
810pub mod otg_fs_host;
811///USB on the go full speed
812///
813///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#OTG_FS_PWRCLK)
814pub type OTG_FS_PWRCLK = crate::Periph<otg_fs_pwrclk::RegisterBlock, 0x5000_0e00>;
815impl core::fmt::Debug for OTG_FS_PWRCLK {
816    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
817        f.debug_struct("OTG_FS_PWRCLK").finish()
818    }
819}
820///USB on the go full speed
821pub mod otg_fs_pwrclk;
822///Ethernet: MAC management counters
823///
824///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#Ethernet_MMC)
825pub type ETHERNET_MMC = crate::Periph<ethernet_mmc::RegisterBlock, 0x4002_8100>;
826impl core::fmt::Debug for ETHERNET_MMC {
827    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
828        f.debug_struct("ETHERNET_MMC").finish()
829    }
830}
831///Ethernet: MAC management counters
832pub mod ethernet_mmc;
833///Ethernet: media access control
834///
835///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#Ethernet_MAC)
836pub type ETHERNET_MAC = crate::Periph<ethernet_mac::RegisterBlock, 0x4002_8000>;
837impl core::fmt::Debug for ETHERNET_MAC {
838    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
839        f.debug_struct("ETHERNET_MAC").finish()
840    }
841}
842///Ethernet: media access control
843pub mod ethernet_mac;
844///Ethernet: Precision time protocol
845///
846///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#Ethernet_PTP)
847pub type ETHERNET_PTP = crate::Periph<ethernet_ptp::RegisterBlock, 0x4002_8700>;
848impl core::fmt::Debug for ETHERNET_PTP {
849    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
850        f.debug_struct("ETHERNET_PTP").finish()
851    }
852}
853///Ethernet: Precision time protocol
854pub mod ethernet_ptp;
855///Ethernet: DMA controller operation
856///
857///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#Ethernet_DMA)
858pub type ETHERNET_DMA = crate::Periph<ethernet_dma::RegisterBlock, 0x4002_9000>;
859impl core::fmt::Debug for ETHERNET_DMA {
860    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
861        f.debug_struct("ETHERNET_DMA").finish()
862    }
863}
864///Ethernet: DMA controller operation
865pub mod ethernet_dma;
866///Universal serial bus full-speed device interface
867///
868///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#USB)
869pub type USB = crate::Periph<usb::RegisterBlock, 0x4000_5c00>;
870impl core::fmt::Debug for USB {
871    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
872        f.debug_struct("USB").finish()
873    }
874}
875///Universal serial bus full-speed device interface
876pub mod usb;
877///Analog to digital converter
878///
879///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#ADC2)
880pub type ADC2 = crate::Periph<adc2::RegisterBlock, 0x4001_2800>;
881impl core::fmt::Debug for ADC2 {
882    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
883        f.debug_struct("ADC2").finish()
884    }
885}
886///Analog to digital converter
887pub mod adc2;
888///Analog to digital converter
889///
890///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#ADC3)
891pub type ADC3 = crate::Periph<adc3::RegisterBlock, 0x4001_3c00>;
892impl core::fmt::Debug for ADC3 {
893    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
894        f.debug_struct("ADC3").finish()
895    }
896}
897///Analog to digital converter
898pub mod adc3;
899///Advanced timer
900///
901///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#TIM1)
902pub type TIM1 = crate::Periph<tim1::RegisterBlock, 0x4001_2c00>;
903impl core::fmt::Debug for TIM1 {
904    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
905        f.debug_struct("TIM1").finish()
906    }
907}
908///Advanced timer
909pub mod tim1;
910///Advanced timer
911///
912///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#TIM1)
913pub type TIM8 = crate::Periph<tim1::RegisterBlock, 0x4001_3400>;
914impl core::fmt::Debug for TIM8 {
915    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
916        f.debug_struct("TIM8").finish()
917    }
918}
919///Advanced timer
920pub use self::tim1 as tim8;
921///Secure digital input/output interface
922///
923///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#SDIO)
924pub type SDIO = crate::Periph<sdio::RegisterBlock, 0x4001_8000>;
925impl core::fmt::Debug for SDIO {
926    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
927        f.debug_struct("SDIO").finish()
928    }
929}
930///Secure digital input/output interface
931pub mod sdio;
932///System control block ACTLR
933///
934///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#SCB_ACTRL)
935pub type SCB_ACTRL = crate::Periph<scb_actrl::RegisterBlock, 0xe000_e008>;
936impl core::fmt::Debug for SCB_ACTRL {
937    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
938        f.debug_struct("SCB_ACTRL").finish()
939    }
940}
941///System control block ACTLR
942pub mod scb_actrl;
943///Nested vectored interrupt controller
944///
945///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#NVIC_STIR)
946pub type NVIC_STIR = crate::Periph<nvic_stir::RegisterBlock, 0xe000_ef00>;
947impl core::fmt::Debug for NVIC_STIR {
948    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
949        f.debug_struct("NVIC_STIR").finish()
950    }
951}
952///Nested vectored interrupt controller
953pub mod nvic_stir;
954///SysTick timer
955///
956///See peripheral [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#STK)
957pub type STK = crate::Periph<stk::RegisterBlock, 0xe000_e010>;
958impl core::fmt::Debug for STK {
959    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
960        f.debug_struct("STK").finish()
961    }
962}
963///SysTick timer
964pub mod stk;
965#[no_mangle]
966static mut DEVICE_PERIPHERALS: bool = false;
967/// All the peripherals.
968#[allow(non_snake_case)]
969pub struct Peripherals {
970    ///FSMC
971    pub FSMC: FSMC,
972    ///PWR
973    pub PWR: PWR,
974    ///RCC
975    pub RCC: RCC,
976    ///GPIOA
977    pub GPIOA: GPIOA,
978    ///GPIOB
979    pub GPIOB: GPIOB,
980    ///GPIOC
981    pub GPIOC: GPIOC,
982    ///GPIOD
983    pub GPIOD: GPIOD,
984    ///GPIOE
985    pub GPIOE: GPIOE,
986    ///GPIOF
987    pub GPIOF: GPIOF,
988    ///GPIOG
989    pub GPIOG: GPIOG,
990    ///AFIO
991    pub AFIO: AFIO,
992    ///EXTI
993    pub EXTI: EXTI,
994    ///DMA1
995    pub DMA1: DMA1,
996    ///DMA2
997    pub DMA2: DMA2,
998    ///RTC
999    pub RTC: RTC,
1000    ///IWDG
1001    pub IWDG: IWDG,
1002    ///WWDG
1003    pub WWDG: WWDG,
1004    ///TIM2
1005    pub TIM2: TIM2,
1006    ///TIM3
1007    pub TIM3: TIM3,
1008    ///TIM4
1009    pub TIM4: TIM4,
1010    ///TIM5
1011    pub TIM5: TIM5,
1012    ///TIM9
1013    pub TIM9: TIM9,
1014    ///TIM12
1015    pub TIM12: TIM12,
1016    ///TIM10
1017    pub TIM10: TIM10,
1018    ///TIM11
1019    pub TIM11: TIM11,
1020    ///TIM13
1021    pub TIM13: TIM13,
1022    ///TIM14
1023    pub TIM14: TIM14,
1024    ///TIM6
1025    pub TIM6: TIM6,
1026    ///TIM7
1027    pub TIM7: TIM7,
1028    ///I2C1
1029    pub I2C1: I2C1,
1030    ///I2C2
1031    pub I2C2: I2C2,
1032    ///SPI1
1033    pub SPI1: SPI1,
1034    ///SPI2
1035    pub SPI2: SPI2,
1036    ///SPI3
1037    pub SPI3: SPI3,
1038    ///USART1
1039    pub USART1: USART1,
1040    ///USART2
1041    pub USART2: USART2,
1042    ///USART3
1043    pub USART3: USART3,
1044    ///DAC
1045    pub DAC: DAC,
1046    ///DBGMCU
1047    pub DBGMCU: DBGMCU,
1048    ///UART4
1049    pub UART4: UART4,
1050    ///UART5
1051    pub UART5: UART5,
1052    ///CRC
1053    pub CRC: CRC,
1054    ///FLASH
1055    pub FLASH: FLASH,
1056    ///BKP
1057    pub BKP: BKP,
1058    ///ADC1
1059    pub ADC1: ADC1,
1060    ///OTG_FS_DEVICE
1061    pub OTG_FS_DEVICE: OTG_FS_DEVICE,
1062    ///OTG_FS_GLOBAL
1063    pub OTG_FS_GLOBAL: OTG_FS_GLOBAL,
1064    ///OTG_FS_HOST
1065    pub OTG_FS_HOST: OTG_FS_HOST,
1066    ///OTG_FS_PWRCLK
1067    pub OTG_FS_PWRCLK: OTG_FS_PWRCLK,
1068    ///Ethernet_MMC
1069    pub ETHERNET_MMC: ETHERNET_MMC,
1070    ///Ethernet_MAC
1071    pub ETHERNET_MAC: ETHERNET_MAC,
1072    ///Ethernet_PTP
1073    pub ETHERNET_PTP: ETHERNET_PTP,
1074    ///Ethernet_DMA
1075    pub ETHERNET_DMA: ETHERNET_DMA,
1076    ///USB
1077    pub USB: USB,
1078    ///ADC2
1079    pub ADC2: ADC2,
1080    ///ADC3
1081    pub ADC3: ADC3,
1082    ///TIM1
1083    pub TIM1: TIM1,
1084    ///TIM8
1085    pub TIM8: TIM8,
1086    ///SDIO
1087    pub SDIO: SDIO,
1088    ///SCB_ACTRL
1089    pub SCB_ACTRL: SCB_ACTRL,
1090    ///NVIC_STIR
1091    pub NVIC_STIR: NVIC_STIR,
1092    ///STK
1093    pub STK: STK,
1094}
1095impl Peripherals {
1096    /// Returns all the peripherals *once*.
1097    #[cfg(feature = "critical-section")]
1098    #[inline]
1099    pub fn take() -> Option<Self> {
1100        critical_section::with(|_| {
1101            if unsafe { DEVICE_PERIPHERALS } {
1102                return None;
1103            }
1104            Some(unsafe { Peripherals::steal() })
1105        })
1106    }
1107    /// Unchecked version of `Peripherals::take`.
1108    ///
1109    /// # Safety
1110    ///
1111    /// Each of the returned peripherals must be used at most once.
1112    #[inline]
1113    pub unsafe fn steal() -> Self {
1114        DEVICE_PERIPHERALS = true;
1115        Peripherals {
1116            FSMC: FSMC::steal(),
1117            PWR: PWR::steal(),
1118            RCC: RCC::steal(),
1119            GPIOA: GPIOA::steal(),
1120            GPIOB: GPIOB::steal(),
1121            GPIOC: GPIOC::steal(),
1122            GPIOD: GPIOD::steal(),
1123            GPIOE: GPIOE::steal(),
1124            GPIOF: GPIOF::steal(),
1125            GPIOG: GPIOG::steal(),
1126            AFIO: AFIO::steal(),
1127            EXTI: EXTI::steal(),
1128            DMA1: DMA1::steal(),
1129            DMA2: DMA2::steal(),
1130            RTC: RTC::steal(),
1131            IWDG: IWDG::steal(),
1132            WWDG: WWDG::steal(),
1133            TIM2: TIM2::steal(),
1134            TIM3: TIM3::steal(),
1135            TIM4: TIM4::steal(),
1136            TIM5: TIM5::steal(),
1137            TIM9: TIM9::steal(),
1138            TIM12: TIM12::steal(),
1139            TIM10: TIM10::steal(),
1140            TIM11: TIM11::steal(),
1141            TIM13: TIM13::steal(),
1142            TIM14: TIM14::steal(),
1143            TIM6: TIM6::steal(),
1144            TIM7: TIM7::steal(),
1145            I2C1: I2C1::steal(),
1146            I2C2: I2C2::steal(),
1147            SPI1: SPI1::steal(),
1148            SPI2: SPI2::steal(),
1149            SPI3: SPI3::steal(),
1150            USART1: USART1::steal(),
1151            USART2: USART2::steal(),
1152            USART3: USART3::steal(),
1153            DAC: DAC::steal(),
1154            DBGMCU: DBGMCU::steal(),
1155            UART4: UART4::steal(),
1156            UART5: UART5::steal(),
1157            CRC: CRC::steal(),
1158            FLASH: FLASH::steal(),
1159            BKP: BKP::steal(),
1160            ADC1: ADC1::steal(),
1161            OTG_FS_DEVICE: OTG_FS_DEVICE::steal(),
1162            OTG_FS_GLOBAL: OTG_FS_GLOBAL::steal(),
1163            OTG_FS_HOST: OTG_FS_HOST::steal(),
1164            OTG_FS_PWRCLK: OTG_FS_PWRCLK::steal(),
1165            ETHERNET_MMC: ETHERNET_MMC::steal(),
1166            ETHERNET_MAC: ETHERNET_MAC::steal(),
1167            ETHERNET_PTP: ETHERNET_PTP::steal(),
1168            ETHERNET_DMA: ETHERNET_DMA::steal(),
1169            USB: USB::steal(),
1170            ADC2: ADC2::steal(),
1171            ADC3: ADC3::steal(),
1172            TIM1: TIM1::steal(),
1173            TIM8: TIM8::steal(),
1174            SDIO: SDIO::steal(),
1175            SCB_ACTRL: SCB_ACTRL::steal(),
1176            NVIC_STIR: NVIC_STIR::steal(),
1177            STK: STK::steal(),
1178        }
1179    }
1180}