#![deny(patterns_in_fns_without_body)]
#![deny(plugin_as_library)]
#![deny(private_in_public)]
#![deny(safe_extern_statics)]
#![deny(unconditional_recursion)]
#![deny(unions_with_drop_fields)]
#![deny(unused_allocation)]
#![deny(unused_comparisons)]
#![deny(unused_parens)]
#![deny(while_true)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![no_std]
extern crate bare_metal;
extern crate cortex_m;
#[cfg(feature = "rt")]
extern crate cortex_m_rt;
extern crate vcell;
use core::marker::PhantomData;
use core::ops::Deref;
#[doc = r"Number available in the NVIC for configuring priority"]
pub const NVIC_PRIO_BITS: u8 = 4;
#[cfg(feature = "rt")]
extern "C" {
fn PVD();
fn TAMP_STAMP();
fn RTC_WKUP();
fn FLASH();
fn RCC();
fn EXTI0();
fn EXTI1();
fn EXTI2();
fn EXTI3();
fn EXTI4();
fn DMA1_STREAM0();
fn DMA1_STREAM1();
fn DMA1_STREAM2();
fn DMA1_STREAM3();
fn DMA1_STREAM4();
fn DMA1_STREAM5();
fn DMA1_STREAM6();
fn ADC();
fn CAN1_TX();
fn CAN1_RX0();
fn CAN1_RX1();
fn CAN1_SCE();
fn EXTI9_5();
fn TIM1_BRK_TIM9();
fn TIM1_UP_TIM10();
fn TIM1_TRG_COM_TIM11();
fn TIM1_CC();
fn TIM2();
fn TIM3();
fn TIM4();
fn I2C1_EVT();
fn I2C1_ERR();
fn I2C2_EVT();
fn I2C2_ERR();
fn SPI1();
fn SPI2();
fn USART1();
fn USART2();
fn USART3();
fn EXTI15_10();
fn EXTI17_RTC_ALARM();
fn TIM8_BRK_TIM12();
fn TIM8_UP_TIM13();
fn TIM8_TRG_COM_TIM14();
fn TIM8_CC();
fn DMA1_STREAM7();
fn FSMC();
fn SDIO();
fn TIM5();
fn SPI3();
fn USART4();
fn UART5();
fn TIM6_GLB_IT_DAC1_DAC2();
fn TIM7();
fn DMA2_STREAM0();
fn DMA2_STREAM1();
fn DMA2_STREAM2();
fn DMA2_STREAM3();
fn DMA2_STREAM4();
fn DFSDM1_FLT0();
fn DFSDM1_FLT1();
fn CAN2_TX();
fn CAN2_RX0();
fn CAN2_RX1();
fn CAN2_SCE();
fn DMA2_STREAM5();
fn DMA2_STREAM6();
fn DMA2_STREAM7();
fn USART6();
fn I2C3_EV();
fn I2C3_ER();
fn CAN3_TX();
fn CAN3_RX0();
fn CAN3_RX1();
fn CAN3_SCE();
fn CRYPTO();
fn RNG();
fn FPU();
fn USART7();
fn USART8();
fn SPI4();
fn SPI5();
fn SAI1();
fn UART9();
fn UART10();
fn QUADSPI();
fn I2CFMP1EVENT();
fn I2CFMP1ERROR();
fn LPTIM1_OR_IT_EIT_23();
fn DFSDM2_FILTER1();
fn DFSDM2_FILTER2();
fn DFSDM2_FILTER3();
fn DFSDM2_FILTER4();
}
#[doc(hidden)]
pub union Vector {
_handler: unsafe extern "C" fn(),
_reserved: u32,
}
#[cfg(feature = "rt")]
#[doc(hidden)]
#[link_section = ".vector_table.interrupts"]
#[no_mangle]
pub static __INTERRUPTS: [Vector; 102] = [
Vector { _reserved: 0 },
Vector { _handler: PVD },
Vector {
_handler: TAMP_STAMP,
},
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: DMA1_STREAM0,
},
Vector {
_handler: DMA1_STREAM1,
},
Vector {
_handler: DMA1_STREAM2,
},
Vector {
_handler: DMA1_STREAM3,
},
Vector {
_handler: DMA1_STREAM4,
},
Vector {
_handler: DMA1_STREAM5,
},
Vector {
_handler: DMA1_STREAM6,
},
Vector { _handler: ADC },
Vector { _handler: CAN1_TX },
Vector { _handler: CAN1_RX0 },
Vector { _handler: CAN1_RX1 },
Vector { _handler: CAN1_SCE },
Vector { _handler: EXTI9_5 },
Vector {
_handler: TIM1_BRK_TIM9,
},
Vector {
_handler: TIM1_UP_TIM10,
},
Vector {
_handler: TIM1_TRG_COM_TIM11,
},
Vector { _handler: TIM1_CC },
Vector { _handler: TIM2 },
Vector { _handler: TIM3 },
Vector { _handler: TIM4 },
Vector { _handler: I2C1_EVT },
Vector { _handler: I2C1_ERR },
Vector { _handler: I2C2_EVT },
Vector { _handler: I2C2_ERR },
Vector { _handler: SPI1 },
Vector { _handler: SPI2 },
Vector { _handler: USART1 },
Vector { _handler: USART2 },
Vector { _handler: USART3 },
Vector {
_handler: EXTI15_10,
},
Vector {
_handler: EXTI17_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_STREAM7,
},
Vector { _handler: FSMC },
Vector { _handler: SDIO },
Vector { _handler: TIM5 },
Vector { _handler: SPI3 },
Vector { _handler: USART4 },
Vector { _handler: UART5 },
Vector {
_handler: TIM6_GLB_IT_DAC1_DAC2,
},
Vector { _handler: TIM7 },
Vector {
_handler: DMA2_STREAM0,
},
Vector {
_handler: DMA2_STREAM1,
},
Vector {
_handler: DMA2_STREAM2,
},
Vector {
_handler: DMA2_STREAM3,
},
Vector {
_handler: DMA2_STREAM4,
},
Vector {
_handler: DFSDM1_FLT0,
},
Vector {
_handler: DFSDM1_FLT1,
},
Vector { _handler: CAN2_TX },
Vector { _handler: CAN2_RX0 },
Vector { _handler: CAN2_RX1 },
Vector { _handler: CAN2_SCE },
Vector { _reserved: 0 },
Vector {
_handler: DMA2_STREAM5,
},
Vector {
_handler: DMA2_STREAM6,
},
Vector {
_handler: DMA2_STREAM7,
},
Vector { _handler: USART6 },
Vector { _handler: I2C3_EV },
Vector { _handler: I2C3_ER },
Vector { _handler: CAN3_TX },
Vector { _handler: CAN3_RX0 },
Vector { _handler: CAN3_RX1 },
Vector { _handler: CAN3_SCE },
Vector { _reserved: 0 },
Vector { _handler: CRYPTO },
Vector { _handler: RNG },
Vector { _handler: FPU },
Vector { _handler: USART7 },
Vector { _handler: USART8 },
Vector { _handler: SPI4 },
Vector { _handler: SPI5 },
Vector { _reserved: 0 },
Vector { _handler: SAI1 },
Vector { _handler: UART9 },
Vector { _handler: UART10 },
Vector { _reserved: 0 },
Vector { _reserved: 0 },
Vector { _handler: QUADSPI },
Vector { _reserved: 0 },
Vector { _reserved: 0 },
Vector {
_handler: I2CFMP1EVENT,
},
Vector {
_handler: I2CFMP1ERROR,
},
Vector {
_handler: LPTIM1_OR_IT_EIT_23,
},
Vector {
_handler: DFSDM2_FILTER1,
},
Vector {
_handler: DFSDM2_FILTER2,
},
Vector {
_handler: DFSDM2_FILTER3,
},
Vector {
_handler: DFSDM2_FILTER4,
},
];
#[doc = r"Enumeration of all the interrupts"]
#[derive(Copy, Clone, Debug)]
#[repr(u8)]
pub enum Interrupt {
#[doc = "1 - PVD through EXTI line detection interrupt"]
PVD = 1,
#[doc = "2 - Tamper and TimeStamp interrupts through the EXTI line"]
TAMP_STAMP = 2,
#[doc = "3 - RTC Wakeup interrupt through the EXTI line"]
RTC_WKUP = 3,
#[doc = "4 - FLASH global interrupt"]
FLASH = 4,
#[doc = "5 - RCC global interrupt"]
RCC = 5,
#[doc = "6 - EXTI Line0 interrupt"]
EXTI0 = 6,
#[doc = "7 - EXTI Line1 interrupt"]
EXTI1 = 7,
#[doc = "8 - EXTI Line2 interrupt"]
EXTI2 = 8,
#[doc = "9 - EXTI Line3 interrupt"]
EXTI3 = 9,
#[doc = "10 - EXTI Line4 interrupt"]
EXTI4 = 10,
#[doc = "11 - DMA1 Stream0 global interrupt"]
DMA1_STREAM0 = 11,
#[doc = "12 - DMA1 Stream1 global interrupt"]
DMA1_STREAM1 = 12,
#[doc = "13 - DMA1 Stream2 global interrupt"]
DMA1_STREAM2 = 13,
#[doc = "14 - DMA1 Stream3 global interrupt"]
DMA1_STREAM3 = 14,
#[doc = "15 - DMA1 Stream4 global interrupt"]
DMA1_STREAM4 = 15,
#[doc = "16 - DMA1 Stream5 global interrupt"]
DMA1_STREAM5 = 16,
#[doc = "17 - DMA1 Stream6 global interrupt"]
DMA1_STREAM6 = 17,
#[doc = "18 - ADC1 global interrupt"]
ADC = 18,
#[doc = "19 - CAN1 TX interrupts"]
CAN1_TX = 19,
#[doc = "20 - CAN1 RX0 interrupts"]
CAN1_RX0 = 20,
#[doc = "21 - CAN1 RX1 interrupts"]
CAN1_RX1 = 21,
#[doc = "22 - CAN1 SCE interrupt"]
CAN1_SCE = 22,
#[doc = "23 - EXTI Line\\[9:5\\]
interrupts"]
EXTI9_5 = 23,
#[doc = "24 - TIM1 Break interrupt and TIM9 global interrupt"]
TIM1_BRK_TIM9 = 24,
#[doc = "25 - TIM1 Update interrupt and TIM10 global interrupt"]
TIM1_UP_TIM10 = 25,
#[doc = "26 - TIM1 Trigger and Commutation interrupts and TIM11 global interrupt"]
TIM1_TRG_COM_TIM11 = 26,
#[doc = "27 - TIM1 Capture Compare interrupt"]
TIM1_CC = 27,
#[doc = "28 - TIM2 global interrupt"]
TIM2 = 28,
#[doc = "29 - TIM3 global interrupt"]
TIM3 = 29,
#[doc = "30 - TIM4 global interrupt"]
TIM4 = 30,
#[doc = "31 - I2C1 event interrupt"]
I2C1_EVT = 31,
#[doc = "32 - I2C1 error interrupt"]
I2C1_ERR = 32,
#[doc = "33 - I2C2 event interrupt"]
I2C2_EVT = 33,
#[doc = "34 - I2C2 error interrupt"]
I2C2_ERR = 34,
#[doc = "35 - SPI1 global interrupt"]
SPI1 = 35,
#[doc = "36 - SPI2 global interrupt"]
SPI2 = 36,
#[doc = "37 - USART1 global interrupt"]
USART1 = 37,
#[doc = "38 - USART2 global interrupt"]
USART2 = 38,
#[doc = "39 - USART3 global interrupt"]
USART3 = 39,
#[doc = "40 - EXTI Line\\[15:10\\]
interrupts"]
EXTI15_10 = 40,
#[doc = "41 - RTC Alarms (A and B) through EXTI line interrupt"]
EXTI17_RTC_ALARM = 41,
#[doc = "43 - Timer 12 global interrupt"]
TIM8_BRK_TIM12 = 43,
#[doc = "44 - Timer 13 global interrupt"]
TIM8_UP_TIM13 = 44,
#[doc = "45 - Timer 14 global interrupt"]
TIM8_TRG_COM_TIM14 = 45,
#[doc = "46 - TIM8 Cap/Com interrupt"]
TIM8_CC = 46,
#[doc = "47 - DMA1 global interrupt Channel 7"]
DMA1_STREAM7 = 47,
#[doc = "48 - FSMC global interrupt"]
FSMC = 48,
#[doc = "49 - SDIO global interrupt"]
SDIO = 49,
#[doc = "50 - TIM5 global interrupt"]
TIM5 = 50,
#[doc = "51 - SPI3 global interrupt"]
SPI3 = 51,
#[doc = "52 - UART 4 global interrupt"]
USART4 = 52,
#[doc = "53 - UART 5global interrupt"]
UART5 = 53,
#[doc = "54 - TIM6 global and DAC12 underrun interrupts"]
TIM6_GLB_IT_DAC1_DAC2 = 54,
#[doc = "55 - TIM7 global interrupt"]
TIM7 = 55,
#[doc = "56 - DMA2 Stream0 global interrupt"]
DMA2_STREAM0 = 56,
#[doc = "57 - DMA2 Stream1 global interrupt"]
DMA2_STREAM1 = 57,
#[doc = "58 - DMA2 Stream2 global interrupt"]
DMA2_STREAM2 = 58,
#[doc = "59 - DMA2 Stream3 global interrupt"]
DMA2_STREAM3 = 59,
#[doc = "60 - DMA2 Stream4 global interrupt"]
DMA2_STREAM4 = 60,
#[doc = "61 - SD filter0 global interrupt"]
DFSDM1_FLT0 = 61,
#[doc = "62 - SD filter1 global interrupt"]
DFSDM1_FLT1 = 62,
#[doc = "63 - CAN2 TX interrupt"]
CAN2_TX = 63,
#[doc = "64 - BXCAN2 RX0 interrupt"]
CAN2_RX0 = 64,
#[doc = "65 - BXCAN2 RX1 interrupt"]
CAN2_RX1 = 65,
#[doc = "66 - CAN2 SCE interrupt"]
CAN2_SCE = 66,
#[doc = "68 - DMA2 Stream5 global interrupt"]
DMA2_STREAM5 = 68,
#[doc = "69 - DMA2 Stream6 global interrupt"]
DMA2_STREAM6 = 69,
#[doc = "70 - DMA2 Stream7 global interrupt"]
DMA2_STREAM7 = 70,
#[doc = "71 - USART6 global interrupt"]
USART6 = 71,
#[doc = "72 - I2C3 event interrupt"]
I2C3_EV = 72,
#[doc = "73 - I2C3 error interrupt"]
I2C3_ER = 73,
#[doc = "74 - CAN 3 TX interrupt"]
CAN3_TX = 74,
#[doc = "75 - BxCAN 3 RX0 interrupt"]
CAN3_RX0 = 75,
#[doc = "76 - BxCAN 3 RX1 interrupt"]
CAN3_RX1 = 76,
#[doc = "77 - CAN 3 SCE interrupt"]
CAN3_SCE = 77,
#[doc = "79 - AES global interrupt"]
CRYPTO = 79,
#[doc = "80 - Rng global interrupt"]
RNG = 80,
#[doc = "81 - Floating point unit"]
FPU = 81,
#[doc = "82 - USART7 global interrupt"]
USART7 = 82,
#[doc = "83 - USART8 global interrupt"]
USART8 = 83,
#[doc = "84 - SPI4 global interrupt"]
SPI4 = 84,
#[doc = "85 - SPI5 global interrupt"]
SPI5 = 85,
#[doc = "87 - SAI1 global interrupt"]
SAI1 = 87,
#[doc = "88 - UART9 global interrupt"]
UART9 = 88,
#[doc = "89 - UART10 global interrupt"]
UART10 = 89,
#[doc = "92 - Quad-SPI global interrupt"]
QUADSPI = 92,
#[doc = "95 - I2CFMP1 event interrupt"]
I2CFMP1EVENT = 95,
#[doc = "96 - I2CFMP1 error interrupt"]
I2CFMP1ERROR = 96,
#[doc = "97 - LP Timer global interrupt or EXT1 interrupt line 23"]
LPTIM1_OR_IT_EIT_23 = 97,
#[doc = "98 - DFSDM2 SD filter 1 global interrupt"]
DFSDM2_FILTER1 = 98,
#[doc = "99 - DFSDM2 SD filter 2 global interrupt"]
DFSDM2_FILTER2 = 99,
#[doc = "100 - DFSDM2 SD filter 3 global interrupt"]
DFSDM2_FILTER3 = 100,
#[doc = "101 - DFSDM2 SD filter 4 global interrupt"]
DFSDM2_FILTER4 = 101,
}
unsafe impl bare_metal::Nr for Interrupt {
#[inline(always)]
fn nr(&self) -> u8 {
*self as u8
}
}
#[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, ITM, MPU, NVIC, SCB, SYST, TPIU};
#[cfg(feature = "rt")]
pub use cortex_m_rt::interrupt;
#[doc = "Advanced encryption standard hardware accelerator"]
pub struct AES {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for AES {}
impl AES {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const aes::RegisterBlock {
0x5006_0000 as *const _
}
}
impl Deref for AES {
type Target = aes::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*AES::ptr() }
}
}
#[doc = "Advanced encryption standard hardware accelerator"]
pub mod aes;
#[doc = "Advanced-timers"]
pub struct TIM1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM1 {}
impl TIM1 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const tim1::RegisterBlock {
0x4001_0000 as *const _
}
}
impl Deref for TIM1 {
type Target = tim1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*TIM1::ptr() }
}
}
#[doc = "Advanced-timers"]
pub mod tim1;
#[doc = "Advanced-timers"]
pub struct TIM8 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM8 {}
impl TIM8 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const tim1::RegisterBlock {
0x4001_0400 as *const _
}
}
impl Deref for TIM8 {
type Target = tim1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*TIM8::ptr() }
}
}
#[doc = "Analog-to-digital converter"]
pub struct ADC1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for ADC1 {}
impl ADC1 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const adc1::RegisterBlock {
0x4001_2000 as *const _
}
}
impl Deref for ADC1 {
type Target = adc1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*ADC1::ptr() }
}
}
#[doc = "Analog-to-digital converter"]
pub mod adc1;
#[doc = "Basic timers"]
pub struct TIM7 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM7 {}
impl TIM7 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const tim7::RegisterBlock {
0x4000_1400 as *const _
}
}
impl Deref for TIM7 {
type Target = tim7::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*TIM7::ptr() }
}
}
#[doc = "Basic timers"]
pub mod tim7;
#[doc = "Basic timers"]
pub struct TIM6 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM6 {}
impl TIM6 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const tim7::RegisterBlock {
0x4000_1000 as *const _
}
}
impl Deref for TIM6 {
type Target = tim7::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*TIM6::ptr() }
}
}
#[doc = "Controller area network"]
pub struct CAN1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for CAN1 {}
impl CAN1 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const can1::RegisterBlock {
0x4000_6400 as *const _
}
}
impl Deref for CAN1 {
type Target = can1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*CAN1::ptr() }
}
}
#[doc = "Controller area network"]
pub mod can1;
#[doc = "Controller area network"]
pub struct CAN2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for CAN2 {}
impl CAN2 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const can1::RegisterBlock {
0x4000_6800 as *const _
}
}
impl Deref for CAN2 {
type Target = can1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*CAN2::ptr() }
}
}
#[doc = "Controller area network"]
pub struct CAN3 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for CAN3 {}
impl CAN3 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const can1::RegisterBlock {
0x4000_6c00 as *const _
}
}
impl Deref for CAN3 {
type Target = can1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*CAN3::ptr() }
}
}
#[doc = "Cryptographic processor"]
pub struct CRC {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for CRC {}
impl CRC {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const crc::RegisterBlock {
0x4002_3000 as *const _
}
}
impl Deref for CRC {
type Target = crc::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*CRC::ptr() }
}
}
#[doc = "Cryptographic processor"]
pub mod crc;
#[doc = "Debug support"]
pub struct DBGMCU {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for DBGMCU {}
impl DBGMCU {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const dbgmcu::RegisterBlock {
0xe004_2000 as *const _
}
}
impl Deref for DBGMCU {
type Target = dbgmcu::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*DBGMCU::ptr() }
}
}
#[doc = "Debug support"]
pub mod dbgmcu;
#[doc = "Digital filter for sigma delta modulators"]
pub struct DFSDM2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for DFSDM2 {}
impl DFSDM2 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const dfsdm2::RegisterBlock {
0x4001_6400 as *const _
}
}
impl Deref for DFSDM2 {
type Target = dfsdm2::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*DFSDM2::ptr() }
}
}
#[doc = "Digital filter for sigma delta modulators"]
pub mod dfsdm2;
#[doc = "Digital filter for sigma delta modulators"]
pub struct DFSDM1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for DFSDM1 {}
impl DFSDM1 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const dfsdm2::RegisterBlock {
0x4001_6000 as *const _
}
}
impl Deref for DFSDM1 {
type Target = dfsdm2::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*DFSDM1::ptr() }
}
}
#[doc = "Digital-to-analog converter"]
pub struct DAC {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for DAC {}
impl DAC {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const dac::RegisterBlock {
0x4000_7400 as *const _
}
}
impl Deref for DAC {
type Target = dac::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*DAC::ptr() }
}
}
#[doc = "Digital-to-analog converter"]
pub mod dac;
#[doc = "DMA controller"]
pub struct DMA1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for DMA1 {}
impl DMA1 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const dma1::RegisterBlock {
0x4002_6000 as *const _
}
}
impl Deref for DMA1 {
type Target = dma1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*DMA1::ptr() }
}
}
#[doc = "DMA controller"]
pub mod dma1;
#[doc = "DMA controller"]
pub struct DMA2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for DMA2 {}
impl DMA2 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const dma1::RegisterBlock {
0x4002_6400 as *const _
}
}
impl Deref for DMA2 {
type Target = dma1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*DMA2::ptr() }
}
}
#[doc = "External interrupt/event controller"]
pub struct EXTI {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for EXTI {}
impl EXTI {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const exti::RegisterBlock {
0x4001_3c00 as *const _
}
}
impl Deref for EXTI {
type Target = exti::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*EXTI::ptr() }
}
}
#[doc = "External interrupt/event controller"]
pub mod exti;
#[doc = "fast-mode Inter-integrated circuit"]
pub struct FMPI2C {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for FMPI2C {}
impl FMPI2C {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const fmpi2c::RegisterBlock {
0x4000_6000 as *const _
}
}
impl Deref for FMPI2C {
type Target = fmpi2c::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*FMPI2C::ptr() }
}
}
#[doc = "fast-mode Inter-integrated circuit"]
pub mod fmpi2c;
#[doc = "FLASH"]
pub struct FLASH {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for FLASH {}
impl FLASH {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const flash::RegisterBlock {
0x4002_3c00 as *const _
}
}
impl Deref for FLASH {
type Target = flash::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*FLASH::ptr() }
}
}
#[doc = "FLASH"]
pub mod flash;
#[doc = "General purpose timers"]
pub struct TIM12 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM12 {}
impl TIM12 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const tim12::RegisterBlock {
0x4000_1800 as *const _
}
}
impl Deref for TIM12 {
type Target = tim12::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*TIM12::ptr() }
}
}
#[doc = "General purpose timers"]
pub mod tim12;
#[doc = "General purpose timers"]
pub struct TIM13 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM13 {}
impl TIM13 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const tim13::RegisterBlock {
0x4000_1c00 as *const _
}
}
impl Deref for TIM13 {
type Target = tim13::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*TIM13::ptr() }
}
}
#[doc = "General purpose timers"]
pub mod tim13;
#[doc = "General purpose timers"]
pub struct TIM14 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM14 {}
impl TIM14 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const tim13::RegisterBlock {
0x4000_2000 as *const _
}
}
impl Deref for TIM14 {
type Target = tim13::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*TIM14::ptr() }
}
}
#[doc = "General purpose timers"]
pub struct TIM9 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM9 {}
impl TIM9 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const tim9::RegisterBlock {
0x4001_4000 as *const _
}
}
impl Deref for TIM9 {
type Target = tim9::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*TIM9::ptr() }
}
}
#[doc = "General purpose timers"]
pub mod tim9;
#[doc = "General purpose timers"]
pub struct TIM3 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM3 {}
impl TIM3 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const tim3::RegisterBlock {
0x4000_0400 as *const _
}
}
impl Deref for TIM3 {
type Target = tim3::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*TIM3::ptr() }
}
}
#[doc = "General purpose timers"]
pub mod tim3;
#[doc = "General purpose timers"]
pub struct TIM4 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM4 {}
impl TIM4 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const tim3::RegisterBlock {
0x4000_0800 as *const _
}
}
impl Deref for TIM4 {
type Target = tim3::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*TIM4::ptr() }
}
}
#[doc = "General purpose timers"]
pub struct TIM2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM2 {}
impl TIM2 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const tim2::RegisterBlock {
0x4000_0000 as *const _
}
}
impl Deref for TIM2 {
type Target = tim2::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*TIM2::ptr() }
}
}
#[doc = "General purpose timers"]
pub mod tim2;
#[doc = "General-purpose I/Os"]
pub struct GPIOF {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for GPIOF {}
impl GPIOF {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const gpiof::RegisterBlock {
0x4002_1400 as *const _
}
}
impl Deref for GPIOF {
type Target = gpiof::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*GPIOF::ptr() }
}
}
#[doc = "General-purpose I/Os"]
pub mod gpiof;
#[doc = "General-purpose I/Os"]
pub struct GPIOH {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for GPIOH {}
impl GPIOH {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const gpiof::RegisterBlock {
0x4002_1c00 as *const _
}
}
impl Deref for GPIOH {
type Target = gpiof::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*GPIOH::ptr() }
}
}
#[doc = "General-purpose I/Os"]
pub struct GPIOE {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for GPIOE {}
impl GPIOE {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const gpiof::RegisterBlock {
0x4002_1000 as *const _
}
}
impl Deref for GPIOE {
type Target = gpiof::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*GPIOE::ptr() }
}
}
#[doc = "General-purpose I/Os"]
pub struct GPIOC {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for GPIOC {}
impl GPIOC {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const gpiof::RegisterBlock {
0x4002_0800 as *const _
}
}
impl Deref for GPIOC {
type Target = gpiof::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*GPIOC::ptr() }
}
}
#[doc = "General-purpose I/Os"]
pub struct GPIOG {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for GPIOG {}
impl GPIOG {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const gpiof::RegisterBlock {
0x4002_1800 as *const _
}
}
impl Deref for GPIOG {
type Target = gpiof::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*GPIOG::ptr() }
}
}
#[doc = "General-purpose I/Os"]
pub struct GPIOD {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for GPIOD {}
impl GPIOD {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const gpiof::RegisterBlock {
0x4002_0c00 as *const _
}
}
impl Deref for GPIOD {
type Target = gpiof::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*GPIOD::ptr() }
}
}
#[doc = "General-purpose I/Os"]
pub struct GPIOB {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for GPIOB {}
impl GPIOB {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const gpiob::RegisterBlock {
0x4002_0400 as *const _
}
}
impl Deref for GPIOB {
type Target = gpiob::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*GPIOB::ptr() }
}
}
#[doc = "General-purpose I/Os"]
pub mod gpiob;
#[doc = "General-purpose I/Os"]
pub struct GPIOA {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for GPIOA {}
impl GPIOA {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const gpioa::RegisterBlock {
0x4002_0000 as *const _
}
}
impl Deref for GPIOA {
type Target = gpioa::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*GPIOA::ptr() }
}
}
#[doc = "General-purpose I/Os"]
pub mod gpioa;
#[doc = "General-purpose-timers"]
pub struct TIM10 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM10 {}
impl TIM10 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const tim10::RegisterBlock {
0x4001_4400 as *const _
}
}
impl Deref for TIM10 {
type Target = tim10::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*TIM10::ptr() }
}
}
#[doc = "General-purpose-timers"]
pub mod tim10;
#[doc = "General-purpose-timers"]
pub struct TIM11 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM11 {}
impl TIM11 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const tim11::RegisterBlock {
0x4001_4800 as *const _
}
}
impl Deref for TIM11 {
type Target = tim11::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*TIM11::ptr() }
}
}
#[doc = "General-purpose-timers"]
pub mod tim11;
#[doc = "General-purpose-timers"]
pub struct TIM5 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for TIM5 {}
impl TIM5 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const tim5::RegisterBlock {
0x4000_0c00 as *const _
}
}
impl Deref for TIM5 {
type Target = tim5::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*TIM5::ptr() }
}
}
#[doc = "General-purpose-timers"]
pub mod tim5;
#[doc = "Independent watchdog"]
pub struct IWDG {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for IWDG {}
impl IWDG {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const iwdg::RegisterBlock {
0x4000_3000 as *const _
}
}
impl Deref for IWDG {
type Target = iwdg::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*IWDG::ptr() }
}
}
#[doc = "Independent watchdog"]
pub mod iwdg;
#[doc = "Inter-integrated circuit"]
pub struct I2C2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for I2C2 {}
impl I2C2 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const i2c1::RegisterBlock {
0x4000_5800 as *const _
}
}
impl Deref for I2C2 {
type Target = i2c1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*I2C2::ptr() }
}
}
#[doc = "Inter-integrated circuit"]
pub struct I2C1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for I2C1 {}
impl I2C1 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const i2c1::RegisterBlock {
0x4000_5400 as *const _
}
}
impl Deref for I2C1 {
type Target = i2c1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*I2C1::ptr() }
}
}
#[doc = "Inter-integrated circuit"]
pub mod i2c1;
#[doc = "Inter-integrated circuit"]
pub struct I2C3 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for I2C3 {}
impl I2C3 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const i2c1::RegisterBlock {
0x4000_5c00 as *const _
}
}
impl Deref for I2C3 {
type Target = i2c1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*I2C3::ptr() }
}
}
#[doc = "Low power timer"]
pub struct LPTIM {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for LPTIM {}
impl LPTIM {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const lptim::RegisterBlock {
0x4000_2400 as *const _
}
}
impl Deref for LPTIM {
type Target = lptim::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*LPTIM::ptr() }
}
}
#[doc = "Low power timer"]
pub mod lptim;
#[doc = "Power control"]
pub struct PWR {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for PWR {}
impl PWR {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const pwr::RegisterBlock {
0x4000_7000 as *const _
}
}
impl Deref for PWR {
type Target = pwr::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*PWR::ptr() }
}
}
#[doc = "Power control"]
pub mod pwr;
#[doc = "QuadSPI interface"]
pub struct QUADSPI {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for QUADSPI {}
impl QUADSPI {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const quadspi::RegisterBlock {
0xa000_1000 as *const _
}
}
impl Deref for QUADSPI {
type Target = quadspi::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*QUADSPI::ptr() }
}
}
#[doc = "QuadSPI interface"]
pub mod quadspi;
#[doc = "Random number generator"]
pub struct RNG {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for RNG {}
impl RNG {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const rng::RegisterBlock {
0x5006_0800 as *const _
}
}
impl Deref for RNG {
type Target = rng::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*RNG::ptr() }
}
}
#[doc = "Random number generator"]
pub mod rng;
#[doc = "Real-time clock"]
pub struct RTC {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for RTC {}
impl RTC {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const rtc::RegisterBlock {
0x4000_2800 as *const _
}
}
impl Deref for RTC {
type Target = rtc::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*RTC::ptr() }
}
}
#[doc = "Real-time clock"]
pub mod rtc;
#[doc = "Reset and clock control"]
pub struct RCC {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for RCC {}
impl RCC {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const rcc::RegisterBlock {
0x4002_3800 as *const _
}
}
impl Deref for RCC {
type Target = rcc::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*RCC::ptr() }
}
}
#[doc = "Reset and clock control"]
pub mod rcc;
#[doc = "Secure digital input/output interface"]
pub struct SDIO {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SDIO {}
impl SDIO {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const sdio::RegisterBlock {
0x4001_2c00 as *const _
}
}
impl Deref for SDIO {
type Target = sdio::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*SDIO::ptr() }
}
}
#[doc = "Secure digital input/output interface"]
pub mod sdio;
#[doc = "Serial audio interface"]
pub struct SAI {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SAI {}
impl SAI {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const sai::RegisterBlock {
0x4001_5800 as *const _
}
}
impl Deref for SAI {
type Target = sai::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*SAI::ptr() }
}
}
#[doc = "Serial audio interface"]
pub mod sai;
#[doc = "Serial peripheral interface"]
pub struct SPI5 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SPI5 {}
impl SPI5 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const spi1::RegisterBlock {
0x4001_5000 as *const _
}
}
impl Deref for SPI5 {
type Target = spi1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*SPI5::ptr() }
}
}
#[doc = "Serial peripheral interface"]
pub struct SPI4 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SPI4 {}
impl SPI4 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const spi1::RegisterBlock {
0x4001_3400 as *const _
}
}
impl Deref for SPI4 {
type Target = spi1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*SPI4::ptr() }
}
}
#[doc = "Serial peripheral interface"]
pub struct SPI1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SPI1 {}
impl SPI1 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const spi1::RegisterBlock {
0x4001_3000 as *const _
}
}
impl Deref for SPI1 {
type Target = spi1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*SPI1::ptr() }
}
}
#[doc = "Serial peripheral interface"]
pub mod spi1;
#[doc = "Serial peripheral interface"]
pub struct SPI2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SPI2 {}
impl SPI2 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const spi1::RegisterBlock {
0x4000_3800 as *const _
}
}
impl Deref for SPI2 {
type Target = spi1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*SPI2::ptr() }
}
}
#[doc = "Serial peripheral interface"]
pub struct SPI6 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SPI6 {}
impl SPI6 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const spi1::RegisterBlock {
0x4001_5400 as *const _
}
}
impl Deref for SPI6 {
type Target = spi1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*SPI6::ptr() }
}
}
#[doc = "Serial peripheral interface"]
pub struct SPI3 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SPI3 {}
impl SPI3 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const spi1::RegisterBlock {
0x4000_3c00 as *const _
}
}
impl Deref for SPI3 {
type Target = spi1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*SPI3::ptr() }
}
}
#[doc = "System configuration controller"]
pub struct SYSCFG {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SYSCFG {}
impl SYSCFG {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const syscfg::RegisterBlock {
0x4001_3800 as *const _
}
}
impl Deref for SYSCFG {
type Target = syscfg::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*SYSCFG::ptr() }
}
}
#[doc = "System configuration controller"]
pub mod syscfg;
#[doc = "Universal synchronous asynchronous receiver transmitter"]
pub struct USART3 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for USART3 {}
impl USART3 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const usart1::RegisterBlock {
0x4000_4800 as *const _
}
}
impl Deref for USART3 {
type Target = usart1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*USART3::ptr() }
}
}
#[doc = "Universal synchronous asynchronous receiver transmitter"]
pub struct UART4 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for UART4 {}
impl UART4 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const usart1::RegisterBlock {
0x4000_4c00 as *const _
}
}
impl Deref for UART4 {
type Target = usart1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*UART4::ptr() }
}
}
#[doc = "Universal synchronous asynchronous receiver transmitter"]
pub struct USART6 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for USART6 {}
impl USART6 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const usart1::RegisterBlock {
0x4001_1400 as *const _
}
}
impl Deref for USART6 {
type Target = usart1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*USART6::ptr() }
}
}
#[doc = "Universal synchronous asynchronous receiver transmitter"]
pub struct USART2 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for USART2 {}
impl USART2 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const usart1::RegisterBlock {
0x4000_4400 as *const _
}
}
impl Deref for USART2 {
type Target = usart1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*USART2::ptr() }
}
}
#[doc = "Universal synchronous asynchronous receiver transmitter"]
pub struct UART5 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for UART5 {}
impl UART5 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const usart1::RegisterBlock {
0x4000_5000 as *const _
}
}
impl Deref for UART5 {
type Target = usart1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*UART5::ptr() }
}
}
#[doc = "Universal synchronous asynchronous receiver transmitter"]
pub struct UART7 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for UART7 {}
impl UART7 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const usart1::RegisterBlock {
0x4000_7800 as *const _
}
}
impl Deref for UART7 {
type Target = usart1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*UART7::ptr() }
}
}
#[doc = "Universal synchronous asynchronous receiver transmitter"]
pub struct UART8 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for UART8 {}
impl UART8 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const usart1::RegisterBlock {
0x4000_7c00 as *const _
}
}
impl Deref for UART8 {
type Target = usart1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*UART8::ptr() }
}
}
#[doc = "Universal synchronous asynchronous receiver transmitter"]
pub struct UART10 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for UART10 {}
impl UART10 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const usart1::RegisterBlock {
0x4001_1c00 as *const _
}
}
impl Deref for UART10 {
type Target = usart1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*UART10::ptr() }
}
}
#[doc = "Universal synchronous asynchronous receiver transmitter"]
pub struct USART1 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for USART1 {}
impl USART1 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const usart1::RegisterBlock {
0x4001_1000 as *const _
}
}
impl Deref for USART1 {
type Target = usart1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*USART1::ptr() }
}
}
#[doc = "Universal synchronous asynchronous receiver transmitter"]
pub mod usart1;
#[doc = "Universal synchronous asynchronous receiver transmitter"]
pub struct UART9 {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for UART9 {}
impl UART9 {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const usart1::RegisterBlock {
0x4001_1800 as *const _
}
}
impl Deref for UART9 {
type Target = usart1::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*UART9::ptr() }
}
}
#[doc = "USB on the go full speed"]
pub struct OTG_FS_DEVICE {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for OTG_FS_DEVICE {}
impl OTG_FS_DEVICE {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const otg_fs_device::RegisterBlock {
0x5000_0800 as *const _
}
}
impl Deref for OTG_FS_DEVICE {
type Target = otg_fs_device::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*OTG_FS_DEVICE::ptr() }
}
}
#[doc = "USB on the go full speed"]
pub mod otg_fs_device;
#[doc = "USB on the go full speed"]
pub struct OTG_FS_HOST {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for OTG_FS_HOST {}
impl OTG_FS_HOST {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const otg_fs_host::RegisterBlock {
0x5000_0400 as *const _
}
}
impl Deref for OTG_FS_HOST {
type Target = otg_fs_host::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*OTG_FS_HOST::ptr() }
}
}
#[doc = "USB on the go full speed"]
pub mod otg_fs_host;
#[doc = "USB on the go full speed"]
pub struct OTG_FS_PWRCLK {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for OTG_FS_PWRCLK {}
impl OTG_FS_PWRCLK {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const otg_fs_pwrclk::RegisterBlock {
0x5000_0e00 as *const _
}
}
impl Deref for OTG_FS_PWRCLK {
type Target = otg_fs_pwrclk::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*OTG_FS_PWRCLK::ptr() }
}
}
#[doc = "USB on the go full speed"]
pub mod otg_fs_pwrclk;
#[doc = "USB on the go full speed"]
pub struct OTG_FS_GLOBAL {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for OTG_FS_GLOBAL {}
impl OTG_FS_GLOBAL {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const otg_fs_global::RegisterBlock {
0x5000_0000 as *const _
}
}
impl Deref for OTG_FS_GLOBAL {
type Target = otg_fs_global::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*OTG_FS_GLOBAL::ptr() }
}
}
#[doc = "USB on the go full speed"]
pub mod otg_fs_global;
#[doc = "Window watchdog"]
pub struct WWDG {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for WWDG {}
impl WWDG {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const wwdg::RegisterBlock {
0x4000_2c00 as *const _
}
}
impl Deref for WWDG {
type Target = wwdg::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*WWDG::ptr() }
}
}
#[doc = "Window watchdog"]
pub mod wwdg;
#[doc = "Flexible static memory controller"]
pub struct FSMC {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for FSMC {}
impl FSMC {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const fsmc::RegisterBlock {
0xa000_0000 as *const _
}
}
impl Deref for FSMC {
type Target = fsmc::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*FSMC::ptr() }
}
}
#[doc = "Flexible static memory controller"]
pub mod fsmc;
#[doc = "ADC common registers"]
pub struct ADC_COMMON {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for ADC_COMMON {}
impl ADC_COMMON {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const adc_common::RegisterBlock {
0x4001_2300 as *const _
}
}
impl Deref for ADC_COMMON {
type Target = adc_common::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*ADC_COMMON::ptr() }
}
}
#[doc = "ADC common registers"]
pub mod adc_common;
#[doc = "Floting point unit"]
pub struct FPU {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for FPU {}
impl FPU {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const fpu::RegisterBlock {
0xe000_ef34 as *const _
}
}
impl Deref for FPU {
type Target = fpu::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*FPU::ptr() }
}
}
#[doc = "Floting point unit"]
pub mod fpu;
#[doc = "SysTick timer"]
pub struct STK {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for STK {}
impl STK {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const stk::RegisterBlock {
0xe000_e010 as *const _
}
}
impl Deref for STK {
type Target = stk::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*STK::ptr() }
}
}
#[doc = "SysTick timer"]
pub mod stk;
#[doc = "Nested vectored interrupt controller"]
pub struct NVIC_STIR {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for NVIC_STIR {}
impl NVIC_STIR {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const nvic_stir::RegisterBlock {
0xe000_ef00 as *const _
}
}
impl Deref for NVIC_STIR {
type Target = nvic_stir::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*NVIC_STIR::ptr() }
}
}
#[doc = "Nested vectored interrupt controller"]
pub mod nvic_stir;
#[doc = "Floating point unit CPACR"]
pub struct FPU_CPACR {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for FPU_CPACR {}
impl FPU_CPACR {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const fpu_cpacr::RegisterBlock {
0xe000_ed88 as *const _
}
}
impl Deref for FPU_CPACR {
type Target = fpu_cpacr::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*FPU_CPACR::ptr() }
}
}
#[doc = "Floating point unit CPACR"]
pub mod fpu_cpacr;
#[doc = "System control block ACTLR"]
pub struct SCB_ACTRL {
_marker: PhantomData<*const ()>,
}
unsafe impl Send for SCB_ACTRL {}
impl SCB_ACTRL {
#[doc = r"Returns a pointer to the register block"]
#[inline(always)]
pub const fn ptr() -> *const scb_actrl::RegisterBlock {
0xe000_e008 as *const _
}
}
impl Deref for SCB_ACTRL {
type Target = scb_actrl::RegisterBlock;
#[inline(always)]
fn deref(&self) -> &Self::Target {
unsafe { &*SCB_ACTRL::ptr() }
}
}
#[doc = "System control block ACTLR"]
pub mod scb_actrl;
#[no_mangle]
static mut DEVICE_PERIPHERALS: bool = false;
#[doc = r"All the peripherals"]
#[allow(non_snake_case)]
pub struct Peripherals {
#[doc = "AES"]
pub AES: AES,
#[doc = "TIM1"]
pub TIM1: TIM1,
#[doc = "TIM8"]
pub TIM8: TIM8,
#[doc = "ADC1"]
pub ADC1: ADC1,
#[doc = "TIM7"]
pub TIM7: TIM7,
#[doc = "TIM6"]
pub TIM6: TIM6,
#[doc = "CAN1"]
pub CAN1: CAN1,
#[doc = "CAN2"]
pub CAN2: CAN2,
#[doc = "CAN3"]
pub CAN3: CAN3,
#[doc = "CRC"]
pub CRC: CRC,
#[doc = "DBGMCU"]
pub DBGMCU: DBGMCU,
#[doc = "DFSDM2"]
pub DFSDM2: DFSDM2,
#[doc = "DFSDM1"]
pub DFSDM1: DFSDM1,
#[doc = "DAC"]
pub DAC: DAC,
#[doc = "DMA1"]
pub DMA1: DMA1,
#[doc = "DMA2"]
pub DMA2: DMA2,
#[doc = "EXTI"]
pub EXTI: EXTI,
#[doc = "FMPI2C"]
pub FMPI2C: FMPI2C,
#[doc = "FLASH"]
pub FLASH: FLASH,
#[doc = "TIM12"]
pub TIM12: TIM12,
#[doc = "TIM13"]
pub TIM13: TIM13,
#[doc = "TIM14"]
pub TIM14: TIM14,
#[doc = "TIM9"]
pub TIM9: TIM9,
#[doc = "TIM3"]
pub TIM3: TIM3,
#[doc = "TIM4"]
pub TIM4: TIM4,
#[doc = "TIM2"]
pub TIM2: TIM2,
#[doc = "GPIOF"]
pub GPIOF: GPIOF,
#[doc = "GPIOH"]
pub GPIOH: GPIOH,
#[doc = "GPIOE"]
pub GPIOE: GPIOE,
#[doc = "GPIOC"]
pub GPIOC: GPIOC,
#[doc = "GPIOG"]
pub GPIOG: GPIOG,
#[doc = "GPIOD"]
pub GPIOD: GPIOD,
#[doc = "GPIOB"]
pub GPIOB: GPIOB,
#[doc = "GPIOA"]
pub GPIOA: GPIOA,
#[doc = "TIM10"]
pub TIM10: TIM10,
#[doc = "TIM11"]
pub TIM11: TIM11,
#[doc = "TIM5"]
pub TIM5: TIM5,
#[doc = "IWDG"]
pub IWDG: IWDG,
#[doc = "I2C2"]
pub I2C2: I2C2,
#[doc = "I2C1"]
pub I2C1: I2C1,
#[doc = "I2C3"]
pub I2C3: I2C3,
#[doc = "LPTIM"]
pub LPTIM: LPTIM,
#[doc = "PWR"]
pub PWR: PWR,
#[doc = "QUADSPI"]
pub QUADSPI: QUADSPI,
#[doc = "RNG"]
pub RNG: RNG,
#[doc = "RTC"]
pub RTC: RTC,
#[doc = "RCC"]
pub RCC: RCC,
#[doc = "SDIO"]
pub SDIO: SDIO,
#[doc = "SAI"]
pub SAI: SAI,
#[doc = "SPI5"]
pub SPI5: SPI5,
#[doc = "SPI4"]
pub SPI4: SPI4,
#[doc = "SPI1"]
pub SPI1: SPI1,
#[doc = "SPI2"]
pub SPI2: SPI2,
#[doc = "SPI6"]
pub SPI6: SPI6,
#[doc = "SPI3"]
pub SPI3: SPI3,
#[doc = "SYSCFG"]
pub SYSCFG: SYSCFG,
#[doc = "USART3"]
pub USART3: USART3,
#[doc = "UART4"]
pub UART4: UART4,
#[doc = "USART6"]
pub USART6: USART6,
#[doc = "USART2"]
pub USART2: USART2,
#[doc = "UART5"]
pub UART5: UART5,
#[doc = "UART7"]
pub UART7: UART7,
#[doc = "UART8"]
pub UART8: UART8,
#[doc = "UART10"]
pub UART10: UART10,
#[doc = "USART1"]
pub USART1: USART1,
#[doc = "UART9"]
pub UART9: UART9,
#[doc = "OTG_FS_DEVICE"]
pub OTG_FS_DEVICE: OTG_FS_DEVICE,
#[doc = "OTG_FS_HOST"]
pub OTG_FS_HOST: OTG_FS_HOST,
#[doc = "OTG_FS_PWRCLK"]
pub OTG_FS_PWRCLK: OTG_FS_PWRCLK,
#[doc = "OTG_FS_GLOBAL"]
pub OTG_FS_GLOBAL: OTG_FS_GLOBAL,
#[doc = "WWDG"]
pub WWDG: WWDG,
#[doc = "FSMC"]
pub FSMC: FSMC,
#[doc = "ADC_COMMON"]
pub ADC_COMMON: ADC_COMMON,
#[doc = "FPU"]
pub FPU: FPU,
#[doc = "STK"]
pub STK: STK,
#[doc = "NVIC_STIR"]
pub NVIC_STIR: NVIC_STIR,
#[doc = "FPU_CPACR"]
pub FPU_CPACR: FPU_CPACR,
#[doc = "SCB_ACTRL"]
pub SCB_ACTRL: SCB_ACTRL,
}
impl Peripherals {
#[doc = r"Returns all the peripherals *once*"]
#[inline]
pub fn take() -> Option<Self> {
cortex_m::interrupt::free(|_| {
if unsafe { DEVICE_PERIPHERALS } {
None
} else {
Some(unsafe { Peripherals::steal() })
}
})
}
#[doc = r"Unchecked version of `Peripherals::take`"]
#[inline]
pub unsafe fn steal() -> Self {
DEVICE_PERIPHERALS = true;
Peripherals {
AES: AES {
_marker: PhantomData,
},
TIM1: TIM1 {
_marker: PhantomData,
},
TIM8: TIM8 {
_marker: PhantomData,
},
ADC1: ADC1 {
_marker: PhantomData,
},
TIM7: TIM7 {
_marker: PhantomData,
},
TIM6: TIM6 {
_marker: PhantomData,
},
CAN1: CAN1 {
_marker: PhantomData,
},
CAN2: CAN2 {
_marker: PhantomData,
},
CAN3: CAN3 {
_marker: PhantomData,
},
CRC: CRC {
_marker: PhantomData,
},
DBGMCU: DBGMCU {
_marker: PhantomData,
},
DFSDM2: DFSDM2 {
_marker: PhantomData,
},
DFSDM1: DFSDM1 {
_marker: PhantomData,
},
DAC: DAC {
_marker: PhantomData,
},
DMA1: DMA1 {
_marker: PhantomData,
},
DMA2: DMA2 {
_marker: PhantomData,
},
EXTI: EXTI {
_marker: PhantomData,
},
FMPI2C: FMPI2C {
_marker: PhantomData,
},
FLASH: FLASH {
_marker: PhantomData,
},
TIM12: TIM12 {
_marker: PhantomData,
},
TIM13: TIM13 {
_marker: PhantomData,
},
TIM14: TIM14 {
_marker: PhantomData,
},
TIM9: TIM9 {
_marker: PhantomData,
},
TIM3: TIM3 {
_marker: PhantomData,
},
TIM4: TIM4 {
_marker: PhantomData,
},
TIM2: TIM2 {
_marker: PhantomData,
},
GPIOF: GPIOF {
_marker: PhantomData,
},
GPIOH: GPIOH {
_marker: PhantomData,
},
GPIOE: GPIOE {
_marker: PhantomData,
},
GPIOC: GPIOC {
_marker: PhantomData,
},
GPIOG: GPIOG {
_marker: PhantomData,
},
GPIOD: GPIOD {
_marker: PhantomData,
},
GPIOB: GPIOB {
_marker: PhantomData,
},
GPIOA: GPIOA {
_marker: PhantomData,
},
TIM10: TIM10 {
_marker: PhantomData,
},
TIM11: TIM11 {
_marker: PhantomData,
},
TIM5: TIM5 {
_marker: PhantomData,
},
IWDG: IWDG {
_marker: PhantomData,
},
I2C2: I2C2 {
_marker: PhantomData,
},
I2C1: I2C1 {
_marker: PhantomData,
},
I2C3: I2C3 {
_marker: PhantomData,
},
LPTIM: LPTIM {
_marker: PhantomData,
},
PWR: PWR {
_marker: PhantomData,
},
QUADSPI: QUADSPI {
_marker: PhantomData,
},
RNG: RNG {
_marker: PhantomData,
},
RTC: RTC {
_marker: PhantomData,
},
RCC: RCC {
_marker: PhantomData,
},
SDIO: SDIO {
_marker: PhantomData,
},
SAI: SAI {
_marker: PhantomData,
},
SPI5: SPI5 {
_marker: PhantomData,
},
SPI4: SPI4 {
_marker: PhantomData,
},
SPI1: SPI1 {
_marker: PhantomData,
},
SPI2: SPI2 {
_marker: PhantomData,
},
SPI6: SPI6 {
_marker: PhantomData,
},
SPI3: SPI3 {
_marker: PhantomData,
},
SYSCFG: SYSCFG {
_marker: PhantomData,
},
USART3: USART3 {
_marker: PhantomData,
},
UART4: UART4 {
_marker: PhantomData,
},
USART6: USART6 {
_marker: PhantomData,
},
USART2: USART2 {
_marker: PhantomData,
},
UART5: UART5 {
_marker: PhantomData,
},
UART7: UART7 {
_marker: PhantomData,
},
UART8: UART8 {
_marker: PhantomData,
},
UART10: UART10 {
_marker: PhantomData,
},
USART1: USART1 {
_marker: PhantomData,
},
UART9: UART9 {
_marker: PhantomData,
},
OTG_FS_DEVICE: OTG_FS_DEVICE {
_marker: PhantomData,
},
OTG_FS_HOST: OTG_FS_HOST {
_marker: PhantomData,
},
OTG_FS_PWRCLK: OTG_FS_PWRCLK {
_marker: PhantomData,
},
OTG_FS_GLOBAL: OTG_FS_GLOBAL {
_marker: PhantomData,
},
WWDG: WWDG {
_marker: PhantomData,
},
FSMC: FSMC {
_marker: PhantomData,
},
ADC_COMMON: ADC_COMMON {
_marker: PhantomData,
},
FPU: FPU {
_marker: PhantomData,
},
STK: STK {
_marker: PhantomData,
},
NVIC_STIR: NVIC_STIR {
_marker: PhantomData,
},
FPU_CPACR: FPU_CPACR {
_marker: PhantomData,
},
SCB_ACTRL: SCB_ACTRL {
_marker: PhantomData,
},
}
}
}