#![doc = "Peripheral access API for STM32H757_CM4 microcontrollers (generated using svd2rust v0.24.0 ( ))\n\nYou can find an overview of the generated API [here].\n\nAPI 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`.\n\n[here]: https://docs.rs/svd2rust/0.24.0/svd2rust/#peripheral-api\n[next]: https://github.com/rust-embedded/svd2rust/blob/master/CHANGELOG.md#unreleased\n[repository]: https://github.com/rust-embedded/svd2rust"]
use core::marker::PhantomData;
use core::ops::Deref;
#[doc = r"Number available in the NVIC for configuring priority"]
pub const NVIC_PRIO_BITS: u8 = 4;
#[cfg(feature = "rt")]
pub use self::Interrupt as interrupt;
pub use cortex_m::peripheral::Peripherals as CorePeripherals;
pub use cortex_m::peripheral::{CBP, CPUID, DCB, DWT, FPB, FPU, ITM, MPU, NVIC, SCB, SYST, TPIU};
#[cfg(feature = "rt")]
pub use cortex_m_rt::interrupt;
#[cfg(feature = "rt")]
extern "C" {
fn WWDG2();
fn PVD_PVM();
fn RTC_TAMP_STAMP_CSS_LSE();
fn RTC_WKUP();
fn RCC();
fn EXTI0();
fn EXTI1();
fn EXTI2();
fn EXTI3();
fn EXTI4();
fn DMA1_STR0();
fn DMA1_STR1();
fn DMA1_STR2();
fn DMA1_STR3();
fn DMA1_STR4();
fn DMA1_STR5();
fn DMA1_STR6();
fn ADC1_2();
fn FDCAN1_IT0();
fn FDCAN2_IT0();
fn FDCAN1_IT1();
fn FDCAN2_IT1();
fn EXTI9_5();
fn TIM1_BRK();
fn TIM1_UP();
fn TIM1_TRG_COM();
fn TIM_CC();
fn TIM2();
fn TIM3();
fn TIM4();
fn I2C1_EV();
fn I2C1_ER();
fn I2C2_EV();
fn I2C2_ER();
fn SPI1();
fn SPI2();
fn USART1();
fn USART2();
fn USART3();
fn EXTI15_10();
fn RTC_ALARM();
fn TIM8_BRK_TIM12();
fn TIM8_UP_TIM13();
fn TIM8_TRG_COM_TIM14();
fn TIM8_CC();
fn DMA1_STR7();
fn FMC();
fn SDMMC1();
fn TIM5();
fn SPI3();
fn UART4();
fn UART5();
fn TIM6_DAC();
fn TIM7();
fn DMA2_STR0();
fn DMA2_STR1();
fn DMA2_STR2();
fn DMA2_STR3();
fn DMA2_STR4();
fn ETH();
fn ETH_WKUP();
fn FDCAN_CAL();
fn CM7_SEV_IT();
fn DMA2_STR5();
fn DMA2_STR6();
fn DMA2_STR7();
fn USART6();
fn I2C3_EV();
fn I2C3_ER();
fn OTG_HS_EP1_OUT();
fn OTG_HS_EP1_IN();
fn OTG_HS_WKUP();
fn OTG_HS();
fn DCMI();
fn CRYP();
fn HASH_RNG();
fn FPU();
fn UART7();
fn UART8();
fn SPI4();
fn SPI5();
fn SPI6();
fn SAI1();
fn LTDC();
fn LTDC_ER();
fn DMA2D();
fn SAI2();
fn QUADSPI();
fn LPTIM1();
fn CEC();
fn I2C4_EV();
fn I2C4_ER();
fn SPDIF();
fn OTG_FS_EP1_OUT();
fn OTG_FS_EP1_IN();
fn OTG_FS_WKUP();
fn OTG_FS();
fn DMAMUX1_OV();
fn HRTIM1_MST();
fn HRTIM1_TIMA();
fn HRTIM_TIMB();
fn HRTIM1_TIMC();
fn HRTIM1_TIMD();
fn HRTIM_TIME();
fn HRTIM1_FLT();
fn DFSDM1_FLT0();
fn DFSDM1_FLT1();
fn DFSDM1_FLT2();
fn DFSDM1_FLT3();
fn SAI3();
fn SWPMI1();
fn TIM15();
fn TIM16();
fn TIM17();
fn MDIOS_WKUP();
fn MDIOS();
fn JPEG();
fn MDMA();
fn DSI();
fn SDMMC();
fn HSEM0();
fn ADC3();
fn DMAMUX2_OVR();
fn BDMA_CH1();
fn BDMA_CH2();
fn BDMA_CH3();
fn BDMA_CH4();
fn BDMA_CH5();
fn BDMA_CH6();
fn BDMA_CH7();
fn BDMA_CH8();
fn COMP();
fn LPTIM2();
fn LPTIM3();
fn LPTIM4();
fn LPTIM5();
fn LPUART();
fn WWDG1_RST();
fn CRS();
fn RAMECC();
fn SAI4();
fn HOLD_CORE();
fn WKUP();
}
#[doc(hidden)]
pub union Vector {
_handler: unsafe extern "C" fn(),
_reserved: u32,
}
#[cfg(feature = "rt")]
#[doc(hidden)]
#[link_section = ".vector_table.interrupts"]
#[no_mangle]
pub static __INTERRUPTS: [Vector; 150] = [
Vector { _handler: WWDG2 },
Vector { _handler: PVD_PVM },
Vector {
_handler: RTC_TAMP_STAMP_CSS_LSE,
},
Vector { _handler: RTC_WKUP },
Vector { _reserved: 0 },
Vector { _handler: RCC },
Vector { _handler: EXTI0 },
Vector { _handler: EXTI1 },
Vector { _handler: EXTI2 },
Vector { _handler: EXTI3 },
Vector { _handler: EXTI4 },
Vector {
_handler: DMA1_STR0,
},
Vector {
_handler: DMA1_STR1,
},
Vector {
_handler: DMA1_STR2,
},
Vector {
_handler: DMA1_STR3,
},
Vector {
_handler: DMA1_STR4,
},
Vector {
_handler: DMA1_STR5,
},
Vector {
_handler: DMA1_STR6,
},
Vector { _handler: ADC1_2 },
Vector {
_handler: FDCAN1_IT0,
},
Vector {
_handler: FDCAN2_IT0,
},
Vector {
_handler: FDCAN1_IT1,
},
Vector {
_handler: FDCAN2_IT1,
},
Vector { _handler: EXTI9_5 },
Vector { _handler: TIM1_BRK },
Vector { _handler: TIM1_UP },
Vector {
_handler: TIM1_TRG_COM,
},
Vector { _handler: TIM_CC },
Vector { _handler: TIM2 },
Vector { _handler: TIM3 },
Vector { _handler: TIM4 },
Vector { _handler: I2C1_EV },
Vector { _handler: I2C1_ER },
Vector { _handler: I2C2_EV },
Vector { _handler: I2C2_ER },
Vector { _handler: SPI1 },
Vector { _handler: SPI2 },
Vector { _handler: USART1 },
Vector { _handler: USART2 },
Vector { _handler: USART3 },
Vector {
_handler: EXTI15_10,
},
Vector {
_handler: RTC_ALARM,
},
Vector { _reserved: 0 },
Vector {
_handler: TIM8_BRK_TIM12,
},
Vector {
_handler: TIM8_UP_TIM13,
},
Vector {
_handler: TIM8_TRG_COM_TIM14,
},
Vector { _handler: TIM8_CC },
Vector {
_handler: DMA1_STR7,
},
Vector { _handler: FMC },
Vector { _handler: SDMMC1 },
Vector { _handler: TIM5 },
Vector { _handler: SPI3 },
Vector { _handler: UART4 },
Vector { _handler: UART5 },
Vector { _handler: TIM6_DAC },
Vector { _handler: TIM7 },
Vector {
_handler: DMA2_STR0,
},
Vector {
_handler: DMA2_STR1,
},
Vector {
_handler: DMA2_STR2,
},
Vector {
_handler: DMA2_STR3,
},
Vector {
_handler: DMA2_STR4,
},
Vector { _handler: ETH },
Vector { _handler: ETH_WKUP },
Vector {
_handler: FDCAN_CAL,
},
Vector {
_handler: CM7_SEV_IT,
},
Vector { _reserved: 0 },
Vector { _reserved: 0 },
Vector { _reserved: 0 },
Vector {
_handler: DMA2_STR5,
},
Vector {
_handler: DMA2_STR6,
},
Vector {
_handler: DMA2_STR7,
},
Vector { _handler: USART6 },
Vector { _handler: I2C3_EV },
Vector { _handler: I2C3_ER },
Vector {
_handler: OTG_HS_EP1_OUT,
},
Vector {
_handler: OTG_HS_EP1_IN,
},
Vector {
_handler: OTG_HS_WKUP,
},
Vector { _handler: OTG_HS },
Vector { _handler: DCMI },
Vector { _handler: CRYP },
Vector { _handler: HASH_RNG },
Vector { _handler: FPU },
Vector { _handler: UART7 },
Vector { _handler: UART8 },
Vector { _handler: SPI4 },
Vector { _handler: SPI5 },
Vector { _handler: SPI6 },
Vector { _handler: SAI1 },
Vector { _handler: LTDC },
Vector { _handler: LTDC_ER },
Vector { _handler: DMA2D },
Vector { _handler: SAI2 },
Vector { _handler: QUADSPI },
Vector { _handler: LPTIM1 },
Vector { _handler: CEC },
Vector { _handler: I2C4_EV },
Vector { _handler: I2C4_ER },
Vector { _handler: SPDIF },
Vector {
_handler: OTG_FS_EP1_OUT,
},
Vector {
_handler: OTG_FS_EP1_IN,
},
Vector {
_handler: OTG_FS_WKUP,
},
Vector { _handler: OTG_FS },
Vector {
_handler: DMAMUX1_OV,
},
Vector {
_handler: HRTIM1_MST,
},
Vector {
_handler: HRTIM1_TIMA,
},
Vector {
_handler: HRTIM_TIMB,
},
Vector {
_handler: HRTIM1_TIMC,
},
Vector {
_handler: HRTIM1_TIMD,
},
Vector {
_handler: HRTIM_TIME,
},
Vector {
_handler: HRTIM1_FLT,
},
Vector {
_handler: DFSDM1_FLT0,
},
Vector {
_handler: DFSDM1_FLT1,
},
Vector {
_handler: DFSDM1_FLT2,
},
Vector {
_handler: DFSDM1_FLT3,
},
Vector { _handler: SAI3 },
Vector { _handler: SWPMI1 },
Vector { _handler: TIM15 },
Vector { _handler: TIM16 },
Vector { _handler: TIM17 },
Vector {
_handler: MDIOS_WKUP,
},
Vector { _handler: MDIOS },
Vector { _handler: JPEG },
Vector { _handler: MDMA },
Vector { _handler: DSI },
Vector { _handler: SDMMC },
Vector { _handler: HSEM0 },
Vector { _reserved: 0 },
Vector { _handler: ADC3 },
Vector {
_handler: DMAMUX2_OVR,
},
Vector { _handler: BDMA_CH1 },
Vector { _handler: BDMA_CH2 },
Vector { _handler: BDMA_CH3 },
Vector { _handler: BDMA_CH4 },
Vector { _handler: BDMA_CH5 },
Vector { _handler: BDMA_CH6 },
Vector { _handler: BDMA_CH7 },
Vector { _handler: BDMA_CH8 },
Vector { _handler: COMP },
Vector { _handler: LPTIM2 },
Vector { _handler: LPTIM3 },
Vector { _handler: LPTIM4 },
Vector { _handler: LPTIM5 },
Vector { _handler: LPUART },
Vector {
_handler: WWDG1_RST,
},
Vector { _handler: CRS },
Vector { _handler: RAMECC },
Vector { _handler: SAI4 },
Vector { _reserved: 0 },
Vector {
_handler: HOLD_CORE,
},
Vector { _handler: WKUP },
];
#[doc = r"Enumeration of all the interrupts."]
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
#[repr(u16)]
pub enum Interrupt {
#[doc = "0 - Window Watchdog interrupt"]
WWDG2 = 0,
#[doc = "1 - PVD through EXTI line"]
PVD_PVM = 1,
#[doc = "2 - RTC tamper, timestamp"]
RTC_TAMP_STAMP_CSS_LSE = 2,
#[doc = "3 - RTC Wakeup interrupt"]
RTC_WKUP = 3,
#[doc = "5 - RCC global interrupt"]
RCC = 5,
#[doc = "6 - EXTI Line 0 interrupt"]
EXTI0 = 6,
#[doc = "7 - EXTI Line 1 interrupt"]
EXTI1 = 7,
#[doc = "8 - EXTI Line 2 interrupt"]
EXTI2 = 8,
#[doc = "9 - EXTI Line 3interrupt"]
EXTI3 = 9,
#[doc = "10 - EXTI Line 4interrupt"]
EXTI4 = 10,
#[doc = "11 - DMA1 Stream0"]
DMA1_STR0 = 11,
#[doc = "12 - DMA1 Stream1"]
DMA1_STR1 = 12,
#[doc = "13 - DMA1 Stream2"]
DMA1_STR2 = 13,
#[doc = "14 - DMA1 Stream3"]
DMA1_STR3 = 14,
#[doc = "15 - DMA1 Stream4"]
DMA1_STR4 = 15,
#[doc = "16 - DMA1 Stream5"]
DMA1_STR5 = 16,
#[doc = "17 - DMA1 Stream6"]
DMA1_STR6 = 17,
#[doc = "18 - ADC1 and ADC2"]
ADC1_2 = 18,
#[doc = "19 - FDCAN1 Interrupt 0"]
FDCAN1_IT0 = 19,
#[doc = "20 - FDCAN2 Interrupt 0"]
FDCAN2_IT0 = 20,
#[doc = "21 - FDCAN1 Interrupt 1"]
FDCAN1_IT1 = 21,
#[doc = "22 - FDCAN2 Interrupt 1"]
FDCAN2_IT1 = 22,
#[doc = "23 - EXTI Line\\[9:5\\]
interrupts"]
EXTI9_5 = 23,
#[doc = "24 - TIM1 break interrupt"]
TIM1_BRK = 24,
#[doc = "25 - TIM1 update interrupt"]
TIM1_UP = 25,
#[doc = "26 - TIM1 trigger and commutation"]
TIM1_TRG_COM = 26,
#[doc = "27 - TIM1 capture / compare"]
TIM_CC = 27,
#[doc = "28 - TIM2 global interrupt"]
TIM2 = 28,
#[doc = "29 - TIM3 global interrupt"]
TIM3 = 29,
#[doc = "30 - TIM4 global interrupt"]
TIM4 = 30,
#[doc = "31 - I2C1 event interrupt"]
I2C1_EV = 31,
#[doc = "32 - I2C1 error interrupt"]
I2C1_ER = 32,
#[doc = "33 - I2C2 event interrupt"]
I2C2_EV = 33,
#[doc = "34 - I2C2 error interrupt"]
I2C2_ER = 34,
#[doc = "35 - SPI1 global interrupt"]
SPI1 = 35,
#[doc = "36 - SPI2 global interrupt"]
SPI2 = 36,
#[doc = "37 - USART1 global interrupt"]
USART1 = 37,
#[doc = "38 - USART2 global interrupt"]
USART2 = 38,
#[doc = "39 - USART3 global interrupt"]
USART3 = 39,
#[doc = "40 - EXTI Line\\[15:10\\]
interrupts"]
EXTI15_10 = 40,
#[doc = "41 - RTC alarms (A and B)"]
RTC_ALARM = 41,
#[doc = "43 - TIM8 and 12 break global"]
TIM8_BRK_TIM12 = 43,
#[doc = "44 - TIM8 and 13 update global"]
TIM8_UP_TIM13 = 44,
#[doc = "45 - TIM8 and 14 trigger /commutation and global"]
TIM8_TRG_COM_TIM14 = 45,
#[doc = "46 - TIM8 capture / compare"]
TIM8_CC = 46,
#[doc = "47 - DMA1 Stream7"]
DMA1_STR7 = 47,
#[doc = "48 - FMC global interrupt"]
FMC = 48,
#[doc = "49 - SDMMC global interrupt"]
SDMMC1 = 49,
#[doc = "50 - TIM5 global interrupt"]
TIM5 = 50,
#[doc = "51 - SPI3 global interrupt"]
SPI3 = 51,
#[doc = "52 - UART4 global interrupt"]
UART4 = 52,
#[doc = "53 - UART5 global interrupt"]
UART5 = 53,
#[doc = "54 - TIM6 global interrupt"]
TIM6_DAC = 54,
#[doc = "55 - TIM7 global interrupt"]
TIM7 = 55,
#[doc = "56 - DMA2 Stream0"]
DMA2_STR0 = 56,
#[doc = "57 - DMA2 Stream1"]
DMA2_STR1 = 57,
#[doc = "58 - DMA2 Stream2"]
DMA2_STR2 = 58,
#[doc = "59 - DMA2 Stream3"]
DMA2_STR3 = 59,
#[doc = "60 - DMA2 Stream4"]
DMA2_STR4 = 60,
#[doc = "61 - Ethernet global interrupt"]
ETH = 61,
#[doc = "62 - Ethernet wakeup through EXTI"]
ETH_WKUP = 62,
#[doc = "63 - CAN2TX interrupts"]
FDCAN_CAL = 63,
#[doc = "64 - Arm® Cortex®-M7 Send"]
CM7_SEV_IT = 64,
#[doc = "68 - DMA2 Stream5"]
DMA2_STR5 = 68,
#[doc = "69 - DMA2 Stream6"]
DMA2_STR6 = 69,
#[doc = "70 - DMA2 Stream7"]
DMA2_STR7 = 70,
#[doc = "71 - USART6 global interrupt"]
USART6 = 71,
#[doc = "72 - I2C3 event interrupt"]
I2C3_EV = 72,
#[doc = "73 - I2C3 error interrupt"]
I2C3_ER = 73,
#[doc = "74 - OTG_HS out global interrupt"]
OTG_HS_EP1_OUT = 74,
#[doc = "75 - OTG_HS in global interrupt"]
OTG_HS_EP1_IN = 75,
#[doc = "76 - OTG_HS wakeup interrupt"]
OTG_HS_WKUP = 76,
#[doc = "77 - OTG_HS global interrupt"]
OTG_HS = 77,
#[doc = "78 - DCMI global interrupt"]
DCMI = 78,
#[doc = "79 - CRYP global interrupt"]
CRYP = 79,
#[doc = "80 - HASH and RNG"]
HASH_RNG = 80,
#[doc = "81 - Floating point unit interrupt"]
FPU = 81,
#[doc = "82 - UART7 global interrupt"]
UART7 = 82,
#[doc = "83 - UART8 global interrupt"]
UART8 = 83,
#[doc = "84 - SPI4 global interrupt"]
SPI4 = 84,
#[doc = "85 - SPI5 global interrupt"]
SPI5 = 85,
#[doc = "86 - SPI6 global interrupt"]
SPI6 = 86,
#[doc = "87 - SAI1 global interrupt"]
SAI1 = 87,
#[doc = "88 - LCD-TFT global interrupt"]
LTDC = 88,
#[doc = "89 - LCD-TFT error interrupt"]
LTDC_ER = 89,
#[doc = "90 - DMA2D global interrupt"]
DMA2D = 90,
#[doc = "91 - SAI2 global interrupt"]
SAI2 = 91,
#[doc = "92 - QuadSPI global interrupt"]
QUADSPI = 92,
#[doc = "93 - LPTIM1 global interrupt"]
LPTIM1 = 93,
#[doc = "94 - HDMI-CEC global interrupt"]
CEC = 94,
#[doc = "95 - I2C4 event interrupt"]
I2C4_EV = 95,
#[doc = "96 - I2C4 error interrupt"]
I2C4_ER = 96,
#[doc = "97 - SPDIFRX global interrupt"]
SPDIF = 97,
#[doc = "98 - OTG_FS out global interrupt"]
OTG_FS_EP1_OUT = 98,
#[doc = "99 - OTG_FS in global interrupt"]
OTG_FS_EP1_IN = 99,
#[doc = "100 - OTG_FS wakeup"]
OTG_FS_WKUP = 100,
#[doc = "101 - OTG_FS global interrupt"]
OTG_FS = 101,
#[doc = "102 - DMAMUX1 overrun interrupt"]
DMAMUX1_OV = 102,
#[doc = "103 - HRTIM1 master timer interrupt"]
HRTIM1_MST = 103,
#[doc = "104 - HRTIM1 timer A interrupt"]
HRTIM1_TIMA = 104,
#[doc = "105 - HRTIM1 timer B interrupt"]
HRTIM_TIMB = 105,
#[doc = "106 - HRTIM1 timer C interrupt"]
HRTIM1_TIMC = 106,
#[doc = "107 - HRTIM1 timer D interrupt"]
HRTIM1_TIMD = 107,
#[doc = "108 - HRTIM1 timer E interrupt"]
HRTIM_TIME = 108,
#[doc = "109 - HRTIM1 fault interrupt"]
HRTIM1_FLT = 109,
#[doc = "110 - DFSDM1 filter 0 interrupt"]
DFSDM1_FLT0 = 110,
#[doc = "111 - DFSDM1 filter 1 interrupt"]
DFSDM1_FLT1 = 111,
#[doc = "112 - DFSDM1 filter 2 interrupt"]
DFSDM1_FLT2 = 112,
#[doc = "113 - DFSDM1 filter 3 interrupt"]
DFSDM1_FLT3 = 113,
#[doc = "114 - SAI3 global interrupt"]
SAI3 = 114,
#[doc = "115 - SWPMI global interrupt"]
SWPMI1 = 115,
#[doc = "116 - TIM15 global interrupt"]
TIM15 = 116,
#[doc = "117 - TIM16 global interrupt"]
TIM16 = 117,
#[doc = "118 - TIM17 global interrupt"]
TIM17 = 118,
#[doc = "119 - MDIOS wakeup"]
MDIOS_WKUP = 119,
#[doc = "120 - MDIOS global interrupt"]
MDIOS = 120,
#[doc = "121 - JPEG global interrupt"]
JPEG = 121,
#[doc = "122 - MDMA"]
MDMA = 122,
#[doc = "123 - DSI Host global interrupt"]
DSI = 123,
#[doc = "124 - SDMMC global interrupt"]
SDMMC = 124,
#[doc = "125 - HSEM global interrupt 1"]
HSEM0 = 125,
#[doc = "127 - ADC3 global interrupt"]
ADC3 = 127,
#[doc = "128 - DMAMUX2 overrun interrupt"]
DMAMUX2_OVR = 128,
#[doc = "129 - BDMA channel 1 interrupt"]
BDMA_CH1 = 129,
#[doc = "130 - BDMA channel 2 interrupt"]
BDMA_CH2 = 130,
#[doc = "131 - BDMA channel 3 interrupt"]
BDMA_CH3 = 131,
#[doc = "132 - BDMA channel 4 interrupt"]
BDMA_CH4 = 132,
#[doc = "133 - BDMA channel 5 interrupt"]
BDMA_CH5 = 133,
#[doc = "134 - BDMA channel 6 interrupt"]
BDMA_CH6 = 134,
#[doc = "135 - BDMA channel 7 interrupt"]
BDMA_CH7 = 135,
#[doc = "136 - BDMA channel 8 interrupt"]
BDMA_CH8 = 136,
#[doc = "137 - COMP1 and COMP2"]
COMP = 137,
#[doc = "138 - LPTIM2 timer interrupt"]
LPTIM2 = 138,
#[doc = "139 - LPTIM2 timer interrupt"]
LPTIM3 = 139,
#[doc = "140 - LPTIM2 timer interrupt"]
LPTIM4 = 140,
#[doc = "141 - LPTIM2 timer interrupt"]
LPTIM5 = 141,
#[doc = "142 - LPUART global interrupt"]
LPUART = 142,
#[doc = "143 - Window Watchdog interrupt"]
WWDG1_RST = 143,
#[doc = "144 - Clock Recovery System globa"]
CRS = 144,
#[doc = "145 - ECC diagnostic global interrupt for all RAMECC controllers"]
RAMECC = 145,
#[doc = "146 - SAI4 global interrupt"]
SAI4 = 146,
#[doc = "148 - CPU2 hold"]
HOLD_CORE = 148,
#[doc = "149 - WKUP1 to WKUP6 pins"]
WKUP = 149,
}
unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
#[inline(always)]
fn number(self) -> u16 {
self as u16
}
}
#[doc = "COMP1"]
pub struct COMP1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for COMP1 {}
impl COMP1 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const comp1::RegisterBlock = 0x5800_3800 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const comp1::RegisterBlock {
Self::PTR
}
}
impl Deref for COMP1 {
type Target = comp1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for COMP1 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("COMP1").finish()
}
}
#[doc = "COMP1"]
pub mod comp1;
#[doc = "CRS"]
pub struct CRS {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for CRS {}
impl CRS {
#[doc = r"Pointer to the register block"]
pub const PTR: *const crs::RegisterBlock = 0x4000_8400 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const crs::RegisterBlock {
Self::PTR
}
}
impl Deref for CRS {
type Target = crs::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for CRS {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CRS").finish()
}
}
#[doc = "CRS"]
pub mod crs;
#[doc = "DAC"]
pub struct DAC {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for DAC {}
impl DAC {
#[doc = r"Pointer to the register block"]
pub const PTR: *const dac::RegisterBlock = 0x4000_7400 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const dac::RegisterBlock {
Self::PTR
}
}
impl Deref for DAC {
type Target = dac::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for DAC {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DAC").finish()
}
}
#[doc = "DAC"]
pub mod dac;
#[doc = "BDMA"]
pub struct BDMA {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for BDMA {}
impl BDMA {
#[doc = r"Pointer to the register block"]
pub const PTR: *const bdma::RegisterBlock = 0x5802_5400 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const bdma::RegisterBlock {
Self::PTR
}
}
impl Deref for BDMA {
type Target = bdma::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for BDMA {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("BDMA").finish()
}
}
#[doc = "BDMA"]
pub mod bdma;
#[doc = "DMA2D"]
pub struct DMA2D {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for DMA2D {}
impl DMA2D {
#[doc = r"Pointer to the register block"]
pub const PTR: *const dma2d::RegisterBlock = 0x5200_1000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const dma2d::RegisterBlock {
Self::PTR
}
}
impl Deref for DMA2D {
type Target = dma2d::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for DMA2D {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DMA2D").finish()
}
}
#[doc = "DMA2D"]
pub mod dma2d;
#[doc = "DMAMUX"]
pub struct DMAMUX2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for DMAMUX2 {}
impl DMAMUX2 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const dmamux2::RegisterBlock = 0x5802_5800 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const dmamux2::RegisterBlock {
Self::PTR
}
}
impl Deref for DMAMUX2 {
type Target = dmamux2::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for DMAMUX2 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DMAMUX2").finish()
}
}
#[doc = "DMAMUX"]
pub mod dmamux2;
#[doc = "FMC"]
pub struct FMC {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for FMC {}
impl FMC {
#[doc = r"Pointer to the register block"]
pub const PTR: *const fmc::RegisterBlock = 0x5200_4000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const fmc::RegisterBlock {
Self::PTR
}
}
impl Deref for FMC {
type Target = fmc::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for FMC {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("FMC").finish()
}
}
#[doc = "FMC"]
pub mod fmc;
#[doc = "CEC"]
pub struct CEC {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for CEC {}
impl CEC {
#[doc = r"Pointer to the register block"]
pub const PTR: *const cec::RegisterBlock = 0x4000_6c00 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const cec::RegisterBlock {
Self::PTR
}
}
impl Deref for CEC {
type Target = cec::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for CEC {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CEC").finish()
}
}
#[doc = "CEC"]
pub mod cec;
#[doc = "HSEM"]
pub struct HSEM {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for HSEM {}
impl HSEM {
#[doc = r"Pointer to the register block"]
pub const PTR: *const hsem::RegisterBlock = 0x5802_6400 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const hsem::RegisterBlock {
Self::PTR
}
}
impl Deref for HSEM {
type Target = hsem::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for HSEM {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("HSEM").finish()
}
}
#[doc = "HSEM"]
pub mod hsem;
#[doc = "I2C"]
pub struct I2C1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for I2C1 {}
impl I2C1 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const i2c1::RegisterBlock = 0x4000_5400 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const i2c1::RegisterBlock {
Self::PTR
}
}
impl Deref for I2C1 {
type Target = i2c1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for I2C1 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("I2C1").finish()
}
}
#[doc = "I2C"]
pub mod i2c1;
#[doc = "I2C"]
pub struct I2C2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for I2C2 {}
impl I2C2 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const i2c1::RegisterBlock = 0x4000_5800 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const i2c1::RegisterBlock {
Self::PTR
}
}
impl Deref for I2C2 {
type Target = i2c1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for I2C2 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("I2C2").finish()
}
}
#[doc = "I2C"]
pub use i2c1 as i2c2;
#[doc = "I2C"]
pub struct I2C3 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for I2C3 {}
impl I2C3 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const i2c1::RegisterBlock = 0x4000_5c00 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const i2c1::RegisterBlock {
Self::PTR
}
}
impl Deref for I2C3 {
type Target = i2c1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for I2C3 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("I2C3").finish()
}
}
#[doc = "I2C"]
pub use i2c1 as i2c3;
#[doc = "I2C"]
pub struct I2C4 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for I2C4 {}
impl I2C4 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const i2c1::RegisterBlock = 0x5800_1c00 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const i2c1::RegisterBlock {
Self::PTR
}
}
impl Deref for I2C4 {
type Target = i2c1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for I2C4 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("I2C4").finish()
}
}
#[doc = "I2C"]
pub use i2c1 as i2c4;
#[doc = "GPIO"]
pub struct GPIOA {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for GPIOA {}
impl GPIOA {
#[doc = r"Pointer to the register block"]
pub const PTR: *const gpioa::RegisterBlock = 0x5802_0000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const gpioa::RegisterBlock {
Self::PTR
}
}
impl Deref for GPIOA {
type Target = gpioa::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for GPIOA {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("GPIOA").finish()
}
}
#[doc = "GPIO"]
pub mod gpioa;
#[doc = "GPIO"]
pub struct GPIOB {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for GPIOB {}
impl GPIOB {
#[doc = r"Pointer to the register block"]
pub const PTR: *const gpioa::RegisterBlock = 0x5802_0400 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const gpioa::RegisterBlock {
Self::PTR
}
}
impl Deref for GPIOB {
type Target = gpioa::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for GPIOB {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("GPIOB").finish()
}
}
#[doc = "GPIO"]
pub use gpioa as gpiob;
#[doc = "GPIO"]
pub struct GPIOC {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for GPIOC {}
impl GPIOC {
#[doc = r"Pointer to the register block"]
pub const PTR: *const gpioa::RegisterBlock = 0x5802_0800 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const gpioa::RegisterBlock {
Self::PTR
}
}
impl Deref for GPIOC {
type Target = gpioa::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for GPIOC {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("GPIOC").finish()
}
}
#[doc = "GPIO"]
pub use gpioa as gpioc;
#[doc = "GPIO"]
pub struct GPIOD {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for GPIOD {}
impl GPIOD {
#[doc = r"Pointer to the register block"]
pub const PTR: *const gpioa::RegisterBlock = 0x5802_0c00 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const gpioa::RegisterBlock {
Self::PTR
}
}
impl Deref for GPIOD {
type Target = gpioa::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for GPIOD {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("GPIOD").finish()
}
}
#[doc = "GPIO"]
pub use gpioa as gpiod;
#[doc = "GPIO"]
pub struct GPIOE {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for GPIOE {}
impl GPIOE {
#[doc = r"Pointer to the register block"]
pub const PTR: *const gpioa::RegisterBlock = 0x5802_1000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const gpioa::RegisterBlock {
Self::PTR
}
}
impl Deref for GPIOE {
type Target = gpioa::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for GPIOE {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("GPIOE").finish()
}
}
#[doc = "GPIO"]
pub use gpioa as gpioe;
#[doc = "GPIO"]
pub struct GPIOF {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for GPIOF {}
impl GPIOF {
#[doc = r"Pointer to the register block"]
pub const PTR: *const gpioa::RegisterBlock = 0x5802_1400 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const gpioa::RegisterBlock {
Self::PTR
}
}
impl Deref for GPIOF {
type Target = gpioa::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for GPIOF {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("GPIOF").finish()
}
}
#[doc = "GPIO"]
pub use gpioa as gpiof;
#[doc = "GPIO"]
pub struct GPIOG {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for GPIOG {}
impl GPIOG {
#[doc = r"Pointer to the register block"]
pub const PTR: *const gpioa::RegisterBlock = 0x5802_1800 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const gpioa::RegisterBlock {
Self::PTR
}
}
impl Deref for GPIOG {
type Target = gpioa::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for GPIOG {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("GPIOG").finish()
}
}
#[doc = "GPIO"]
pub use gpioa as gpiog;
#[doc = "GPIO"]
pub struct GPIOH {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for GPIOH {}
impl GPIOH {
#[doc = r"Pointer to the register block"]
pub const PTR: *const gpioa::RegisterBlock = 0x5802_1c00 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const gpioa::RegisterBlock {
Self::PTR
}
}
impl Deref for GPIOH {
type Target = gpioa::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for GPIOH {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("GPIOH").finish()
}
}
#[doc = "GPIO"]
pub use gpioa as gpioh;
#[doc = "GPIO"]
pub struct GPIOI {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for GPIOI {}
impl GPIOI {
#[doc = r"Pointer to the register block"]
pub const PTR: *const gpioa::RegisterBlock = 0x5802_2000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const gpioa::RegisterBlock {
Self::PTR
}
}
impl Deref for GPIOI {
type Target = gpioa::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for GPIOI {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("GPIOI").finish()
}
}
#[doc = "GPIO"]
pub use gpioa as gpioi;
#[doc = "GPIO"]
pub struct GPIOJ {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for GPIOJ {}
impl GPIOJ {
#[doc = r"Pointer to the register block"]
pub const PTR: *const gpioa::RegisterBlock = 0x5802_2400 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const gpioa::RegisterBlock {
Self::PTR
}
}
impl Deref for GPIOJ {
type Target = gpioa::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for GPIOJ {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("GPIOJ").finish()
}
}
#[doc = "GPIO"]
pub use gpioa as gpioj;
#[doc = "GPIO"]
pub struct GPIOK {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for GPIOK {}
impl GPIOK {
#[doc = r"Pointer to the register block"]
pub const PTR: *const gpioa::RegisterBlock = 0x5802_2800 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const gpioa::RegisterBlock {
Self::PTR
}
}
impl Deref for GPIOK {
type Target = gpioa::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for GPIOK {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("GPIOK").finish()
}
}
#[doc = "GPIO"]
pub use gpioa as gpiok;
#[doc = "JPEG"]
pub struct JPEG {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for JPEG {}
impl JPEG {
#[doc = r"Pointer to the register block"]
pub const PTR: *const jpeg::RegisterBlock = 0x5200_3000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const jpeg::RegisterBlock {
Self::PTR
}
}
impl Deref for JPEG {
type Target = jpeg::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for JPEG {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("JPEG").finish()
}
}
#[doc = "JPEG"]
pub mod jpeg;
#[doc = "MDMA"]
pub struct MDMA {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for MDMA {}
impl MDMA {
#[doc = r"Pointer to the register block"]
pub const PTR: *const mdma::RegisterBlock = 0x5200_0000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const mdma::RegisterBlock {
Self::PTR
}
}
impl Deref for MDMA {
type Target = mdma::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for MDMA {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("MDMA").finish()
}
}
#[doc = "MDMA"]
pub mod mdma;
#[doc = "QUADSPI"]
pub struct QUADSPI {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for QUADSPI {}
impl QUADSPI {
#[doc = r"Pointer to the register block"]
pub const PTR: *const quadspi::RegisterBlock = 0x5200_5000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const quadspi::RegisterBlock {
Self::PTR
}
}
impl Deref for QUADSPI {
type Target = quadspi::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for QUADSPI {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("QUADSPI").finish()
}
}
#[doc = "QUADSPI"]
pub mod quadspi;
#[doc = "RNG"]
pub struct RNG {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for RNG {}
impl RNG {
#[doc = r"Pointer to the register block"]
pub const PTR: *const rng::RegisterBlock = 0x4802_1800 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const rng::RegisterBlock {
Self::PTR
}
}
impl Deref for RNG {
type Target = rng::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for RNG {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("RNG").finish()
}
}
#[doc = "RNG"]
pub mod rng;
#[doc = "RTC"]
pub struct RTC {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for RTC {}
impl RTC {
#[doc = r"Pointer to the register block"]
pub const PTR: *const rtc::RegisterBlock = 0x5800_4000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const rtc::RegisterBlock {
Self::PTR
}
}
impl Deref for RTC {
type Target = rtc::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for RTC {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("RTC").finish()
}
}
#[doc = "RTC"]
pub mod rtc;
#[doc = "SAI"]
pub struct SAI4 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SAI4 {}
impl SAI4 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const sai4::RegisterBlock = 0x5800_5400 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const sai4::RegisterBlock {
Self::PTR
}
}
impl Deref for SAI4 {
type Target = sai4::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for SAI4 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SAI4").finish()
}
}
#[doc = "SAI"]
pub mod sai4;
#[doc = "SAI"]
pub struct SAI1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SAI1 {}
impl SAI1 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const sai4::RegisterBlock = 0x4001_5800 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const sai4::RegisterBlock {
Self::PTR
}
}
impl Deref for SAI1 {
type Target = sai4::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for SAI1 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SAI1").finish()
}
}
#[doc = "SAI"]
pub use sai4 as sai1;
#[doc = "SAI"]
pub struct SAI2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SAI2 {}
impl SAI2 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const sai4::RegisterBlock = 0x4001_5c00 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const sai4::RegisterBlock {
Self::PTR
}
}
impl Deref for SAI2 {
type Target = sai4::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for SAI2 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SAI2").finish()
}
}
#[doc = "SAI"]
pub use sai4 as sai2;
#[doc = "SAI"]
pub struct SAI3 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SAI3 {}
impl SAI3 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const sai4::RegisterBlock = 0x4001_6000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const sai4::RegisterBlock {
Self::PTR
}
}
impl Deref for SAI3 {
type Target = sai4::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for SAI3 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SAI3").finish()
}
}
#[doc = "SAI"]
pub use sai4 as sai3;
#[doc = "SDMMC1"]
pub struct SDMMC1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SDMMC1 {}
impl SDMMC1 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const sdmmc1::RegisterBlock = 0x5200_7000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const sdmmc1::RegisterBlock {
Self::PTR
}
}
impl Deref for SDMMC1 {
type Target = sdmmc1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for SDMMC1 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SDMMC1").finish()
}
}
#[doc = "SDMMC1"]
pub mod sdmmc1;
#[doc = "SDMMC1"]
pub struct SDMMC2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SDMMC2 {}
impl SDMMC2 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const sdmmc1::RegisterBlock = 0x4802_2400 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const sdmmc1::RegisterBlock {
Self::PTR
}
}
impl Deref for SDMMC2 {
type Target = sdmmc1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for SDMMC2 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SDMMC2").finish()
}
}
#[doc = "SDMMC1"]
pub use sdmmc1 as sdmmc2;
#[doc = "VREFBUF"]
pub struct VREFBUF {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for VREFBUF {}
impl VREFBUF {
#[doc = r"Pointer to the register block"]
pub const PTR: *const vrefbuf::RegisterBlock = 0x5800_3c00 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const vrefbuf::RegisterBlock {
Self::PTR
}
}
impl Deref for VREFBUF {
type Target = vrefbuf::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for VREFBUF {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("VREFBUF").finish()
}
}
#[doc = "VREFBUF"]
pub mod vrefbuf;
#[doc = "IWDG"]
pub struct IWDG1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for IWDG1 {}
impl IWDG1 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const iwdg1::RegisterBlock = 0x5800_4800 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const iwdg1::RegisterBlock {
Self::PTR
}
}
impl Deref for IWDG1 {
type Target = iwdg1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for IWDG1 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IWDG1").finish()
}
}
#[doc = "IWDG"]
pub mod iwdg1;
#[doc = "IWDG"]
pub struct IWDG2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for IWDG2 {}
impl IWDG2 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const iwdg1::RegisterBlock = 0x5800_4c00 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const iwdg1::RegisterBlock {
Self::PTR
}
}
impl Deref for IWDG2 {
type Target = iwdg1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for IWDG2 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IWDG2").finish()
}
}
#[doc = "IWDG"]
pub use iwdg1 as iwdg2;
#[doc = "WWDG"]
pub struct WWDG1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for WWDG1 {}
impl WWDG1 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const wwdg1::RegisterBlock = 0x5000_3000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const wwdg1::RegisterBlock {
Self::PTR
}
}
impl Deref for WWDG1 {
type Target = wwdg1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for WWDG1 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("WWDG1").finish()
}
}
#[doc = "WWDG"]
pub mod wwdg1;
#[doc = "WWDG"]
pub struct WWDG2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for WWDG2 {}
impl WWDG2 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const wwdg1::RegisterBlock = 0x4000_2c00 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const wwdg1::RegisterBlock {
Self::PTR
}
}
impl Deref for WWDG2 {
type Target = wwdg1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for WWDG2 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("WWDG2").finish()
}
}
#[doc = "WWDG"]
pub use wwdg1 as wwdg2;
#[doc = "PWR"]
pub struct PWR {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for PWR {}
impl PWR {
#[doc = r"Pointer to the register block"]
pub const PTR: *const pwr::RegisterBlock = 0x5802_4800 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const pwr::RegisterBlock {
Self::PTR
}
}
impl Deref for PWR {
type Target = pwr::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for PWR {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("PWR").finish()
}
}
#[doc = "PWR"]
pub mod pwr;
#[doc = "Serial peripheral interface"]
pub struct SPI1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SPI1 {}
impl SPI1 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const spi1::RegisterBlock = 0x4001_3000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const spi1::RegisterBlock {
Self::PTR
}
}
impl Deref for SPI1 {
type Target = spi1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for SPI1 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SPI1").finish()
}
}
#[doc = "Serial peripheral interface"]
pub mod spi1;
#[doc = "Serial peripheral interface"]
pub struct SPI2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SPI2 {}
impl SPI2 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const spi1::RegisterBlock = 0x4000_3800 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const spi1::RegisterBlock {
Self::PTR
}
}
impl Deref for SPI2 {
type Target = spi1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for SPI2 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SPI2").finish()
}
}
#[doc = "Serial peripheral interface"]
pub use spi1 as spi2;
#[doc = "Serial peripheral interface"]
pub struct SPI3 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SPI3 {}
impl SPI3 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const spi1::RegisterBlock = 0x4000_3c00 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const spi1::RegisterBlock {
Self::PTR
}
}
impl Deref for SPI3 {
type Target = spi1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for SPI3 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SPI3").finish()
}
}
#[doc = "Serial peripheral interface"]
pub use spi1 as spi3;
#[doc = "Serial peripheral interface"]
pub struct SPI4 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SPI4 {}
impl SPI4 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const spi1::RegisterBlock = 0x4001_3400 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const spi1::RegisterBlock {
Self::PTR
}
}
impl Deref for SPI4 {
type Target = spi1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for SPI4 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SPI4").finish()
}
}
#[doc = "Serial peripheral interface"]
pub use spi1 as spi4;
#[doc = "Serial peripheral interface"]
pub struct SPI5 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SPI5 {}
impl SPI5 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const spi1::RegisterBlock = 0x4001_5000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const spi1::RegisterBlock {
Self::PTR
}
}
impl Deref for SPI5 {
type Target = spi1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for SPI5 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SPI5").finish()
}
}
#[doc = "Serial peripheral interface"]
pub use spi1 as spi5;
#[doc = "Serial peripheral interface"]
pub struct SPI6 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SPI6 {}
impl SPI6 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const spi1::RegisterBlock = 0x5800_1400 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const spi1::RegisterBlock {
Self::PTR
}
}
impl Deref for SPI6 {
type Target = spi1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for SPI6 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SPI6").finish()
}
}
#[doc = "Serial peripheral interface"]
pub use spi1 as spi6;
#[doc = "LCD-TFT Controller"]
pub struct LTDC {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for LTDC {}
impl LTDC {
#[doc = r"Pointer to the register block"]
pub const PTR: *const ltdc::RegisterBlock = 0x5000_1000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const ltdc::RegisterBlock {
Self::PTR
}
}
impl Deref for LTDC {
type Target = ltdc::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for LTDC {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("LTDC").finish()
}
}
#[doc = "LCD-TFT Controller"]
pub mod ltdc;
#[doc = "Receiver Interface"]
pub struct SPDIFRX {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SPDIFRX {}
impl SPDIFRX {
#[doc = r"Pointer to the register block"]
pub const PTR: *const spdifrx::RegisterBlock = 0x4000_4000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const spdifrx::RegisterBlock {
Self::PTR
}
}
impl Deref for SPDIFRX {
type Target = spdifrx::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for SPDIFRX {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SPDIFRX").finish()
}
}
#[doc = "Receiver Interface"]
pub mod spdifrx;
#[doc = "Analog to Digital Converter"]
pub struct ADC3 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for ADC3 {}
impl ADC3 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const adc3::RegisterBlock = 0x5802_6000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const adc3::RegisterBlock {
Self::PTR
}
}
impl Deref for ADC3 {
type Target = adc3::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for ADC3 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("ADC3").finish()
}
}
#[doc = "Analog to Digital Converter"]
pub mod adc3;
#[doc = "Analog to Digital Converter"]
pub struct ADC1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for ADC1 {}
impl ADC1 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const adc3::RegisterBlock = 0x4002_2000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const adc3::RegisterBlock {
Self::PTR
}
}
impl Deref for ADC1 {
type Target = adc3::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for ADC1 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("ADC1").finish()
}
}
#[doc = "Analog to Digital Converter"]
pub use adc3 as adc1;
#[doc = "Analog to Digital Converter"]
pub struct ADC2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for ADC2 {}
impl ADC2 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const adc3::RegisterBlock = 0x4002_2100 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const adc3::RegisterBlock {
Self::PTR
}
}
impl Deref for ADC2 {
type Target = adc3::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for ADC2 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("ADC2").finish()
}
}
#[doc = "Analog to Digital Converter"]
pub use adc3 as adc2;
#[doc = "Analog-to-Digital Converter"]
pub struct ADC3_COMMON {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for ADC3_COMMON {}
impl ADC3_COMMON {
#[doc = r"Pointer to the register block"]
pub const PTR: *const adc3_common::RegisterBlock = 0x5802_6300 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const adc3_common::RegisterBlock {
Self::PTR
}
}
impl Deref for ADC3_COMMON {
type Target = adc3_common::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for ADC3_COMMON {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("ADC3_COMMON").finish()
}
}
#[doc = "Analog-to-Digital Converter"]
pub mod adc3_common;
#[doc = "Analog-to-Digital Converter"]
pub struct ADC12_COMMON {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for ADC12_COMMON {}
impl ADC12_COMMON {
#[doc = r"Pointer to the register block"]
pub const PTR: *const adc3_common::RegisterBlock = 0x4002_2300 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const adc3_common::RegisterBlock {
Self::PTR
}
}
impl Deref for ADC12_COMMON {
type Target = adc3_common::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for ADC12_COMMON {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("ADC12_COMMON").finish()
}
}
#[doc = "Analog-to-Digital Converter"]
pub use adc3_common as adc12_common;
#[doc = "DMAMUX"]
pub struct DMAMUX1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for DMAMUX1 {}
impl DMAMUX1 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const dmamux1::RegisterBlock = 0x4002_0800 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const dmamux1::RegisterBlock {
Self::PTR
}
}
impl Deref for DMAMUX1 {
type Target = dmamux1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for DMAMUX1 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DMAMUX1").finish()
}
}
#[doc = "DMAMUX"]
pub mod dmamux1;
#[doc = "Cryptographic processor"]
pub struct CRC {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for CRC {}
impl CRC {
#[doc = r"Pointer to the register block"]
pub const PTR: *const crc::RegisterBlock = 0x5802_4c00 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const crc::RegisterBlock {
Self::PTR
}
}
impl Deref for CRC {
type Target = crc::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for CRC {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CRC").finish()
}
}
#[doc = "Cryptographic processor"]
pub mod crc;
#[doc = "Reset and clock control"]
pub struct RCC {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for RCC {}
impl RCC {
#[doc = r"Pointer to the register block"]
pub const PTR: *const rcc::RegisterBlock = 0x5802_4400 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const rcc::RegisterBlock {
Self::PTR
}
}
impl Deref for RCC {
type Target = rcc::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for RCC {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("RCC").finish()
}
}
#[doc = "Reset and clock control"]
pub mod rcc;
#[doc = "Low power timer"]
pub struct LPTIM1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for LPTIM1 {}
impl LPTIM1 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const lptim1::RegisterBlock = 0x4000_2400 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const lptim1::RegisterBlock {
Self::PTR
}
}
impl Deref for LPTIM1 {
type Target = lptim1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for LPTIM1 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("LPTIM1").finish()
}
}
#[doc = "Low power timer"]
pub mod lptim1;
#[doc = "Low power timer"]
pub struct LPTIM2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for LPTIM2 {}
impl LPTIM2 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const lptim1::RegisterBlock = 0x5800_2400 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const lptim1::RegisterBlock {
Self::PTR
}
}
impl Deref for LPTIM2 {
type Target = lptim1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for LPTIM2 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("LPTIM2").finish()
}
}
#[doc = "Low power timer"]
pub use lptim1 as lptim2;
#[doc = "Low power timer"]
pub struct LPTIM3 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for LPTIM3 {}
impl LPTIM3 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const lptim3::RegisterBlock = 0x5800_2800 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const lptim3::RegisterBlock {
Self::PTR
}
}
impl Deref for LPTIM3 {
type Target = lptim3::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for LPTIM3 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("LPTIM3").finish()
}
}
#[doc = "Low power timer"]
pub mod lptim3;
#[doc = "Low power timer"]
pub struct LPTIM4 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for LPTIM4 {}
impl LPTIM4 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const lptim3::RegisterBlock = 0x5800_2c00 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const lptim3::RegisterBlock {
Self::PTR
}
}
impl Deref for LPTIM4 {
type Target = lptim3::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for LPTIM4 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("LPTIM4").finish()
}
}
#[doc = "Low power timer"]
pub use lptim3 as lptim4;
#[doc = "Low power timer"]
pub struct LPTIM5 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for LPTIM5 {}
impl LPTIM5 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const lptim3::RegisterBlock = 0x5800_3000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const lptim3::RegisterBlock {
Self::PTR
}
}
impl Deref for LPTIM5 {
type Target = lptim3::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for LPTIM5 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("LPTIM5").finish()
}
}
#[doc = "Low power timer"]
pub use lptim3 as lptim5;
#[doc = "LPUART1"]
pub struct LPUART1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for LPUART1 {}
impl LPUART1 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const lpuart1::RegisterBlock = 0x5800_0c00 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const lpuart1::RegisterBlock {
Self::PTR
}
}
impl Deref for LPUART1 {
type Target = lpuart1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for LPUART1 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("LPUART1").finish()
}
}
#[doc = "LPUART1"]
pub mod lpuart1;
#[doc = "System configuration controller"]
pub struct SYSCFG {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SYSCFG {}
impl SYSCFG {
#[doc = r"Pointer to the register block"]
pub const PTR: *const syscfg::RegisterBlock = 0x5800_0400 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const syscfg::RegisterBlock {
Self::PTR
}
}
impl Deref for SYSCFG {
type Target = syscfg::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for SYSCFG {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SYSCFG").finish()
}
}
#[doc = "System configuration controller"]
pub mod syscfg;
#[doc = "External interrupt/event controller"]
pub struct EXTI {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for EXTI {}
impl EXTI {
#[doc = r"Pointer to the register block"]
pub const PTR: *const exti::RegisterBlock = 0x5800_0000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const exti::RegisterBlock {
Self::PTR
}
}
impl Deref for EXTI {
type Target = exti::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for EXTI {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("EXTI").finish()
}
}
#[doc = "External interrupt/event controller"]
pub mod exti;
#[doc = "DELAY_Block_SDMMC1"]
pub struct DELAY_BLOCK_SDMMC1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for DELAY_BLOCK_SDMMC1 {}
impl DELAY_BLOCK_SDMMC1 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const delay_block_sdmmc1::RegisterBlock = 0x5200_8000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const delay_block_sdmmc1::RegisterBlock {
Self::PTR
}
}
impl Deref for DELAY_BLOCK_SDMMC1 {
type Target = delay_block_sdmmc1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for DELAY_BLOCK_SDMMC1 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DELAY_BLOCK_SDMMC1").finish()
}
}
#[doc = "DELAY_Block_SDMMC1"]
pub mod delay_block_sdmmc1;
#[doc = "DELAY_Block_SDMMC1"]
pub struct DELAY_BLOCK_QUADSPI {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for DELAY_BLOCK_QUADSPI {}
impl DELAY_BLOCK_QUADSPI {
#[doc = r"Pointer to the register block"]
pub const PTR: *const delay_block_sdmmc1::RegisterBlock = 0x5200_6000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const delay_block_sdmmc1::RegisterBlock {
Self::PTR
}
}
impl Deref for DELAY_BLOCK_QUADSPI {
type Target = delay_block_sdmmc1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for DELAY_BLOCK_QUADSPI {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DELAY_BLOCK_QUADSPI").finish()
}
}
#[doc = "DELAY_Block_SDMMC1"]
pub use delay_block_sdmmc1 as delay_block_quadspi;
#[doc = "DELAY_Block_SDMMC1"]
pub struct DELAY_BLOCK_SDMMC2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for DELAY_BLOCK_SDMMC2 {}
impl DELAY_BLOCK_SDMMC2 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const delay_block_sdmmc1::RegisterBlock = 0x4802_2800 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const delay_block_sdmmc1::RegisterBlock {
Self::PTR
}
}
impl Deref for DELAY_BLOCK_SDMMC2 {
type Target = delay_block_sdmmc1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for DELAY_BLOCK_SDMMC2 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DELAY_BLOCK_SDMMC2").finish()
}
}
#[doc = "DELAY_Block_SDMMC1"]
pub use delay_block_sdmmc1 as delay_block_sdmmc2;
#[doc = "AXI interconnect registers"]
pub struct AXI {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for AXI {}
impl AXI {
#[doc = r"Pointer to the register block"]
pub const PTR: *const axi::RegisterBlock = 0x5100_0000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const axi::RegisterBlock {
Self::PTR
}
}
impl Deref for AXI {
type Target = axi::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for AXI {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("AXI").finish()
}
}
#[doc = "AXI interconnect registers"]
pub mod axi;
#[doc = "Hash processor"]
pub struct HASH {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for HASH {}
impl HASH {
#[doc = r"Pointer to the register block"]
pub const PTR: *const hash::RegisterBlock = 0x4802_1400 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const hash::RegisterBlock {
Self::PTR
}
}
impl Deref for HASH {
type Target = hash::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for HASH {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("HASH").finish()
}
}
#[doc = "Hash processor"]
pub mod hash;
#[doc = "Cryptographic processor"]
pub struct CRYP {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for CRYP {}
impl CRYP {
#[doc = r"Pointer to the register block"]
pub const PTR: *const cryp::RegisterBlock = 0x4802_1000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const cryp::RegisterBlock {
Self::PTR
}
}
impl Deref for CRYP {
type Target = cryp::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for CRYP {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CRYP").finish()
}
}
#[doc = "Cryptographic processor"]
pub mod cryp;
#[doc = "Digital camera interface"]
pub struct DCMI {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for DCMI {}
impl DCMI {
#[doc = r"Pointer to the register block"]
pub const PTR: *const dcmi::RegisterBlock = 0x4802_0000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const dcmi::RegisterBlock {
Self::PTR
}
}
impl Deref for DCMI {
type Target = dcmi::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for DCMI {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DCMI").finish()
}
}
#[doc = "Digital camera interface"]
pub mod dcmi;
#[doc = "USB 1 on the go high speed"]
pub struct OTG1_HS_GLOBAL {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for OTG1_HS_GLOBAL {}
impl OTG1_HS_GLOBAL {
#[doc = r"Pointer to the register block"]
pub const PTR: *const otg1_hs_global::RegisterBlock = 0x4004_0000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const otg1_hs_global::RegisterBlock {
Self::PTR
}
}
impl Deref for OTG1_HS_GLOBAL {
type Target = otg1_hs_global::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for OTG1_HS_GLOBAL {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("OTG1_HS_GLOBAL").finish()
}
}
#[doc = "USB 1 on the go high speed"]
pub mod otg1_hs_global;
#[doc = "USB 1 on the go high speed"]
pub struct OTG2_HS_GLOBAL {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for OTG2_HS_GLOBAL {}
impl OTG2_HS_GLOBAL {
#[doc = r"Pointer to the register block"]
pub const PTR: *const otg1_hs_global::RegisterBlock = 0x4008_0000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const otg1_hs_global::RegisterBlock {
Self::PTR
}
}
impl Deref for OTG2_HS_GLOBAL {
type Target = otg1_hs_global::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for OTG2_HS_GLOBAL {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("OTG2_HS_GLOBAL").finish()
}
}
#[doc = "USB 1 on the go high speed"]
pub use otg1_hs_global as otg2_hs_global;
#[doc = "USB 1 on the go high speed"]
pub struct OTG1_HS_HOST {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for OTG1_HS_HOST {}
impl OTG1_HS_HOST {
#[doc = r"Pointer to the register block"]
pub const PTR: *const otg1_hs_host::RegisterBlock = 0x4004_0400 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const otg1_hs_host::RegisterBlock {
Self::PTR
}
}
impl Deref for OTG1_HS_HOST {
type Target = otg1_hs_host::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for OTG1_HS_HOST {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("OTG1_HS_HOST").finish()
}
}
#[doc = "USB 1 on the go high speed"]
pub mod otg1_hs_host;
#[doc = "USB 1 on the go high speed"]
pub struct OTG2_HS_HOST {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for OTG2_HS_HOST {}
impl OTG2_HS_HOST {
#[doc = r"Pointer to the register block"]
pub const PTR: *const otg1_hs_host::RegisterBlock = 0x4008_0400 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const otg1_hs_host::RegisterBlock {
Self::PTR
}
}
impl Deref for OTG2_HS_HOST {
type Target = otg1_hs_host::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for OTG2_HS_HOST {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("OTG2_HS_HOST").finish()
}
}
#[doc = "USB 1 on the go high speed"]
pub use otg1_hs_host as otg2_hs_host;
#[doc = "USB 1 on the go high speed"]
pub struct OTG1_HS_DEVICE {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for OTG1_HS_DEVICE {}
impl OTG1_HS_DEVICE {
#[doc = r"Pointer to the register block"]
pub const PTR: *const otg1_hs_device::RegisterBlock = 0x4004_0800 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const otg1_hs_device::RegisterBlock {
Self::PTR
}
}
impl Deref for OTG1_HS_DEVICE {
type Target = otg1_hs_device::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for OTG1_HS_DEVICE {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("OTG1_HS_DEVICE").finish()
}
}
#[doc = "USB 1 on the go high speed"]
pub mod otg1_hs_device;
#[doc = "USB 1 on the go high speed"]
pub struct OTG2_HS_DEVICE {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for OTG2_HS_DEVICE {}
impl OTG2_HS_DEVICE {
#[doc = r"Pointer to the register block"]
pub const PTR: *const otg1_hs_device::RegisterBlock = 0x4008_0800 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const otg1_hs_device::RegisterBlock {
Self::PTR
}
}
impl Deref for OTG2_HS_DEVICE {
type Target = otg1_hs_device::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for OTG2_HS_DEVICE {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("OTG2_HS_DEVICE").finish()
}
}
#[doc = "USB 1 on the go high speed"]
pub use otg1_hs_device as otg2_hs_device;
#[doc = "USB 1 on the go high speed"]
pub struct OTG1_HS_PWRCLK {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for OTG1_HS_PWRCLK {}
impl OTG1_HS_PWRCLK {
#[doc = r"Pointer to the register block"]
pub const PTR: *const otg1_hs_pwrclk::RegisterBlock = 0x4004_0e00 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const otg1_hs_pwrclk::RegisterBlock {
Self::PTR
}
}
impl Deref for OTG1_HS_PWRCLK {
type Target = otg1_hs_pwrclk::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for OTG1_HS_PWRCLK {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("OTG1_HS_PWRCLK").finish()
}
}
#[doc = "USB 1 on the go high speed"]
pub mod otg1_hs_pwrclk;
#[doc = "USB 1 on the go high speed"]
pub struct OTG2_HS_PWRCLK {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for OTG2_HS_PWRCLK {}
impl OTG2_HS_PWRCLK {
#[doc = r"Pointer to the register block"]
pub const PTR: *const otg1_hs_pwrclk::RegisterBlock = 0x4008_0e00 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const otg1_hs_pwrclk::RegisterBlock {
Self::PTR
}
}
impl Deref for OTG2_HS_PWRCLK {
type Target = otg1_hs_pwrclk::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for OTG2_HS_PWRCLK {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("OTG2_HS_PWRCLK").finish()
}
}
#[doc = "USB 1 on the go high speed"]
pub use otg1_hs_pwrclk as otg2_hs_pwrclk;
#[doc = "Ethernet: media access control (MAC)"]
pub struct ETHERNET_MAC {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for ETHERNET_MAC {}
impl ETHERNET_MAC {
#[doc = r"Pointer to the register block"]
pub const PTR: *const ethernet_mac::RegisterBlock = 0x4002_8000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const ethernet_mac::RegisterBlock {
Self::PTR
}
}
impl Deref for ETHERNET_MAC {
type Target = ethernet_mac::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for ETHERNET_MAC {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("ETHERNET_MAC").finish()
}
}
#[doc = "Ethernet: media access control (MAC)"]
pub mod ethernet_mac;
#[doc = "DMA controller"]
pub struct DMA1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for DMA1 {}
impl DMA1 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const dma1::RegisterBlock = 0x4002_0000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const dma1::RegisterBlock {
Self::PTR
}
}
impl Deref for DMA1 {
type Target = dma1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for DMA1 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DMA1").finish()
}
}
#[doc = "DMA controller"]
pub mod dma1;
#[doc = "High Resolution Timer: Master Timers"]
pub struct HRTIM_MASTER {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for HRTIM_MASTER {}
impl HRTIM_MASTER {
#[doc = r"Pointer to the register block"]
pub const PTR: *const hrtim_master::RegisterBlock = 0x4001_7400 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const hrtim_master::RegisterBlock {
Self::PTR
}
}
impl Deref for HRTIM_MASTER {
type Target = hrtim_master::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for HRTIM_MASTER {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("HRTIM_MASTER").finish()
}
}
#[doc = "High Resolution Timer: Master Timers"]
pub mod hrtim_master;
#[doc = "High Resolution Timer: TIMA"]
pub struct HRTIM_TIMA {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for HRTIM_TIMA {}
impl HRTIM_TIMA {
#[doc = r"Pointer to the register block"]
pub const PTR: *const hrtim_tima::RegisterBlock = 0x4001_7480 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const hrtim_tima::RegisterBlock {
Self::PTR
}
}
impl Deref for HRTIM_TIMA {
type Target = hrtim_tima::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for HRTIM_TIMA {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("HRTIM_TIMA").finish()
}
}
#[doc = "High Resolution Timer: TIMA"]
pub mod hrtim_tima;
#[doc = "High Resolution Timer: TIMB"]
pub struct HRTIM_TIMB {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for HRTIM_TIMB {}
impl HRTIM_TIMB {
#[doc = r"Pointer to the register block"]
pub const PTR: *const hrtim_timb::RegisterBlock = 0x4001_7500 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const hrtim_timb::RegisterBlock {
Self::PTR
}
}
impl Deref for HRTIM_TIMB {
type Target = hrtim_timb::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for HRTIM_TIMB {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("HRTIM_TIMB").finish()
}
}
#[doc = "High Resolution Timer: TIMB"]
pub mod hrtim_timb;
#[doc = "High Resolution Timer: TIMC"]
pub struct HRTIM_TIMC {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for HRTIM_TIMC {}
impl HRTIM_TIMC {
#[doc = r"Pointer to the register block"]
pub const PTR: *const hrtim_timc::RegisterBlock = 0x4001_7580 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const hrtim_timc::RegisterBlock {
Self::PTR
}
}
impl Deref for HRTIM_TIMC {
type Target = hrtim_timc::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for HRTIM_TIMC {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("HRTIM_TIMC").finish()
}
}
#[doc = "High Resolution Timer: TIMC"]
pub mod hrtim_timc;
#[doc = "High Resolution Timer: TIMD"]
pub struct HRTIM_TIMD {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for HRTIM_TIMD {}
impl HRTIM_TIMD {
#[doc = r"Pointer to the register block"]
pub const PTR: *const hrtim_timd::RegisterBlock = 0x4001_7600 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const hrtim_timd::RegisterBlock {
Self::PTR
}
}
impl Deref for HRTIM_TIMD {
type Target = hrtim_timd::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for HRTIM_TIMD {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("HRTIM_TIMD").finish()
}
}
#[doc = "High Resolution Timer: TIMD"]
pub mod hrtim_timd;
#[doc = "High Resolution Timer: TIME"]
pub struct HRTIM_TIME {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for HRTIM_TIME {}
impl HRTIM_TIME {
#[doc = r"Pointer to the register block"]
pub const PTR: *const hrtim_time::RegisterBlock = 0x4001_7680 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const hrtim_time::RegisterBlock {
Self::PTR
}
}
impl Deref for HRTIM_TIME {
type Target = hrtim_time::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for HRTIM_TIME {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("HRTIM_TIME").finish()
}
}
#[doc = "High Resolution Timer: TIME"]
pub mod hrtim_time;
#[doc = "High Resolution Timer: Common functions"]
pub struct HRTIM_COMMON {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for HRTIM_COMMON {}
impl HRTIM_COMMON {
#[doc = r"Pointer to the register block"]
pub const PTR: *const hrtim_common::RegisterBlock = 0x4001_7780 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const hrtim_common::RegisterBlock {
Self::PTR
}
}
impl Deref for HRTIM_COMMON {
type Target = hrtim_common::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for HRTIM_COMMON {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("HRTIM_COMMON").finish()
}
}
#[doc = "High Resolution Timer: Common functions"]
pub mod hrtim_common;
#[doc = "Digital filter for sigma delta modulators"]
pub struct DFSDM {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for DFSDM {}
impl DFSDM {
#[doc = r"Pointer to the register block"]
pub const PTR: *const dfsdm::RegisterBlock = 0x4001_7000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const dfsdm::RegisterBlock {
Self::PTR
}
}
impl Deref for DFSDM {
type Target = dfsdm::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for DFSDM {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DFSDM").finish()
}
}
#[doc = "Digital filter for sigma delta modulators"]
pub mod dfsdm;
#[doc = "General-purpose-timers"]
pub struct TIM16 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM16 {}
impl TIM16 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const tim16::RegisterBlock = 0x4001_4400 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const tim16::RegisterBlock {
Self::PTR
}
}
impl Deref for TIM16 {
type Target = tim16::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for TIM16 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TIM16").finish()
}
}
#[doc = "General-purpose-timers"]
pub mod tim16;
#[doc = "General-purpose-timers"]
pub struct TIM17 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM17 {}
impl TIM17 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const tim17::RegisterBlock = 0x4001_4800 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const tim17::RegisterBlock {
Self::PTR
}
}
impl Deref for TIM17 {
type Target = tim17::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for TIM17 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TIM17").finish()
}
}
#[doc = "General-purpose-timers"]
pub mod tim17;
#[doc = "General purpose timers"]
pub struct TIM15 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM15 {}
impl TIM15 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const tim15::RegisterBlock = 0x4001_4000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const tim15::RegisterBlock {
Self::PTR
}
}
impl Deref for TIM15 {
type Target = tim15::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for TIM15 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TIM15").finish()
}
}
#[doc = "General purpose timers"]
pub mod tim15;
#[doc = "Universal synchronous asynchronous receiver transmitter"]
pub struct USART1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for USART1 {}
impl USART1 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const usart1::RegisterBlock = 0x4001_1000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const usart1::RegisterBlock {
Self::PTR
}
}
impl Deref for USART1 {
type Target = usart1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for USART1 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("USART1").finish()
}
}
#[doc = "Universal synchronous asynchronous receiver transmitter"]
pub mod usart1;
#[doc = "Universal synchronous asynchronous receiver transmitter"]
pub struct USART2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for USART2 {}
impl USART2 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const usart1::RegisterBlock = 0x4000_4400 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const usart1::RegisterBlock {
Self::PTR
}
}
impl Deref for USART2 {
type Target = usart1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for USART2 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("USART2").finish()
}
}
#[doc = "Universal synchronous asynchronous receiver transmitter"]
pub use usart1 as usart2;
#[doc = "Universal synchronous asynchronous receiver transmitter"]
pub struct USART3 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for USART3 {}
impl USART3 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const usart1::RegisterBlock = 0x4000_4800 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const usart1::RegisterBlock {
Self::PTR
}
}
impl Deref for USART3 {
type Target = usart1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for USART3 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("USART3").finish()
}
}
#[doc = "Universal synchronous asynchronous receiver transmitter"]
pub use usart1 as usart3;
#[doc = "Universal synchronous asynchronous receiver transmitter"]
pub struct UART4 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for UART4 {}
impl UART4 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const usart1::RegisterBlock = 0x4000_4c00 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const usart1::RegisterBlock {
Self::PTR
}
}
impl Deref for UART4 {
type Target = usart1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for UART4 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("UART4").finish()
}
}
#[doc = "Universal synchronous asynchronous receiver transmitter"]
pub use usart1 as uart4;
#[doc = "Universal synchronous asynchronous receiver transmitter"]
pub struct UART5 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for UART5 {}
impl UART5 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const usart1::RegisterBlock = 0x4000_5000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const usart1::RegisterBlock {
Self::PTR
}
}
impl Deref for UART5 {
type Target = usart1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for UART5 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("UART5").finish()
}
}
#[doc = "Universal synchronous asynchronous receiver transmitter"]
pub use usart1 as uart5;
#[doc = "Universal synchronous asynchronous receiver transmitter"]
pub struct USART6 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for USART6 {}
impl USART6 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const usart1::RegisterBlock = 0x4001_1400 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const usart1::RegisterBlock {
Self::PTR
}
}
impl Deref for USART6 {
type Target = usart1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for USART6 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("USART6").finish()
}
}
#[doc = "Universal synchronous asynchronous receiver transmitter"]
pub use usart1 as usart6;
#[doc = "Universal synchronous asynchronous receiver transmitter"]
pub struct UART7 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for UART7 {}
impl UART7 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const usart1::RegisterBlock = 0x4000_7800 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const usart1::RegisterBlock {
Self::PTR
}
}
impl Deref for UART7 {
type Target = usart1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for UART7 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("UART7").finish()
}
}
#[doc = "Universal synchronous asynchronous receiver transmitter"]
pub use usart1 as uart7;
#[doc = "Universal synchronous asynchronous receiver transmitter"]
pub struct UART8 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for UART8 {}
impl UART8 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const usart1::RegisterBlock = 0x4000_7c00 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const usart1::RegisterBlock {
Self::PTR
}
}
impl Deref for UART8 {
type Target = usart1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for UART8 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("UART8").finish()
}
}
#[doc = "Universal synchronous asynchronous receiver transmitter"]
pub use usart1 as uart8;
#[doc = "Advanced-timers"]
pub struct TIM1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM1 {}
impl TIM1 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const tim1::RegisterBlock = 0x4001_0000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const tim1::RegisterBlock {
Self::PTR
}
}
impl Deref for TIM1 {
type Target = tim1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for TIM1 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TIM1").finish()
}
}
#[doc = "Advanced-timers"]
pub mod tim1;
#[doc = "Advanced-timers"]
pub struct TIM8 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM8 {}
impl TIM8 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const tim1::RegisterBlock = 0x4001_0400 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const tim1::RegisterBlock {
Self::PTR
}
}
impl Deref for TIM8 {
type Target = tim1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for TIM8 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TIM8").finish()
}
}
#[doc = "Advanced-timers"]
pub use tim1 as tim8;
#[doc = "FDCAN1"]
pub struct FDCAN1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for FDCAN1 {}
impl FDCAN1 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const fdcan1::RegisterBlock = 0x4000_a000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const fdcan1::RegisterBlock {
Self::PTR
}
}
impl Deref for FDCAN1 {
type Target = fdcan1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for FDCAN1 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("FDCAN1").finish()
}
}
#[doc = "FDCAN1"]
pub mod fdcan1;
#[doc = "FDCAN1"]
pub struct FDCAN2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for FDCAN2 {}
impl FDCAN2 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const fdcan1::RegisterBlock = 0x4000_a400 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const fdcan1::RegisterBlock {
Self::PTR
}
}
impl Deref for FDCAN2 {
type Target = fdcan1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for FDCAN2 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("FDCAN2").finish()
}
}
#[doc = "FDCAN1"]
pub use fdcan1 as fdcan2;
#[doc = "CCU registers"]
pub struct CAN_CCU {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for CAN_CCU {}
impl CAN_CCU {
#[doc = r"Pointer to the register block"]
pub const PTR: *const can_ccu::RegisterBlock = 0x4000_a800 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const can_ccu::RegisterBlock {
Self::PTR
}
}
impl Deref for CAN_CCU {
type Target = can_ccu::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for CAN_CCU {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CAN_CCU").finish()
}
}
#[doc = "CCU registers"]
pub mod can_ccu;
#[doc = "Management data input/output slave"]
pub struct MDIOS {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for MDIOS {}
impl MDIOS {
#[doc = r"Pointer to the register block"]
pub const PTR: *const mdios::RegisterBlock = 0x4000_9400 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const mdios::RegisterBlock {
Self::PTR
}
}
impl Deref for MDIOS {
type Target = mdios::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for MDIOS {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("MDIOS").finish()
}
}
#[doc = "Management data input/output slave"]
pub mod mdios;
#[doc = "Operational amplifiers"]
pub struct OPAMP {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for OPAMP {}
impl OPAMP {
#[doc = r"Pointer to the register block"]
pub const PTR: *const opamp::RegisterBlock = 0x4000_9000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const opamp::RegisterBlock {
Self::PTR
}
}
impl Deref for OPAMP {
type Target = opamp::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for OPAMP {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("OPAMP").finish()
}
}
#[doc = "Operational amplifiers"]
pub mod opamp;
#[doc = "Single Wire Protocol Master Interface"]
pub struct SWPMI {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SWPMI {}
impl SWPMI {
#[doc = r"Pointer to the register block"]
pub const PTR: *const swpmi::RegisterBlock = 0x4000_8800 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const swpmi::RegisterBlock {
Self::PTR
}
}
impl Deref for SWPMI {
type Target = swpmi::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for SWPMI {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SWPMI").finish()
}
}
#[doc = "Single Wire Protocol Master Interface"]
pub mod swpmi;
#[doc = "General purpose timers"]
pub struct TIM2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM2 {}
impl TIM2 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const tim2::RegisterBlock = 0x4000_0000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const tim2::RegisterBlock {
Self::PTR
}
}
impl Deref for TIM2 {
type Target = tim2::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for TIM2 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TIM2").finish()
}
}
#[doc = "General purpose timers"]
pub mod tim2;
#[doc = "General purpose timers"]
pub struct TIM3 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM3 {}
impl TIM3 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const tim3::RegisterBlock = 0x4000_0400 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const tim3::RegisterBlock {
Self::PTR
}
}
impl Deref for TIM3 {
type Target = tim3::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for TIM3 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TIM3").finish()
}
}
#[doc = "General purpose timers"]
pub mod tim3;
#[doc = "General purpose timers"]
pub struct TIM4 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM4 {}
impl TIM4 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const tim3::RegisterBlock = 0x4000_0800 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const tim3::RegisterBlock {
Self::PTR
}
}
impl Deref for TIM4 {
type Target = tim3::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for TIM4 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TIM4").finish()
}
}
#[doc = "General purpose timers"]
pub use tim3 as tim4;
#[doc = "General purpose timers"]
pub struct TIM5 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM5 {}
impl TIM5 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const tim2::RegisterBlock = 0x4000_0c00 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const tim2::RegisterBlock {
Self::PTR
}
}
impl Deref for TIM5 {
type Target = tim2::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for TIM5 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TIM5").finish()
}
}
#[doc = "General purpose timers"]
pub use tim2 as tim5;
#[doc = "General purpose timers"]
pub struct TIM12 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM12 {}
impl TIM12 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const tim12::RegisterBlock = 0x4000_1800 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const tim12::RegisterBlock {
Self::PTR
}
}
impl Deref for TIM12 {
type Target = tim12::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for TIM12 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TIM12").finish()
}
}
#[doc = "General purpose timers"]
pub mod tim12;
#[doc = "General purpose timers"]
pub struct TIM13 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM13 {}
impl TIM13 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const tim13::RegisterBlock = 0x4000_1c00 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const tim13::RegisterBlock {
Self::PTR
}
}
impl Deref for TIM13 {
type Target = tim13::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for TIM13 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TIM13").finish()
}
}
#[doc = "General purpose timers"]
pub mod tim13;
#[doc = "General purpose timers"]
pub struct TIM14 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM14 {}
impl TIM14 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const tim13::RegisterBlock = 0x4000_2000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const tim13::RegisterBlock {
Self::PTR
}
}
impl Deref for TIM14 {
type Target = tim13::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for TIM14 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TIM14").finish()
}
}
#[doc = "General purpose timers"]
pub use tim13 as tim14;
#[doc = "Basic timers"]
pub struct TIM6 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM6 {}
impl TIM6 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const tim6::RegisterBlock = 0x4000_1000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const tim6::RegisterBlock {
Self::PTR
}
}
impl Deref for TIM6 {
type Target = tim6::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for TIM6 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TIM6").finish()
}
}
#[doc = "Basic timers"]
pub mod tim6;
#[doc = "Basic timers"]
pub struct TIM7 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM7 {}
impl TIM7 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const tim6::RegisterBlock = 0x4000_1400 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const tim6::RegisterBlock {
Self::PTR
}
}
impl Deref for TIM7 {
type Target = tim6::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for TIM7 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TIM7").finish()
}
}
#[doc = "Basic timers"]
pub use tim6 as tim7;
#[doc = "Microcontroller Debug Unit"]
pub struct DBGMCU {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for DBGMCU {}
impl DBGMCU {
#[doc = r"Pointer to the register block"]
pub const PTR: *const dbgmcu::RegisterBlock = 0x5c00_1000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const dbgmcu::RegisterBlock {
Self::PTR
}
}
impl Deref for DBGMCU {
type Target = dbgmcu::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for DBGMCU {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DBGMCU").finish()
}
}
#[doc = "Microcontroller Debug Unit"]
pub mod dbgmcu;
#[doc = "SysTick timer"]
pub struct STK {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for STK {}
impl STK {
#[doc = r"Pointer to the register block"]
pub const PTR: *const stk::RegisterBlock = 0xe000_e010 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const stk::RegisterBlock {
Self::PTR
}
}
impl Deref for STK {
type Target = stk::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for STK {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("STK").finish()
}
}
#[doc = "SysTick timer"]
pub mod stk;
#[doc = "Nested vectored interrupt controller"]
pub struct NVIC_STIR {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for NVIC_STIR {}
impl NVIC_STIR {
#[doc = r"Pointer to the register block"]
pub const PTR: *const nvic_stir::RegisterBlock = 0xe000_ef00 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const nvic_stir::RegisterBlock {
Self::PTR
}
}
impl Deref for NVIC_STIR {
type Target = nvic_stir::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for NVIC_STIR {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("NVIC_STIR").finish()
}
}
#[doc = "Nested vectored interrupt controller"]
pub mod nvic_stir;
#[doc = "Floating point unit CPACR"]
pub struct FPU_CPACR {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for FPU_CPACR {}
impl FPU_CPACR {
#[doc = r"Pointer to the register block"]
pub const PTR: *const fpu_cpacr::RegisterBlock = 0xe000_ed88 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const fpu_cpacr::RegisterBlock {
Self::PTR
}
}
impl Deref for FPU_CPACR {
type Target = fpu_cpacr::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for FPU_CPACR {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("FPU_CPACR").finish()
}
}
#[doc = "Floating point unit CPACR"]
pub mod fpu_cpacr;
#[doc = "System control block ACTLR"]
pub struct SCB_ACTRL {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SCB_ACTRL {}
impl SCB_ACTRL {
#[doc = r"Pointer to the register block"]
pub const PTR: *const scb_actrl::RegisterBlock = 0xe000_e008 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const scb_actrl::RegisterBlock {
Self::PTR
}
}
impl Deref for SCB_ACTRL {
type Target = scb_actrl::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for SCB_ACTRL {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SCB_ACTRL").finish()
}
}
#[doc = "System control block ACTLR"]
pub mod scb_actrl;
#[doc = "Processor features"]
pub struct PF {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for PF {}
impl PF {
#[doc = r"Pointer to the register block"]
pub const PTR: *const pf::RegisterBlock = 0xe000_ed78 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const pf::RegisterBlock {
Self::PTR
}
}
impl Deref for PF {
type Target = pf::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for PF {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("PF").finish()
}
}
#[doc = "Processor features"]
pub mod pf;
#[doc = "Access control"]
pub struct AC {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for AC {}
impl AC {
#[doc = r"Pointer to the register block"]
pub const PTR: *const ac::RegisterBlock = 0xe000_ef90 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const ac::RegisterBlock {
Self::PTR
}
}
impl Deref for AC {
type Target = ac::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for AC {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("AC").finish()
}
}
#[doc = "Access control"]
pub mod ac;
#[doc = "accelerator - control register (ART_CTR)"]
pub struct ART {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for ART {}
impl ART {
#[doc = r"Pointer to the register block"]
pub const PTR: *const art::RegisterBlock = 0x4002_4400 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const art::RegisterBlock {
Self::PTR
}
}
impl Deref for ART {
type Target = art::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for ART {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("ART").finish()
}
}
#[doc = "accelerator - control register (ART_CTR)"]
pub mod art;
#[doc = "DMA controller"]
pub struct DMA2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for DMA2 {}
impl DMA2 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const dma1::RegisterBlock = 0x4002_0400 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const dma1::RegisterBlock {
Self::PTR
}
}
impl Deref for DMA2 {
type Target = dma1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for DMA2 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DMA2").finish()
}
}
#[doc = "DMA controller"]
pub use dma1 as dma2;
#[doc = "Ethernet DMA"]
pub struct ETHERNET_DMA {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for ETHERNET_DMA {}
impl ETHERNET_DMA {
#[doc = r"Pointer to the register block"]
pub const PTR: *const ethernet_dma::RegisterBlock = 0x4002_9000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const ethernet_dma::RegisterBlock {
Self::PTR
}
}
impl Deref for ETHERNET_DMA {
type Target = ethernet_dma::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for ETHERNET_DMA {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("ETHERNET_DMA").finish()
}
}
#[doc = "Ethernet DMA"]
pub mod ethernet_dma;
#[doc = "Ethernet MTL"]
pub struct ETHERNET_MTL {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for ETHERNET_MTL {}
impl ETHERNET_MTL {
#[doc = r"Pointer to the register block"]
pub const PTR: *const ethernet_mtl::RegisterBlock = 0x4002_8c00 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const ethernet_mtl::RegisterBlock {
Self::PTR
}
}
impl Deref for ETHERNET_MTL {
type Target = ethernet_mtl::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for ETHERNET_MTL {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("ETHERNET_MTL").finish()
}
}
#[doc = "Ethernet MTL"]
pub mod ethernet_mtl;
#[doc = "MIPI DSI Host"]
pub struct DSIHOST {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for DSIHOST {}
impl DSIHOST {
#[doc = r"Pointer to the register block"]
pub const PTR: *const dsihost::RegisterBlock = 0x5000_0000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const dsihost::RegisterBlock {
Self::PTR
}
}
impl Deref for DSIHOST {
type Target = dsihost::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for DSIHOST {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DSIHOST").finish()
}
}
#[doc = "MIPI DSI Host"]
pub mod dsihost;
#[doc = "Embedded Flash Memory"]
pub struct FLASH {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for FLASH {}
impl FLASH {
#[doc = r"Pointer to the register block"]
pub const PTR: *const flash::RegisterBlock = 0x5200_2000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const flash::RegisterBlock {
Self::PTR
}
}
impl Deref for FLASH {
type Target = flash::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for FLASH {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("FLASH").finish()
}
}
#[doc = "Embedded Flash Memory"]
pub mod flash;
#[doc = "RAM ECC monitoring"]
pub struct RAMECC1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for RAMECC1 {}
impl RAMECC1 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const ramecc1::RegisterBlock = 0x5200_9000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const ramecc1::RegisterBlock {
Self::PTR
}
}
impl Deref for RAMECC1 {
type Target = ramecc1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for RAMECC1 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("RAMECC1").finish()
}
}
#[doc = "RAM ECC monitoring"]
pub mod ramecc1;
#[doc = "RAM ECC monitoring"]
pub struct RAMECC2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for RAMECC2 {}
impl RAMECC2 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const ramecc1::RegisterBlock = 0x4802_3000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const ramecc1::RegisterBlock {
Self::PTR
}
}
impl Deref for RAMECC2 {
type Target = ramecc1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for RAMECC2 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("RAMECC2").finish()
}
}
#[doc = "RAM ECC monitoring"]
pub use ramecc1 as ramecc2;
#[doc = "RAM ECC monitoring"]
pub struct RAMECC3 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for RAMECC3 {}
impl RAMECC3 {
#[doc = r"Pointer to the register block"]
pub const PTR: *const ramecc3::RegisterBlock = 0x5802_7000 as *const _;
#[doc = r"Return the pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const ramecc3::RegisterBlock {
Self::PTR
}
}
impl Deref for RAMECC3 {
type Target = ramecc3::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for RAMECC3 {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("RAMECC3").finish()
}
}
#[doc = "RAM ECC monitoring"]
pub mod ramecc3;
#[no_mangle]
static mut DEVICE_PERIPHERALS: bool = false;
#[doc = r"All the peripherals"]
#[allow(non_snake_case)]
pub struct Peripherals {
#[doc = "COMP1"]
pub COMP1: COMP1,
#[doc = "CRS"]
pub CRS: CRS,
#[doc = "DAC"]
pub DAC: DAC,
#[doc = "BDMA"]
pub BDMA: BDMA,
#[doc = "DMA2D"]
pub DMA2D: DMA2D,
#[doc = "DMAMUX2"]
pub DMAMUX2: DMAMUX2,
#[doc = "FMC"]
pub FMC: FMC,
#[doc = "CEC"]
pub CEC: CEC,
#[doc = "HSEM"]
pub HSEM: HSEM,
#[doc = "I2C1"]
pub I2C1: I2C1,
#[doc = "I2C2"]
pub I2C2: I2C2,
#[doc = "I2C3"]
pub I2C3: I2C3,
#[doc = "I2C4"]
pub I2C4: I2C4,
#[doc = "GPIOA"]
pub GPIOA: GPIOA,
#[doc = "GPIOB"]
pub GPIOB: GPIOB,
#[doc = "GPIOC"]
pub GPIOC: GPIOC,
#[doc = "GPIOD"]
pub GPIOD: GPIOD,
#[doc = "GPIOE"]
pub GPIOE: GPIOE,
#[doc = "GPIOF"]
pub GPIOF: GPIOF,
#[doc = "GPIOG"]
pub GPIOG: GPIOG,
#[doc = "GPIOH"]
pub GPIOH: GPIOH,
#[doc = "GPIOI"]
pub GPIOI: GPIOI,
#[doc = "GPIOJ"]
pub GPIOJ: GPIOJ,
#[doc = "GPIOK"]
pub GPIOK: GPIOK,
#[doc = "JPEG"]
pub JPEG: JPEG,
#[doc = "MDMA"]
pub MDMA: MDMA,
#[doc = "QUADSPI"]
pub QUADSPI: QUADSPI,
#[doc = "RNG"]
pub RNG: RNG,
#[doc = "RTC"]
pub RTC: RTC,
#[doc = "SAI4"]
pub SAI4: SAI4,
#[doc = "SAI1"]
pub SAI1: SAI1,
#[doc = "SAI2"]
pub SAI2: SAI2,
#[doc = "SAI3"]
pub SAI3: SAI3,
#[doc = "SDMMC1"]
pub SDMMC1: SDMMC1,
#[doc = "SDMMC2"]
pub SDMMC2: SDMMC2,
#[doc = "VREFBUF"]
pub VREFBUF: VREFBUF,
#[doc = "IWDG1"]
pub IWDG1: IWDG1,
#[doc = "IWDG2"]
pub IWDG2: IWDG2,
#[doc = "WWDG1"]
pub WWDG1: WWDG1,
#[doc = "WWDG2"]
pub WWDG2: WWDG2,
#[doc = "PWR"]
pub PWR: PWR,
#[doc = "SPI1"]
pub SPI1: SPI1,
#[doc = "SPI2"]
pub SPI2: SPI2,
#[doc = "SPI3"]
pub SPI3: SPI3,
#[doc = "SPI4"]
pub SPI4: SPI4,
#[doc = "SPI5"]
pub SPI5: SPI5,
#[doc = "SPI6"]
pub SPI6: SPI6,
#[doc = "LTDC"]
pub LTDC: LTDC,
#[doc = "SPDIFRX"]
pub SPDIFRX: SPDIFRX,
#[doc = "ADC3"]
pub ADC3: ADC3,
#[doc = "ADC1"]
pub ADC1: ADC1,
#[doc = "ADC2"]
pub ADC2: ADC2,
#[doc = "ADC3_COMMON"]
pub ADC3_COMMON: ADC3_COMMON,
#[doc = "ADC12_COMMON"]
pub ADC12_COMMON: ADC12_COMMON,
#[doc = "DMAMUX1"]
pub DMAMUX1: DMAMUX1,
#[doc = "CRC"]
pub CRC: CRC,
#[doc = "RCC"]
pub RCC: RCC,
#[doc = "LPTIM1"]
pub LPTIM1: LPTIM1,
#[doc = "LPTIM2"]
pub LPTIM2: LPTIM2,
#[doc = "LPTIM3"]
pub LPTIM3: LPTIM3,
#[doc = "LPTIM4"]
pub LPTIM4: LPTIM4,
#[doc = "LPTIM5"]
pub LPTIM5: LPTIM5,
#[doc = "LPUART1"]
pub LPUART1: LPUART1,
#[doc = "SYSCFG"]
pub SYSCFG: SYSCFG,
#[doc = "EXTI"]
pub EXTI: EXTI,
#[doc = "DELAY_BLOCK_SDMMC1"]
pub DELAY_BLOCK_SDMMC1: DELAY_BLOCK_SDMMC1,
#[doc = "DELAY_BLOCK_QUADSPI"]
pub DELAY_BLOCK_QUADSPI: DELAY_BLOCK_QUADSPI,
#[doc = "DELAY_BLOCK_SDMMC2"]
pub DELAY_BLOCK_SDMMC2: DELAY_BLOCK_SDMMC2,
#[doc = "AXI"]
pub AXI: AXI,
#[doc = "HASH"]
pub HASH: HASH,
#[doc = "CRYP"]
pub CRYP: CRYP,
#[doc = "DCMI"]
pub DCMI: DCMI,
#[doc = "OTG1_HS_GLOBAL"]
pub OTG1_HS_GLOBAL: OTG1_HS_GLOBAL,
#[doc = "OTG2_HS_GLOBAL"]
pub OTG2_HS_GLOBAL: OTG2_HS_GLOBAL,
#[doc = "OTG1_HS_HOST"]
pub OTG1_HS_HOST: OTG1_HS_HOST,
#[doc = "OTG2_HS_HOST"]
pub OTG2_HS_HOST: OTG2_HS_HOST,
#[doc = "OTG1_HS_DEVICE"]
pub OTG1_HS_DEVICE: OTG1_HS_DEVICE,
#[doc = "OTG2_HS_DEVICE"]
pub OTG2_HS_DEVICE: OTG2_HS_DEVICE,
#[doc = "OTG1_HS_PWRCLK"]
pub OTG1_HS_PWRCLK: OTG1_HS_PWRCLK,
#[doc = "OTG2_HS_PWRCLK"]
pub OTG2_HS_PWRCLK: OTG2_HS_PWRCLK,
#[doc = "ETHERNET_MAC"]
pub ETHERNET_MAC: ETHERNET_MAC,
#[doc = "DMA1"]
pub DMA1: DMA1,
#[doc = "HRTIM_MASTER"]
pub HRTIM_MASTER: HRTIM_MASTER,
#[doc = "HRTIM_TIMA"]
pub HRTIM_TIMA: HRTIM_TIMA,
#[doc = "HRTIM_TIMB"]
pub HRTIM_TIMB: HRTIM_TIMB,
#[doc = "HRTIM_TIMC"]
pub HRTIM_TIMC: HRTIM_TIMC,
#[doc = "HRTIM_TIMD"]
pub HRTIM_TIMD: HRTIM_TIMD,
#[doc = "HRTIM_TIME"]
pub HRTIM_TIME: HRTIM_TIME,
#[doc = "HRTIM_COMMON"]
pub HRTIM_COMMON: HRTIM_COMMON,
#[doc = "DFSDM"]
pub DFSDM: DFSDM,
#[doc = "TIM16"]
pub TIM16: TIM16,
#[doc = "TIM17"]
pub TIM17: TIM17,
#[doc = "TIM15"]
pub TIM15: TIM15,
#[doc = "USART1"]
pub USART1: USART1,
#[doc = "USART2"]
pub USART2: USART2,
#[doc = "USART3"]
pub USART3: USART3,
#[doc = "UART4"]
pub UART4: UART4,
#[doc = "UART5"]
pub UART5: UART5,
#[doc = "USART6"]
pub USART6: USART6,
#[doc = "UART7"]
pub UART7: UART7,
#[doc = "UART8"]
pub UART8: UART8,
#[doc = "TIM1"]
pub TIM1: TIM1,
#[doc = "TIM8"]
pub TIM8: TIM8,
#[doc = "FDCAN1"]
pub FDCAN1: FDCAN1,
#[doc = "FDCAN2"]
pub FDCAN2: FDCAN2,
#[doc = "CAN_CCU"]
pub CAN_CCU: CAN_CCU,
#[doc = "MDIOS"]
pub MDIOS: MDIOS,
#[doc = "OPAMP"]
pub OPAMP: OPAMP,
#[doc = "SWPMI"]
pub SWPMI: SWPMI,
#[doc = "TIM2"]
pub TIM2: TIM2,
#[doc = "TIM3"]
pub TIM3: TIM3,
#[doc = "TIM4"]
pub TIM4: TIM4,
#[doc = "TIM5"]
pub TIM5: TIM5,
#[doc = "TIM12"]
pub TIM12: TIM12,
#[doc = "TIM13"]
pub TIM13: TIM13,
#[doc = "TIM14"]
pub TIM14: TIM14,
#[doc = "TIM6"]
pub TIM6: TIM6,
#[doc = "TIM7"]
pub TIM7: TIM7,
#[doc = "DBGMCU"]
pub DBGMCU: DBGMCU,
#[doc = "STK"]
pub STK: STK,
#[doc = "NVIC_STIR"]
pub NVIC_STIR: NVIC_STIR,
#[doc = "FPU_CPACR"]
pub FPU_CPACR: FPU_CPACR,
#[doc = "SCB_ACTRL"]
pub SCB_ACTRL: SCB_ACTRL,
#[doc = "PF"]
pub PF: PF,
#[doc = "AC"]
pub AC: AC,
#[doc = "ART"]
pub ART: ART,
#[doc = "DMA2"]
pub DMA2: DMA2,
#[doc = "ETHERNET_DMA"]
pub ETHERNET_DMA: ETHERNET_DMA,
#[doc = "ETHERNET_MTL"]
pub ETHERNET_MTL: ETHERNET_MTL,
#[doc = "DSIHOST"]
pub DSIHOST: DSIHOST,
#[doc = "FLASH"]
pub FLASH: FLASH,
#[doc = "RAMECC1"]
pub RAMECC1: RAMECC1,
#[doc = "RAMECC2"]
pub RAMECC2: RAMECC2,
#[doc = "RAMECC3"]
pub RAMECC3: RAMECC3,
}
impl Peripherals {
#[doc = r"Returns all the peripherals *once*"]
#[inline]
pub fn take() -> Option<Self> {
cortex_m::interrupt::free(|_| {
if unsafe { DEVICE_PERIPHERALS } {
None
} else {
Some(unsafe { Peripherals::steal() })
}
})
}
#[doc = r"Unchecked version of `Peripherals::take`"]
#[inline]
pub unsafe fn steal() -> Self {
DEVICE_PERIPHERALS = true;
Peripherals {
COMP1: COMP1 {
_marker: PhantomData,
},
CRS: CRS {
_marker: PhantomData,
},
DAC: DAC {
_marker: PhantomData,
},
BDMA: BDMA {
_marker: PhantomData,
},
DMA2D: DMA2D {
_marker: PhantomData,
},
DMAMUX2: DMAMUX2 {
_marker: PhantomData,
},
FMC: FMC {
_marker: PhantomData,
},
CEC: CEC {
_marker: PhantomData,
},
HSEM: HSEM {
_marker: PhantomData,
},
I2C1: I2C1 {
_marker: PhantomData,
},
I2C2: I2C2 {
_marker: PhantomData,
},
I2C3: I2C3 {
_marker: PhantomData,
},
I2C4: I2C4 {
_marker: PhantomData,
},
GPIOA: GPIOA {
_marker: PhantomData,
},
GPIOB: GPIOB {
_marker: PhantomData,
},
GPIOC: GPIOC {
_marker: PhantomData,
},
GPIOD: GPIOD {
_marker: PhantomData,
},
GPIOE: GPIOE {
_marker: PhantomData,
},
GPIOF: GPIOF {
_marker: PhantomData,
},
GPIOG: GPIOG {
_marker: PhantomData,
},
GPIOH: GPIOH {
_marker: PhantomData,
},
GPIOI: GPIOI {
_marker: PhantomData,
},
GPIOJ: GPIOJ {
_marker: PhantomData,
},
GPIOK: GPIOK {
_marker: PhantomData,
},
JPEG: JPEG {
_marker: PhantomData,
},
MDMA: MDMA {
_marker: PhantomData,
},
QUADSPI: QUADSPI {
_marker: PhantomData,
},
RNG: RNG {
_marker: PhantomData,
},
RTC: RTC {
_marker: PhantomData,
},
SAI4: SAI4 {
_marker: PhantomData,
},
SAI1: SAI1 {
_marker: PhantomData,
},
SAI2: SAI2 {
_marker: PhantomData,
},
SAI3: SAI3 {
_marker: PhantomData,
},
SDMMC1: SDMMC1 {
_marker: PhantomData,
},
SDMMC2: SDMMC2 {
_marker: PhantomData,
},
VREFBUF: VREFBUF {
_marker: PhantomData,
},
IWDG1: IWDG1 {
_marker: PhantomData,
},
IWDG2: IWDG2 {
_marker: PhantomData,
},
WWDG1: WWDG1 {
_marker: PhantomData,
},
WWDG2: WWDG2 {
_marker: PhantomData,
},
PWR: PWR {
_marker: PhantomData,
},
SPI1: SPI1 {
_marker: PhantomData,
},
SPI2: SPI2 {
_marker: PhantomData,
},
SPI3: SPI3 {
_marker: PhantomData,
},
SPI4: SPI4 {
_marker: PhantomData,
},
SPI5: SPI5 {
_marker: PhantomData,
},
SPI6: SPI6 {
_marker: PhantomData,
},
LTDC: LTDC {
_marker: PhantomData,
},
SPDIFRX: SPDIFRX {
_marker: PhantomData,
},
ADC3: ADC3 {
_marker: PhantomData,
},
ADC1: ADC1 {
_marker: PhantomData,
},
ADC2: ADC2 {
_marker: PhantomData,
},
ADC3_COMMON: ADC3_COMMON {
_marker: PhantomData,
},
ADC12_COMMON: ADC12_COMMON {
_marker: PhantomData,
},
DMAMUX1: DMAMUX1 {
_marker: PhantomData,
},
CRC: CRC {
_marker: PhantomData,
},
RCC: RCC {
_marker: PhantomData,
},
LPTIM1: LPTIM1 {
_marker: PhantomData,
},
LPTIM2: LPTIM2 {
_marker: PhantomData,
},
LPTIM3: LPTIM3 {
_marker: PhantomData,
},
LPTIM4: LPTIM4 {
_marker: PhantomData,
},
LPTIM5: LPTIM5 {
_marker: PhantomData,
},
LPUART1: LPUART1 {
_marker: PhantomData,
},
SYSCFG: SYSCFG {
_marker: PhantomData,
},
EXTI: EXTI {
_marker: PhantomData,
},
DELAY_BLOCK_SDMMC1: DELAY_BLOCK_SDMMC1 {
_marker: PhantomData,
},
DELAY_BLOCK_QUADSPI: DELAY_BLOCK_QUADSPI {
_marker: PhantomData,
},
DELAY_BLOCK_SDMMC2: DELAY_BLOCK_SDMMC2 {
_marker: PhantomData,
},
AXI: AXI {
_marker: PhantomData,
},
HASH: HASH {
_marker: PhantomData,
},
CRYP: CRYP {
_marker: PhantomData,
},
DCMI: DCMI {
_marker: PhantomData,
},
OTG1_HS_GLOBAL: OTG1_HS_GLOBAL {
_marker: PhantomData,
},
OTG2_HS_GLOBAL: OTG2_HS_GLOBAL {
_marker: PhantomData,
},
OTG1_HS_HOST: OTG1_HS_HOST {
_marker: PhantomData,
},
OTG2_HS_HOST: OTG2_HS_HOST {
_marker: PhantomData,
},
OTG1_HS_DEVICE: OTG1_HS_DEVICE {
_marker: PhantomData,
},
OTG2_HS_DEVICE: OTG2_HS_DEVICE {
_marker: PhantomData,
},
OTG1_HS_PWRCLK: OTG1_HS_PWRCLK {
_marker: PhantomData,
},
OTG2_HS_PWRCLK: OTG2_HS_PWRCLK {
_marker: PhantomData,
},
ETHERNET_MAC: ETHERNET_MAC {
_marker: PhantomData,
},
DMA1: DMA1 {
_marker: PhantomData,
},
HRTIM_MASTER: HRTIM_MASTER {
_marker: PhantomData,
},
HRTIM_TIMA: HRTIM_TIMA {
_marker: PhantomData,
},
HRTIM_TIMB: HRTIM_TIMB {
_marker: PhantomData,
},
HRTIM_TIMC: HRTIM_TIMC {
_marker: PhantomData,
},
HRTIM_TIMD: HRTIM_TIMD {
_marker: PhantomData,
},
HRTIM_TIME: HRTIM_TIME {
_marker: PhantomData,
},
HRTIM_COMMON: HRTIM_COMMON {
_marker: PhantomData,
},
DFSDM: DFSDM {
_marker: PhantomData,
},
TIM16: TIM16 {
_marker: PhantomData,
},
TIM17: TIM17 {
_marker: PhantomData,
},
TIM15: TIM15 {
_marker: PhantomData,
},
USART1: USART1 {
_marker: PhantomData,
},
USART2: USART2 {
_marker: PhantomData,
},
USART3: USART3 {
_marker: PhantomData,
},
UART4: UART4 {
_marker: PhantomData,
},
UART5: UART5 {
_marker: PhantomData,
},
USART6: USART6 {
_marker: PhantomData,
},
UART7: UART7 {
_marker: PhantomData,
},
UART8: UART8 {
_marker: PhantomData,
},
TIM1: TIM1 {
_marker: PhantomData,
},
TIM8: TIM8 {
_marker: PhantomData,
},
FDCAN1: FDCAN1 {
_marker: PhantomData,
},
FDCAN2: FDCAN2 {
_marker: PhantomData,
},
CAN_CCU: CAN_CCU {
_marker: PhantomData,
},
MDIOS: MDIOS {
_marker: PhantomData,
},
OPAMP: OPAMP {
_marker: PhantomData,
},
SWPMI: SWPMI {
_marker: PhantomData,
},
TIM2: TIM2 {
_marker: PhantomData,
},
TIM3: TIM3 {
_marker: PhantomData,
},
TIM4: TIM4 {
_marker: PhantomData,
},
TIM5: TIM5 {
_marker: PhantomData,
},
TIM12: TIM12 {
_marker: PhantomData,
},
TIM13: TIM13 {
_marker: PhantomData,
},
TIM14: TIM14 {
_marker: PhantomData,
},
TIM6: TIM6 {
_marker: PhantomData,
},
TIM7: TIM7 {
_marker: PhantomData,
},
DBGMCU: DBGMCU {
_marker: PhantomData,
},
STK: STK {
_marker: PhantomData,
},
NVIC_STIR: NVIC_STIR {
_marker: PhantomData,
},
FPU_CPACR: FPU_CPACR {
_marker: PhantomData,
},
SCB_ACTRL: SCB_ACTRL {
_marker: PhantomData,
},
PF: PF {
_marker: PhantomData,
},
AC: AC {
_marker: PhantomData,
},
ART: ART {
_marker: PhantomData,
},
DMA2: DMA2 {
_marker: PhantomData,
},
ETHERNET_DMA: ETHERNET_DMA {
_marker: PhantomData,
},
ETHERNET_MTL: ETHERNET_MTL {
_marker: PhantomData,
},
DSIHOST: DSIHOST {
_marker: PhantomData,
},
FLASH: FLASH {
_marker: PhantomData,
},
RAMECC1: RAMECC1 {
_marker: PhantomData,
},
RAMECC2: RAMECC2 {
_marker: PhantomData,
},
RAMECC3: RAMECC3 {
_marker: PhantomData,
},
}
}
}