use core::marker::PhantomData;
use core::ops::Deref;
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 WWDG1();
fn PVD_PVM();
fn RTC_TAMP_STAMP_CSS_LSE();
fn RTC_WKUP();
fn FLASH();
fn RCC();
fn EXTI0();
fn EXTI1();
fn EXTI2();
fn EXTI3();
fn EXTI4();
fn DMA_STR0();
fn DMA_STR1();
fn DMA_STR2();
fn DMA_STR3();
fn DMA_STR4();
fn DMA_STR5();
fn DMA_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 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 SDMMC();
fn HSEM0();
fn ADC3();
fn DMAMUX2_OVR();
fn BDMA_CH0();
fn BDMA_CH1();
fn BDMA_CH2();
fn BDMA_CH3();
fn BDMA_CH4();
fn BDMA_CH5();
fn BDMA_CH6();
fn BDMA_CH7();
fn COMP();
fn LPTIM2();
fn LPTIM3();
fn LPTIM4();
fn LPTIM5();
fn LPUART();
fn WWDG1_RST();
fn CRS();
fn SAI4();
fn WKUP();
}
#[doc(hidden)]
#[repr(C)]
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: WWDG1 },
Vector { _handler: PVD_PVM },
Vector {
_handler: RTC_TAMP_STAMP_CSS_LSE,
},
Vector { _handler: RTC_WKUP },
Vector { _handler: FLASH },
Vector { _handler: RCC },
Vector { _handler: EXTI0 },
Vector { _handler: EXTI1 },
Vector { _handler: EXTI2 },
Vector { _handler: EXTI3 },
Vector { _handler: EXTI4 },
Vector { _handler: DMA_STR0 },
Vector { _handler: DMA_STR1 },
Vector { _handler: DMA_STR2 },
Vector { _handler: DMA_STR3 },
Vector { _handler: DMA_STR4 },
Vector { _handler: DMA_STR5 },
Vector { _handler: DMA_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 { _reserved: 0 },
Vector { _reserved: 0 },
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 { _reserved: 0 },
Vector { _handler: SDMMC },
Vector { _handler: HSEM0 },
Vector { _reserved: 0 },
Vector { _handler: ADC3 },
Vector { _handler: DMAMUX2_OVR },
Vector { _handler: BDMA_CH0 },
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: COMP },
Vector { _handler: LPTIM2 },
Vector { _handler: LPTIM3 },
Vector { _handler: LPTIM4 },
Vector { _handler: LPTIM5 },
Vector { _handler: LPUART },
Vector { _handler: WWDG1_RST },
Vector { _handler: CRS },
Vector { _reserved: 0 },
Vector { _handler: SAI4 },
Vector { _reserved: 0 },
Vector { _reserved: 0 },
Vector { _handler: WKUP },
];
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
#[repr(u16)]
pub enum Interrupt {
WWDG1 = 0,
PVD_PVM = 1,
RTC_TAMP_STAMP_CSS_LSE = 2,
RTC_WKUP = 3,
FLASH = 4,
RCC = 5,
EXTI0 = 6,
EXTI1 = 7,
EXTI2 = 8,
EXTI3 = 9,
EXTI4 = 10,
DMA_STR0 = 11,
DMA_STR1 = 12,
DMA_STR2 = 13,
DMA_STR3 = 14,
DMA_STR4 = 15,
DMA_STR5 = 16,
DMA_STR6 = 17,
ADC1_2 = 18,
FDCAN1_IT0 = 19,
FDCAN2_IT0 = 20,
FDCAN1_IT1 = 21,
FDCAN2_IT1 = 22,
EXTI9_5 = 23,
TIM1_BRK = 24,
TIM1_UP = 25,
TIM1_TRG_COM = 26,
TIM_CC = 27,
TIM2 = 28,
TIM3 = 29,
TIM4 = 30,
I2C1_EV = 31,
I2C1_ER = 32,
I2C2_EV = 33,
I2C2_ER = 34,
SPI1 = 35,
SPI2 = 36,
USART1 = 37,
USART2 = 38,
USART3 = 39,
EXTI15_10 = 40,
RTC_ALARM = 41,
TIM8_BRK_TIM12 = 43,
TIM8_UP_TIM13 = 44,
TIM8_TRG_COM_TIM14 = 45,
TIM8_CC = 46,
DMA1_STR7 = 47,
FMC = 48,
SDMMC1 = 49,
TIM5 = 50,
SPI3 = 51,
UART4 = 52,
UART5 = 53,
TIM6_DAC = 54,
TIM7 = 55,
DMA2_STR0 = 56,
DMA2_STR1 = 57,
DMA2_STR2 = 58,
DMA2_STR3 = 59,
DMA2_STR4 = 60,
ETH = 61,
ETH_WKUP = 62,
DMA2_STR5 = 68,
DMA2_STR6 = 69,
DMA2_STR7 = 70,
USART6 = 71,
I2C3_EV = 72,
I2C3_ER = 73,
OTG_HS_EP1_OUT = 74,
OTG_HS_EP1_IN = 75,
OTG_HS_WKUP = 76,
OTG_HS = 77,
DCMI = 78,
CRYP = 79,
HASH_RNG = 80,
FPU = 81,
UART7 = 82,
UART8 = 83,
SPI4 = 84,
SPI5 = 85,
SPI6 = 86,
SAI1 = 87,
LTDC = 88,
LTDC_ER = 89,
DMA2D = 90,
SAI2 = 91,
QUADSPI = 92,
LPTIM1 = 93,
CEC = 94,
I2C4_EV = 95,
I2C4_ER = 96,
SPDIF = 97,
OTG_FS_EP1_OUT = 98,
OTG_FS_EP1_IN = 99,
OTG_FS_WKUP = 100,
OTG_FS = 101,
DMAMUX1_OV = 102,
HRTIM1_MST = 103,
HRTIM1_TIMA = 104,
HRTIM_TIMB = 105,
HRTIM1_TIMC = 106,
HRTIM1_TIMD = 107,
HRTIM_TIME = 108,
HRTIM1_FLT = 109,
DFSDM1_FLT0 = 110,
DFSDM1_FLT1 = 111,
DFSDM1_FLT2 = 112,
DFSDM1_FLT3 = 113,
SAI3 = 114,
SWPMI1 = 115,
TIM15 = 116,
TIM16 = 117,
TIM17 = 118,
MDIOS_WKUP = 119,
MDIOS = 120,
JPEG = 121,
MDMA = 122,
SDMMC = 124,
HSEM0 = 125,
ADC3 = 127,
DMAMUX2_OVR = 128,
BDMA_CH0 = 129,
BDMA_CH1 = 130,
BDMA_CH2 = 131,
BDMA_CH3 = 132,
BDMA_CH4 = 133,
BDMA_CH5 = 134,
BDMA_CH6 = 135,
BDMA_CH7 = 136,
COMP = 137,
LPTIM2 = 138,
LPTIM3 = 139,
LPTIM4 = 140,
LPTIM5 = 141,
LPUART = 142,
WWDG1_RST = 143,
CRS = 144,
SAI4 = 146,
WKUP = 149,
}
unsafe impl cortex_m::interrupt::InterruptNumber for Interrupt {
#[inline(always)]
fn number(self) -> u16 {
self as u16
}
}
pub struct COMP1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for COMP1 {}
impl COMP1 {
pub const PTR: *const comp1::RegisterBlock = 0x5800_3800 as *const _;
#[inline(always)]
pub const fn ptr() -> *const comp1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/comp1/016d47c9/mod.rs"]
pub mod comp1;
pub struct CRS {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for CRS {}
impl CRS {
pub const PTR: *const crs::RegisterBlock = 0x4000_8400 as *const _;
#[inline(always)]
pub const fn ptr() -> *const crs::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/crs/22924f64/mod.rs"]
pub mod crs;
pub struct DAC {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for DAC {}
impl DAC {
pub const PTR: *const dac::RegisterBlock = 0x4000_7400 as *const _;
#[inline(always)]
pub const fn ptr() -> *const dac::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/dac/c003ecd7/mod.rs"]
pub mod dac;
pub struct BDMA {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for BDMA {}
impl BDMA {
pub const PTR: *const bdma::RegisterBlock = 0x5802_5400 as *const _;
#[inline(always)]
pub const fn ptr() -> *const bdma::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/bdma/9b1be780/mod.rs"]
pub mod bdma;
pub struct DMA2D {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for DMA2D {}
impl DMA2D {
pub const PTR: *const dma2d::RegisterBlock = 0x5200_1000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const dma2d::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/dma2d/dcc9f3f4/mod.rs"]
pub mod dma2d;
pub struct DMAMUX1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for DMAMUX1 {}
impl DMAMUX1 {
pub const PTR: *const dmamux1::RegisterBlock = 0x4002_0800 as *const _;
#[inline(always)]
pub const fn ptr() -> *const dmamux1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/dmamux1/b9277c9a/mod.rs"]
pub mod dmamux1;
pub struct DMAMUX2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for DMAMUX2 {}
impl DMAMUX2 {
pub const PTR: *const dmamux2::RegisterBlock = 0x5802_5800 as *const _;
#[inline(always)]
pub const fn ptr() -> *const dmamux2::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/dmamux2/bf3a7e8b/mod.rs"]
pub mod dmamux2;
pub struct FMC {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for FMC {}
impl FMC {
pub const PTR: *const fmc::RegisterBlock = 0x5200_4000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const fmc::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/fmc/9b6cc98c/mod.rs"]
pub mod fmc;
pub struct CEC {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for CEC {}
impl CEC {
pub const PTR: *const cec::RegisterBlock = 0x4000_6c00 as *const _;
#[inline(always)]
pub const fn ptr() -> *const cec::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/cec/a5c9afb9/mod.rs"]
pub mod cec;
pub struct HSEM {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for HSEM {}
impl HSEM {
pub const PTR: *const hsem::RegisterBlock = 0x5802_6400 as *const _;
#[inline(always)]
pub const fn ptr() -> *const hsem::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/hsem/eb87e9d6/mod.rs"]
pub mod hsem;
pub struct I2C1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for I2C1 {}
impl I2C1 {
pub const PTR: *const i2c1::RegisterBlock = 0x4000_5400 as *const _;
#[inline(always)]
pub const fn ptr() -> *const i2c1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/i2c1/ec49517f/mod.rs"]
pub mod i2c1;
pub struct I2C2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for I2C2 {}
impl I2C2 {
pub const PTR: *const i2c1::RegisterBlock = 0x4000_5800 as *const _;
#[inline(always)]
pub const fn ptr() -> *const i2c1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::i2c1 as i2c2;
pub struct I2C3 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for I2C3 {}
impl I2C3 {
pub const PTR: *const i2c1::RegisterBlock = 0x4000_5c00 as *const _;
#[inline(always)]
pub const fn ptr() -> *const i2c1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::i2c1 as i2c3;
pub struct I2C4 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for I2C4 {}
impl I2C4 {
pub const PTR: *const i2c1::RegisterBlock = 0x5800_1c00 as *const _;
#[inline(always)]
pub const fn ptr() -> *const i2c1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::i2c1 as i2c4;
pub struct GPIOA {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for GPIOA {}
impl GPIOA {
pub const PTR: *const gpioa::RegisterBlock = 0x5802_0000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const gpioa::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/gpioa/1ee28161/mod.rs"]
pub mod gpioa;
pub struct GPIOC {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for GPIOC {}
impl GPIOC {
pub const PTR: *const gpioc::RegisterBlock = 0x5802_0800 as *const _;
#[inline(always)]
pub const fn ptr() -> *const gpioc::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
impl Deref for GPIOC {
type Target = gpioc::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()
}
}
#[path = "../common/gpioc/834309be/mod.rs"]
pub mod gpioc;
pub struct GPIOD {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for GPIOD {}
impl GPIOD {
pub const PTR: *const gpioc::RegisterBlock = 0x5802_0c00 as *const _;
#[inline(always)]
pub const fn ptr() -> *const gpioc::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
impl Deref for GPIOD {
type Target = gpioc::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()
}
}
pub use self::gpioc as gpiod;
pub struct GPIOE {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for GPIOE {}
impl GPIOE {
pub const PTR: *const gpioc::RegisterBlock = 0x5802_1000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const gpioc::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
impl Deref for GPIOE {
type Target = gpioc::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()
}
}
pub use self::gpioc as gpioe;
pub struct GPIOF {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for GPIOF {}
impl GPIOF {
pub const PTR: *const gpioc::RegisterBlock = 0x5802_1400 as *const _;
#[inline(always)]
pub const fn ptr() -> *const gpioc::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
impl Deref for GPIOF {
type Target = gpioc::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()
}
}
pub use self::gpioc as gpiof;
pub struct GPIOG {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for GPIOG {}
impl GPIOG {
pub const PTR: *const gpioc::RegisterBlock = 0x5802_1800 as *const _;
#[inline(always)]
pub const fn ptr() -> *const gpioc::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
impl Deref for GPIOG {
type Target = gpioc::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()
}
}
pub use self::gpioc as gpiog;
pub struct GPIOH {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for GPIOH {}
impl GPIOH {
pub const PTR: *const gpioc::RegisterBlock = 0x5802_1c00 as *const _;
#[inline(always)]
pub const fn ptr() -> *const gpioc::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
impl Deref for GPIOH {
type Target = gpioc::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()
}
}
pub use self::gpioc as gpioh;
pub struct GPIOI {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for GPIOI {}
impl GPIOI {
pub const PTR: *const gpioc::RegisterBlock = 0x5802_2000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const gpioc::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
impl Deref for GPIOI {
type Target = gpioc::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()
}
}
pub use self::gpioc as gpioi;
pub struct GPIOJ {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for GPIOJ {}
impl GPIOJ {
pub const PTR: *const gpioc::RegisterBlock = 0x5802_2400 as *const _;
#[inline(always)]
pub const fn ptr() -> *const gpioc::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
impl Deref for GPIOJ {
type Target = gpioc::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()
}
}
pub use self::gpioc as gpioj;
pub struct GPIOK {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for GPIOK {}
impl GPIOK {
pub const PTR: *const gpioc::RegisterBlock = 0x5802_2800 as *const _;
#[inline(always)]
pub const fn ptr() -> *const gpioc::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
impl Deref for GPIOK {
type Target = gpioc::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()
}
}
pub use self::gpioc as gpiok;
pub struct JPEG {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for JPEG {}
impl JPEG {
pub const PTR: *const jpeg::RegisterBlock = 0x5200_3000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const jpeg::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/jpeg/8de0a782/mod.rs"]
pub mod jpeg;
pub struct MDMA {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for MDMA {}
impl MDMA {
pub const PTR: *const mdma::RegisterBlock = 0x5200_0000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const mdma::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/mdma/877f2068/mod.rs"]
pub mod mdma;
pub struct QUADSPI {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for QUADSPI {}
impl QUADSPI {
pub const PTR: *const quadspi::RegisterBlock = 0x5200_5000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const quadspi::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/quadspi/8d375b37/mod.rs"]
pub mod quadspi;
pub struct RNG {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for RNG {}
impl RNG {
pub const PTR: *const rng::RegisterBlock = 0x4802_1800 as *const _;
#[inline(always)]
pub const fn ptr() -> *const rng::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/rng/38349de2/mod.rs"]
pub mod rng;
pub struct RTC {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for RTC {}
impl RTC {
pub const PTR: *const rtc::RegisterBlock = 0x5800_4000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const rtc::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/rtc/9b483527/mod.rs"]
pub mod rtc;
pub struct SAI4 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SAI4 {}
impl SAI4 {
pub const PTR: *const sai4::RegisterBlock = 0x5800_5400 as *const _;
#[inline(always)]
pub const fn ptr() -> *const sai4::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/sai4/03458993/mod.rs"]
pub mod sai4;
pub struct SAI1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SAI1 {}
impl SAI1 {
pub const PTR: *const sai4::RegisterBlock = 0x4001_5800 as *const _;
#[inline(always)]
pub const fn ptr() -> *const sai4::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::sai4 as sai1;
pub struct SAI2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SAI2 {}
impl SAI2 {
pub const PTR: *const sai4::RegisterBlock = 0x4001_5c00 as *const _;
#[inline(always)]
pub const fn ptr() -> *const sai4::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::sai4 as sai2;
pub struct SAI3 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SAI3 {}
impl SAI3 {
pub const PTR: *const sai4::RegisterBlock = 0x4001_6000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const sai4::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::sai4 as sai3;
pub struct SDMMC1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SDMMC1 {}
impl SDMMC1 {
pub const PTR: *const sdmmc1::RegisterBlock = 0x5200_7000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const sdmmc1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/sdmmc1/52fa3c10/mod.rs"]
pub mod sdmmc1;
pub struct SDMMC2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SDMMC2 {}
impl SDMMC2 {
pub const PTR: *const sdmmc1::RegisterBlock = 0x4802_2400 as *const _;
#[inline(always)]
pub const fn ptr() -> *const sdmmc1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::sdmmc1 as sdmmc2;
pub struct VREFBUF {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for VREFBUF {}
impl VREFBUF {
pub const PTR: *const vrefbuf::RegisterBlock = 0x5800_3c00 as *const _;
#[inline(always)]
pub const fn ptr() -> *const vrefbuf::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/vrefbuf/4e3c8d6a/mod.rs"]
pub mod vrefbuf;
pub struct IWDG {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for IWDG {}
impl IWDG {
pub const PTR: *const iwdg::RegisterBlock = 0x5800_4800 as *const _;
#[inline(always)]
pub const fn ptr() -> *const iwdg::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
impl Deref for IWDG {
type Target = iwdg::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for IWDG {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IWDG").finish()
}
}
#[path = "../common/iwdg/aa4051d9/mod.rs"]
pub mod iwdg;
pub struct WWDG {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for WWDG {}
impl WWDG {
pub const PTR: *const wwdg::RegisterBlock = 0x5000_3000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const wwdg::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
impl Deref for WWDG {
type Target = wwdg::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for WWDG {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("WWDG").finish()
}
}
#[path = "../common/wwdg/c60c236d/mod.rs"]
pub mod wwdg;
pub struct PWR {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for PWR {}
impl PWR {
pub const PTR: *const pwr::RegisterBlock = 0x5802_4800 as *const _;
#[inline(always)]
pub const fn ptr() -> *const pwr::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/pwr/562a31e3/mod.rs"]
pub mod pwr;
pub struct SPI1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SPI1 {}
impl SPI1 {
pub const PTR: *const spi1::RegisterBlock = 0x4001_3000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const spi1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/spi1/01866a4f/mod.rs"]
pub mod spi1;
pub struct SPI2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SPI2 {}
impl SPI2 {
pub const PTR: *const spi1::RegisterBlock = 0x4000_3800 as *const _;
#[inline(always)]
pub const fn ptr() -> *const spi1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::spi1 as spi2;
pub struct SPI3 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SPI3 {}
impl SPI3 {
pub const PTR: *const spi1::RegisterBlock = 0x4000_3c00 as *const _;
#[inline(always)]
pub const fn ptr() -> *const spi1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::spi1 as spi3;
pub struct SPI4 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SPI4 {}
impl SPI4 {
pub const PTR: *const spi1::RegisterBlock = 0x4001_3400 as *const _;
#[inline(always)]
pub const fn ptr() -> *const spi1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::spi1 as spi4;
pub struct SPI5 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SPI5 {}
impl SPI5 {
pub const PTR: *const spi1::RegisterBlock = 0x4001_5000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const spi1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::spi1 as spi5;
pub struct SPI6 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SPI6 {}
impl SPI6 {
pub const PTR: *const spi1::RegisterBlock = 0x5800_1400 as *const _;
#[inline(always)]
pub const fn ptr() -> *const spi1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::spi1 as spi6;
pub struct LTDC {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for LTDC {}
impl LTDC {
pub const PTR: *const ltdc::RegisterBlock = 0x5000_1000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const ltdc::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/ltdc/c9282751/mod.rs"]
pub mod ltdc;
pub struct SPDIFRX {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SPDIFRX {}
impl SPDIFRX {
pub const PTR: *const spdifrx::RegisterBlock = 0x4000_4000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const spdifrx::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/spdifrx/109ecc1f/mod.rs"]
pub mod spdifrx;
pub struct RAMECC1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for RAMECC1 {}
impl RAMECC1 {
pub const PTR: *const ramecc1::RegisterBlock = 0x5200_9000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const ramecc1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/ramecc1/5e809758/mod.rs"]
pub mod ramecc1;
pub struct RAMECC2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for RAMECC2 {}
impl RAMECC2 {
pub const PTR: *const ramecc2::RegisterBlock = 0x4802_3000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const ramecc2::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
impl Deref for RAMECC2 {
type Target = ramecc2::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()
}
}
#[path = "../common/ramecc2/828b0d76/mod.rs"]
pub mod ramecc2;
pub struct RAMECC3 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for RAMECC3 {}
impl RAMECC3 {
pub const PTR: *const ramecc3::RegisterBlock = 0x5802_7000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const ramecc3::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/ramecc3/93cb7b74/mod.rs"]
pub mod ramecc3;
pub struct ADC3 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for ADC3 {}
impl ADC3 {
pub const PTR: *const adc3::RegisterBlock = 0x5802_6000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const adc3::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/adc3/c62f0c1a/mod.rs"]
pub mod adc3;
pub struct ADC1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for ADC1 {}
impl ADC1 {
pub const PTR: *const adc3::RegisterBlock = 0x4002_2000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const adc3::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::adc3 as adc1;
pub struct ADC2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for ADC2 {}
impl ADC2 {
pub const PTR: *const adc3::RegisterBlock = 0x4002_2100 as *const _;
#[inline(always)]
pub const fn ptr() -> *const adc3::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::adc3 as adc2;
pub struct ADC3_COMMON {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for ADC3_COMMON {}
impl ADC3_COMMON {
pub const PTR: *const adc3_common::RegisterBlock = 0x5802_6300 as *const _;
#[inline(always)]
pub const fn ptr() -> *const adc3_common::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/adc3_common/b1db1e6b/mod.rs"]
pub mod adc3_common;
pub struct ADC12_COMMON {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for ADC12_COMMON {}
impl ADC12_COMMON {
pub const PTR: *const adc3_common::RegisterBlock = 0x4002_2300 as *const _;
#[inline(always)]
pub const fn ptr() -> *const adc3_common::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::adc3_common as adc12_common;
pub struct CRC {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for CRC {}
impl CRC {
pub const PTR: *const crc::RegisterBlock = 0x5802_4c00 as *const _;
#[inline(always)]
pub const fn ptr() -> *const crc::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/crc/b0599f68/mod.rs"]
pub mod crc;
pub struct RCC {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for RCC {}
impl RCC {
pub const PTR: *const rcc::RegisterBlock = 0x5802_4400 as *const _;
#[inline(always)]
pub const fn ptr() -> *const rcc::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/rcc/10f4d52d/mod.rs"]
pub mod rcc;
pub struct LPTIM1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for LPTIM1 {}
impl LPTIM1 {
pub const PTR: *const lptim1::RegisterBlock = 0x4000_2400 as *const _;
#[inline(always)]
pub const fn ptr() -> *const lptim1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/lptim1/fb9e7c5f/mod.rs"]
pub mod lptim1;
pub struct LPTIM2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for LPTIM2 {}
impl LPTIM2 {
pub const PTR: *const lptim1::RegisterBlock = 0x5800_2400 as *const _;
#[inline(always)]
pub const fn ptr() -> *const lptim1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::lptim1 as lptim2;
pub struct LPTIM3 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for LPTIM3 {}
impl LPTIM3 {
pub const PTR: *const lptim3::RegisterBlock = 0x5800_2800 as *const _;
#[inline(always)]
pub const fn ptr() -> *const lptim3::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/lptim3/244ffb12/mod.rs"]
pub mod lptim3;
pub struct LPTIM4 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for LPTIM4 {}
impl LPTIM4 {
pub const PTR: *const lptim3::RegisterBlock = 0x5800_2c00 as *const _;
#[inline(always)]
pub const fn ptr() -> *const lptim3::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::lptim3 as lptim4;
pub struct LPTIM5 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for LPTIM5 {}
impl LPTIM5 {
pub const PTR: *const lptim3::RegisterBlock = 0x5800_3000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const lptim3::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::lptim3 as lptim5;
pub struct LPUART1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for LPUART1 {}
impl LPUART1 {
pub const PTR: *const lpuart1::RegisterBlock = 0x5800_0c00 as *const _;
#[inline(always)]
pub const fn ptr() -> *const lpuart1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/lpuart1/9b619862/mod.rs"]
pub mod lpuart1;
pub struct SYSCFG {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SYSCFG {}
impl SYSCFG {
pub const PTR: *const syscfg::RegisterBlock = 0x5800_0400 as *const _;
#[inline(always)]
pub const fn ptr() -> *const syscfg::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/syscfg/1ed3e890/mod.rs"]
pub mod syscfg;
pub struct EXTI {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for EXTI {}
impl EXTI {
pub const PTR: *const exti::RegisterBlock = 0x5800_0000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const exti::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/exti/e78bc06a/mod.rs"]
pub mod exti;
pub struct DELAY_BLOCK_SDMMC1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for DELAY_BLOCK_SDMMC1 {}
impl DELAY_BLOCK_SDMMC1 {
pub const PTR: *const delay_block_sdmmc1::RegisterBlock = 0x5200_8000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const delay_block_sdmmc1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/delay_block_sdmmc1/d874c966/mod.rs"]
pub mod delay_block_sdmmc1;
pub struct DELAY_BLOCK_QUADSPI {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for DELAY_BLOCK_QUADSPI {}
impl DELAY_BLOCK_QUADSPI {
pub const PTR: *const delay_block_sdmmc1::RegisterBlock = 0x5200_6000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const delay_block_sdmmc1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::delay_block_sdmmc1 as delay_block_quadspi;
pub struct DELAY_BLOCK_SDMMC2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for DELAY_BLOCK_SDMMC2 {}
impl DELAY_BLOCK_SDMMC2 {
pub const PTR: *const delay_block_sdmmc1::RegisterBlock = 0x4802_2800 as *const _;
#[inline(always)]
pub const fn ptr() -> *const delay_block_sdmmc1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::delay_block_sdmmc1 as delay_block_sdmmc2;
pub struct FLASH {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for FLASH {}
impl FLASH {
pub const PTR: *const flash::RegisterBlock = 0x5200_2000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const flash::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/flash/2e1f71fa/mod.rs"]
pub mod flash;
pub struct AXI {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for AXI {}
impl AXI {
pub const PTR: *const axi::RegisterBlock = 0x5100_0000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const axi::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/axi/c1c5e047/mod.rs"]
pub mod axi;
pub struct HASH {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for HASH {}
impl HASH {
pub const PTR: *const hash::RegisterBlock = 0x4802_1400 as *const _;
#[inline(always)]
pub const fn ptr() -> *const hash::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/hash/4f260009/mod.rs"]
pub mod hash;
pub struct CRYP {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for CRYP {}
impl CRYP {
pub const PTR: *const cryp::RegisterBlock = 0x4802_1000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const cryp::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/cryp/cb5712f8/mod.rs"]
pub mod cryp;
pub struct DCMI {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for DCMI {}
impl DCMI {
pub const PTR: *const dcmi::RegisterBlock = 0x4802_0000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const dcmi::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/dcmi/c11c4341/mod.rs"]
pub mod dcmi;
pub struct OTG1_HS_GLOBAL {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for OTG1_HS_GLOBAL {}
impl OTG1_HS_GLOBAL {
pub const PTR: *const otg1_hs_global::RegisterBlock = 0x4004_0000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const otg1_hs_global::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/otg1_hs_global/448cd1c2/mod.rs"]
pub mod otg1_hs_global;
pub struct OTG2_HS_GLOBAL {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for OTG2_HS_GLOBAL {}
impl OTG2_HS_GLOBAL {
pub const PTR: *const otg1_hs_global::RegisterBlock = 0x4008_0000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const otg1_hs_global::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::otg1_hs_global as otg2_hs_global;
pub struct OTG1_HS_HOST {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for OTG1_HS_HOST {}
impl OTG1_HS_HOST {
pub const PTR: *const otg1_hs_host::RegisterBlock = 0x4004_0400 as *const _;
#[inline(always)]
pub const fn ptr() -> *const otg1_hs_host::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/otg1_hs_host/2ffa2a72/mod.rs"]
pub mod otg1_hs_host;
pub struct OTG2_HS_HOST {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for OTG2_HS_HOST {}
impl OTG2_HS_HOST {
pub const PTR: *const otg1_hs_host::RegisterBlock = 0x4008_0400 as *const _;
#[inline(always)]
pub const fn ptr() -> *const otg1_hs_host::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::otg1_hs_host as otg2_hs_host;
pub struct OTG1_HS_DEVICE {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for OTG1_HS_DEVICE {}
impl OTG1_HS_DEVICE {
pub const PTR: *const otg1_hs_device::RegisterBlock = 0x4004_0800 as *const _;
#[inline(always)]
pub const fn ptr() -> *const otg1_hs_device::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/otg1_hs_device/44e45e17/mod.rs"]
pub mod otg1_hs_device;
pub struct OTG2_HS_DEVICE {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for OTG2_HS_DEVICE {}
impl OTG2_HS_DEVICE {
pub const PTR: *const otg1_hs_device::RegisterBlock = 0x4008_0800 as *const _;
#[inline(always)]
pub const fn ptr() -> *const otg1_hs_device::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::otg1_hs_device as otg2_hs_device;
pub struct OTG1_HS_PWRCLK {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for OTG1_HS_PWRCLK {}
impl OTG1_HS_PWRCLK {
pub const PTR: *const otg1_hs_pwrclk::RegisterBlock = 0x4004_0e00 as *const _;
#[inline(always)]
pub const fn ptr() -> *const otg1_hs_pwrclk::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/otg1_hs_pwrclk/630d1b35/mod.rs"]
pub mod otg1_hs_pwrclk;
pub struct OTG2_HS_PWRCLK {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for OTG2_HS_PWRCLK {}
impl OTG2_HS_PWRCLK {
pub const PTR: *const otg1_hs_pwrclk::RegisterBlock = 0x4008_0e00 as *const _;
#[inline(always)]
pub const fn ptr() -> *const otg1_hs_pwrclk::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::otg1_hs_pwrclk as otg2_hs_pwrclk;
pub struct ETH {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for ETH {}
impl ETH {
pub const PTR: *const eth::RegisterBlock = 0x4002_8000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const eth::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
impl Deref for ETH {
type Target = eth::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*Self::PTR }
}
}
impl core::fmt::Debug for ETH {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("ETH").finish()
}
}
#[path = "../common/eth/db1d6a5e/mod.rs"]
pub mod eth;
pub struct DMA1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for DMA1 {}
impl DMA1 {
pub const PTR: *const dma1::RegisterBlock = 0x4002_0000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const dma1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/dma1/858c3d71/mod.rs"]
pub mod dma1;
pub struct DMA2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for DMA2 {}
impl DMA2 {
pub const PTR: *const dma1::RegisterBlock = 0x4002_0400 as *const _;
#[inline(always)]
pub const fn ptr() -> *const dma1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::dma1 as dma2;
pub struct HRTIM_MASTER {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for HRTIM_MASTER {}
impl HRTIM_MASTER {
pub const PTR: *const hrtim_master::RegisterBlock = 0x4001_7400 as *const _;
#[inline(always)]
pub const fn ptr() -> *const hrtim_master::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/hrtim_master/d33d5ec4/mod.rs"]
pub mod hrtim_master;
pub struct HRTIM_TIMA {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for HRTIM_TIMA {}
impl HRTIM_TIMA {
pub const PTR: *const hrtim_tima::RegisterBlock = 0x4001_7480 as *const _;
#[inline(always)]
pub const fn ptr() -> *const hrtim_tima::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/hrtim_tima/92bd70e7/mod.rs"]
pub mod hrtim_tima;
pub struct HRTIM_TIMB {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for HRTIM_TIMB {}
impl HRTIM_TIMB {
pub const PTR: *const hrtim_timb::RegisterBlock = 0x4001_7500 as *const _;
#[inline(always)]
pub const fn ptr() -> *const hrtim_timb::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/hrtim_timb/2a3d59aa/mod.rs"]
pub mod hrtim_timb;
pub struct HRTIM_TIMC {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for HRTIM_TIMC {}
impl HRTIM_TIMC {
pub const PTR: *const hrtim_timc::RegisterBlock = 0x4001_7580 as *const _;
#[inline(always)]
pub const fn ptr() -> *const hrtim_timc::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/hrtim_timc/958525a5/mod.rs"]
pub mod hrtim_timc;
pub struct HRTIM_TIMD {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for HRTIM_TIMD {}
impl HRTIM_TIMD {
pub const PTR: *const hrtim_timd::RegisterBlock = 0x4001_7600 as *const _;
#[inline(always)]
pub const fn ptr() -> *const hrtim_timd::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/hrtim_timd/3adb90a5/mod.rs"]
pub mod hrtim_timd;
pub struct HRTIM_TIME {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for HRTIM_TIME {}
impl HRTIM_TIME {
pub const PTR: *const hrtim_time::RegisterBlock = 0x4001_7680 as *const _;
#[inline(always)]
pub const fn ptr() -> *const hrtim_time::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/hrtim_time/7a0d3e9a/mod.rs"]
pub mod hrtim_time;
pub struct HRTIM_COMMON {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for HRTIM_COMMON {}
impl HRTIM_COMMON {
pub const PTR: *const hrtim_common::RegisterBlock = 0x4001_7780 as *const _;
#[inline(always)]
pub const fn ptr() -> *const hrtim_common::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/hrtim_common/661206e7/mod.rs"]
pub mod hrtim_common;
pub struct DFSDM {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for DFSDM {}
impl DFSDM {
pub const PTR: *const dfsdm::RegisterBlock = 0x4001_7000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const dfsdm::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/dfsdm/ebfd34e3/mod.rs"]
pub mod dfsdm;
pub struct TIM16 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM16 {}
impl TIM16 {
pub const PTR: *const tim16::RegisterBlock = 0x4001_4400 as *const _;
#[inline(always)]
pub const fn ptr() -> *const tim16::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/tim16/14580280/mod.rs"]
pub mod tim16;
pub struct TIM17 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM17 {}
impl TIM17 {
pub const PTR: *const tim17::RegisterBlock = 0x4001_4800 as *const _;
#[inline(always)]
pub const fn ptr() -> *const tim17::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/tim17/d1c83516/mod.rs"]
pub mod tim17;
pub struct TIM15 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM15 {}
impl TIM15 {
pub const PTR: *const tim15::RegisterBlock = 0x4001_4000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const tim15::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/tim15/2d9ffcc3/mod.rs"]
pub mod tim15;
pub struct USART1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for USART1 {}
impl USART1 {
pub const PTR: *const usart1::RegisterBlock = 0x4001_1000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const usart1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/usart1/8065b785/mod.rs"]
pub mod usart1;
pub struct USART2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for USART2 {}
impl USART2 {
pub const PTR: *const usart1::RegisterBlock = 0x4000_4400 as *const _;
#[inline(always)]
pub const fn ptr() -> *const usart1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::usart1 as usart2;
pub struct USART3 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for USART3 {}
impl USART3 {
pub const PTR: *const usart1::RegisterBlock = 0x4000_4800 as *const _;
#[inline(always)]
pub const fn ptr() -> *const usart1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::usart1 as usart3;
pub struct UART4 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for UART4 {}
impl UART4 {
pub const PTR: *const usart1::RegisterBlock = 0x4000_4c00 as *const _;
#[inline(always)]
pub const fn ptr() -> *const usart1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::usart1 as uart4;
pub struct UART5 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for UART5 {}
impl UART5 {
pub const PTR: *const usart1::RegisterBlock = 0x4000_5000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const usart1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::usart1 as uart5;
pub struct USART6 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for USART6 {}
impl USART6 {
pub const PTR: *const usart1::RegisterBlock = 0x4001_1400 as *const _;
#[inline(always)]
pub const fn ptr() -> *const usart1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::usart1 as usart6;
pub struct UART7 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for UART7 {}
impl UART7 {
pub const PTR: *const usart1::RegisterBlock = 0x4000_7800 as *const _;
#[inline(always)]
pub const fn ptr() -> *const usart1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::usart1 as uart7;
pub struct UART8 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for UART8 {}
impl UART8 {
pub const PTR: *const usart1::RegisterBlock = 0x4000_7c00 as *const _;
#[inline(always)]
pub const fn ptr() -> *const usart1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::usart1 as uart8;
pub struct TIM1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM1 {}
impl TIM1 {
pub const PTR: *const tim1::RegisterBlock = 0x4001_0000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const tim1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/tim1/04820b32/mod.rs"]
pub mod tim1;
pub struct TIM8 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM8 {}
impl TIM8 {
pub const PTR: *const tim1::RegisterBlock = 0x4001_0400 as *const _;
#[inline(always)]
pub const fn ptr() -> *const tim1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::tim1 as tim8;
pub struct FDCAN1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for FDCAN1 {}
impl FDCAN1 {
pub const PTR: *const fdcan1::RegisterBlock = 0x4000_a000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const fdcan1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/fdcan1/c3b062e7/mod.rs"]
pub mod fdcan1;
pub struct FDCAN2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for FDCAN2 {}
impl FDCAN2 {
pub const PTR: *const fdcan1::RegisterBlock = 0x4000_a400 as *const _;
#[inline(always)]
pub const fn ptr() -> *const fdcan1::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::fdcan1 as fdcan2;
pub struct CAN_CCU {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for CAN_CCU {}
impl CAN_CCU {
pub const PTR: *const can_ccu::RegisterBlock = 0x4000_a800 as *const _;
#[inline(always)]
pub const fn ptr() -> *const can_ccu::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/can_ccu/26856de1/mod.rs"]
pub mod can_ccu;
pub struct MDIOS {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for MDIOS {}
impl MDIOS {
pub const PTR: *const mdios::RegisterBlock = 0x4000_9400 as *const _;
#[inline(always)]
pub const fn ptr() -> *const mdios::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/mdios/696dc2ae/mod.rs"]
pub mod mdios;
pub struct OPAMP {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for OPAMP {}
impl OPAMP {
pub const PTR: *const opamp::RegisterBlock = 0x4000_9000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const opamp::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/opamp/19a319f7/mod.rs"]
pub mod opamp;
pub struct SWPMI {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SWPMI {}
impl SWPMI {
pub const PTR: *const swpmi::RegisterBlock = 0x4000_8800 as *const _;
#[inline(always)]
pub const fn ptr() -> *const swpmi::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/swpmi/5a8c69cc/mod.rs"]
pub mod swpmi;
pub struct TIM2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM2 {}
impl TIM2 {
pub const PTR: *const tim2::RegisterBlock = 0x4000_0000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const tim2::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/tim2/804ada2d/mod.rs"]
pub mod tim2;
pub struct TIM3 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM3 {}
impl TIM3 {
pub const PTR: *const tim3::RegisterBlock = 0x4000_0400 as *const _;
#[inline(always)]
pub const fn ptr() -> *const tim3::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/tim3/61058bf5/mod.rs"]
pub mod tim3;
pub struct TIM4 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM4 {}
impl TIM4 {
pub const PTR: *const tim3::RegisterBlock = 0x4000_0800 as *const _;
#[inline(always)]
pub const fn ptr() -> *const tim3::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::tim3 as tim4;
pub struct TIM5 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM5 {}
impl TIM5 {
pub const PTR: *const tim2::RegisterBlock = 0x4000_0c00 as *const _;
#[inline(always)]
pub const fn ptr() -> *const tim2::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::tim2 as tim5;
pub struct TIM12 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM12 {}
impl TIM12 {
pub const PTR: *const tim12::RegisterBlock = 0x4000_1800 as *const _;
#[inline(always)]
pub const fn ptr() -> *const tim12::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/tim12/69994290/mod.rs"]
pub mod tim12;
pub struct TIM13 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM13 {}
impl TIM13 {
pub const PTR: *const tim13::RegisterBlock = 0x4000_1c00 as *const _;
#[inline(always)]
pub const fn ptr() -> *const tim13::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/tim13/5c5f17d7/mod.rs"]
pub mod tim13;
pub struct TIM14 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM14 {}
impl TIM14 {
pub const PTR: *const tim13::RegisterBlock = 0x4000_2000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const tim13::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::tim13 as tim14;
pub struct TIM6 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM6 {}
impl TIM6 {
pub const PTR: *const tim6::RegisterBlock = 0x4000_1000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const tim6::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/tim6/ca117a36/mod.rs"]
pub mod tim6;
pub struct TIM7 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM7 {}
impl TIM7 {
pub const PTR: *const tim6::RegisterBlock = 0x4000_1400 as *const _;
#[inline(always)]
pub const fn ptr() -> *const tim6::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
pub use self::tim6 as tim7;
pub struct DBGMCU {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for DBGMCU {}
impl DBGMCU {
pub const PTR: *const dbgmcu::RegisterBlock = 0x5c00_1000 as *const _;
#[inline(always)]
pub const fn ptr() -> *const dbgmcu::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
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()
}
}
#[path = "../common/dbgmcu/5d23964b/mod.rs"]
pub mod dbgmcu;
pub struct GPIOB {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for GPIOB {}
impl GPIOB {
pub const PTR: *const gpiob::RegisterBlock = 0x5802_0400 as *const _;
#[inline(always)]
pub const fn ptr() -> *const gpiob::RegisterBlock {
Self::PTR
}
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
impl Deref for GPIOB {
type Target = gpiob::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()
}
}
#[path = "../common/gpiob/66d801a1/mod.rs"]
pub mod gpiob;
#[no_mangle]
static mut DEVICE_PERIPHERALS: bool = false;
#[allow(non_snake_case)]
pub struct Peripherals {
pub COMP1: COMP1,
pub CRS: CRS,
pub DAC: DAC,
pub BDMA: BDMA,
pub DMA2D: DMA2D,
pub DMAMUX1: DMAMUX1,
pub DMAMUX2: DMAMUX2,
pub FMC: FMC,
pub CEC: CEC,
pub HSEM: HSEM,
pub I2C1: I2C1,
pub I2C2: I2C2,
pub I2C3: I2C3,
pub I2C4: I2C4,
pub GPIOA: GPIOA,
pub GPIOC: GPIOC,
pub GPIOD: GPIOD,
pub GPIOE: GPIOE,
pub GPIOF: GPIOF,
pub GPIOG: GPIOG,
pub GPIOH: GPIOH,
pub GPIOI: GPIOI,
pub GPIOJ: GPIOJ,
pub GPIOK: GPIOK,
pub JPEG: JPEG,
pub MDMA: MDMA,
pub QUADSPI: QUADSPI,
pub RNG: RNG,
pub RTC: RTC,
pub SAI4: SAI4,
pub SAI1: SAI1,
pub SAI2: SAI2,
pub SAI3: SAI3,
pub SDMMC1: SDMMC1,
pub SDMMC2: SDMMC2,
pub VREFBUF: VREFBUF,
pub IWDG: IWDG,
pub WWDG: WWDG,
pub PWR: PWR,
pub SPI1: SPI1,
pub SPI2: SPI2,
pub SPI3: SPI3,
pub SPI4: SPI4,
pub SPI5: SPI5,
pub SPI6: SPI6,
pub LTDC: LTDC,
pub SPDIFRX: SPDIFRX,
pub RAMECC1: RAMECC1,
pub RAMECC2: RAMECC2,
pub RAMECC3: RAMECC3,
pub ADC3: ADC3,
pub ADC1: ADC1,
pub ADC2: ADC2,
pub ADC3_COMMON: ADC3_COMMON,
pub ADC12_COMMON: ADC12_COMMON,
pub CRC: CRC,
pub RCC: RCC,
pub LPTIM1: LPTIM1,
pub LPTIM2: LPTIM2,
pub LPTIM3: LPTIM3,
pub LPTIM4: LPTIM4,
pub LPTIM5: LPTIM5,
pub LPUART1: LPUART1,
pub SYSCFG: SYSCFG,
pub EXTI: EXTI,
pub DELAY_BLOCK_SDMMC1: DELAY_BLOCK_SDMMC1,
pub DELAY_BLOCK_QUADSPI: DELAY_BLOCK_QUADSPI,
pub DELAY_BLOCK_SDMMC2: DELAY_BLOCK_SDMMC2,
pub FLASH: FLASH,
pub AXI: AXI,
pub HASH: HASH,
pub CRYP: CRYP,
pub DCMI: DCMI,
pub OTG1_HS_GLOBAL: OTG1_HS_GLOBAL,
pub OTG2_HS_GLOBAL: OTG2_HS_GLOBAL,
pub OTG1_HS_HOST: OTG1_HS_HOST,
pub OTG2_HS_HOST: OTG2_HS_HOST,
pub OTG1_HS_DEVICE: OTG1_HS_DEVICE,
pub OTG2_HS_DEVICE: OTG2_HS_DEVICE,
pub OTG1_HS_PWRCLK: OTG1_HS_PWRCLK,
pub OTG2_HS_PWRCLK: OTG2_HS_PWRCLK,
pub ETH: ETH,
pub DMA1: DMA1,
pub DMA2: DMA2,
pub HRTIM_MASTER: HRTIM_MASTER,
pub HRTIM_TIMA: HRTIM_TIMA,
pub HRTIM_TIMB: HRTIM_TIMB,
pub HRTIM_TIMC: HRTIM_TIMC,
pub HRTIM_TIMD: HRTIM_TIMD,
pub HRTIM_TIME: HRTIM_TIME,
pub HRTIM_COMMON: HRTIM_COMMON,
pub DFSDM: DFSDM,
pub TIM16: TIM16,
pub TIM17: TIM17,
pub TIM15: TIM15,
pub USART1: USART1,
pub USART2: USART2,
pub USART3: USART3,
pub UART4: UART4,
pub UART5: UART5,
pub USART6: USART6,
pub UART7: UART7,
pub UART8: UART8,
pub TIM1: TIM1,
pub TIM8: TIM8,
pub FDCAN1: FDCAN1,
pub FDCAN2: FDCAN2,
pub CAN_CCU: CAN_CCU,
pub MDIOS: MDIOS,
pub OPAMP: OPAMP,
pub SWPMI: SWPMI,
pub TIM2: TIM2,
pub TIM3: TIM3,
pub TIM4: TIM4,
pub TIM5: TIM5,
pub TIM12: TIM12,
pub TIM13: TIM13,
pub TIM14: TIM14,
pub TIM6: TIM6,
pub TIM7: TIM7,
pub DBGMCU: DBGMCU,
pub GPIOB: GPIOB,
}
impl Peripherals {
#[cfg(feature = "critical-section")]
#[inline]
pub fn take() -> Option<Self> {
critical_section::with(|_| {
if unsafe { DEVICE_PERIPHERALS } {
return None;
}
Some(unsafe { Peripherals::steal() })
})
}
#[inline]
pub unsafe fn steal() -> Self {
DEVICE_PERIPHERALS = true;
Peripherals {
COMP1: COMP1::steal(),
CRS: CRS::steal(),
DAC: DAC::steal(),
BDMA: BDMA::steal(),
DMA2D: DMA2D::steal(),
DMAMUX1: DMAMUX1::steal(),
DMAMUX2: DMAMUX2::steal(),
FMC: FMC::steal(),
CEC: CEC::steal(),
HSEM: HSEM::steal(),
I2C1: I2C1::steal(),
I2C2: I2C2::steal(),
I2C3: I2C3::steal(),
I2C4: I2C4::steal(),
GPIOA: GPIOA::steal(),
GPIOC: GPIOC::steal(),
GPIOD: GPIOD::steal(),
GPIOE: GPIOE::steal(),
GPIOF: GPIOF::steal(),
GPIOG: GPIOG::steal(),
GPIOH: GPIOH::steal(),
GPIOI: GPIOI::steal(),
GPIOJ: GPIOJ::steal(),
GPIOK: GPIOK::steal(),
JPEG: JPEG::steal(),
MDMA: MDMA::steal(),
QUADSPI: QUADSPI::steal(),
RNG: RNG::steal(),
RTC: RTC::steal(),
SAI4: SAI4::steal(),
SAI1: SAI1::steal(),
SAI2: SAI2::steal(),
SAI3: SAI3::steal(),
SDMMC1: SDMMC1::steal(),
SDMMC2: SDMMC2::steal(),
VREFBUF: VREFBUF::steal(),
IWDG: IWDG::steal(),
WWDG: WWDG::steal(),
PWR: PWR::steal(),
SPI1: SPI1::steal(),
SPI2: SPI2::steal(),
SPI3: SPI3::steal(),
SPI4: SPI4::steal(),
SPI5: SPI5::steal(),
SPI6: SPI6::steal(),
LTDC: LTDC::steal(),
SPDIFRX: SPDIFRX::steal(),
RAMECC1: RAMECC1::steal(),
RAMECC2: RAMECC2::steal(),
RAMECC3: RAMECC3::steal(),
ADC3: ADC3::steal(),
ADC1: ADC1::steal(),
ADC2: ADC2::steal(),
ADC3_COMMON: ADC3_COMMON::steal(),
ADC12_COMMON: ADC12_COMMON::steal(),
CRC: CRC::steal(),
RCC: RCC::steal(),
LPTIM1: LPTIM1::steal(),
LPTIM2: LPTIM2::steal(),
LPTIM3: LPTIM3::steal(),
LPTIM4: LPTIM4::steal(),
LPTIM5: LPTIM5::steal(),
LPUART1: LPUART1::steal(),
SYSCFG: SYSCFG::steal(),
EXTI: EXTI::steal(),
DELAY_BLOCK_SDMMC1: DELAY_BLOCK_SDMMC1::steal(),
DELAY_BLOCK_QUADSPI: DELAY_BLOCK_QUADSPI::steal(),
DELAY_BLOCK_SDMMC2: DELAY_BLOCK_SDMMC2::steal(),
FLASH: FLASH::steal(),
AXI: AXI::steal(),
HASH: HASH::steal(),
CRYP: CRYP::steal(),
DCMI: DCMI::steal(),
OTG1_HS_GLOBAL: OTG1_HS_GLOBAL::steal(),
OTG2_HS_GLOBAL: OTG2_HS_GLOBAL::steal(),
OTG1_HS_HOST: OTG1_HS_HOST::steal(),
OTG2_HS_HOST: OTG2_HS_HOST::steal(),
OTG1_HS_DEVICE: OTG1_HS_DEVICE::steal(),
OTG2_HS_DEVICE: OTG2_HS_DEVICE::steal(),
OTG1_HS_PWRCLK: OTG1_HS_PWRCLK::steal(),
OTG2_HS_PWRCLK: OTG2_HS_PWRCLK::steal(),
ETH: ETH::steal(),
DMA1: DMA1::steal(),
DMA2: DMA2::steal(),
HRTIM_MASTER: HRTIM_MASTER::steal(),
HRTIM_TIMA: HRTIM_TIMA::steal(),
HRTIM_TIMB: HRTIM_TIMB::steal(),
HRTIM_TIMC: HRTIM_TIMC::steal(),
HRTIM_TIMD: HRTIM_TIMD::steal(),
HRTIM_TIME: HRTIM_TIME::steal(),
HRTIM_COMMON: HRTIM_COMMON::steal(),
DFSDM: DFSDM::steal(),
TIM16: TIM16::steal(),
TIM17: TIM17::steal(),
TIM15: TIM15::steal(),
USART1: USART1::steal(),
USART2: USART2::steal(),
USART3: USART3::steal(),
UART4: UART4::steal(),
UART5: UART5::steal(),
USART6: USART6::steal(),
UART7: UART7::steal(),
UART8: UART8::steal(),
TIM1: TIM1::steal(),
TIM8: TIM8::steal(),
FDCAN1: FDCAN1::steal(),
FDCAN2: FDCAN2::steal(),
CAN_CCU: CAN_CCU::steal(),
MDIOS: MDIOS::steal(),
OPAMP: OPAMP::steal(),
SWPMI: SWPMI::steal(),
TIM2: TIM2::steal(),
TIM3: TIM3::steal(),
TIM4: TIM4::steal(),
TIM5: TIM5::steal(),
TIM12: TIM12::steal(),
TIM13: TIM13::steal(),
TIM14: TIM14::steal(),
TIM6: TIM6::steal(),
TIM7: TIM7::steal(),
DBGMCU: DBGMCU::steal(),
GPIOB: GPIOB::steal(),
}
}
}