pub const NVIC_PRIO_BITS: u8 = 4;
pub mod interrupts;
pub use self::interrupts::Interrupt;
pub use self::interrupts::Interrupt as interrupt;
pub use super::instances::cryp;
pub use super::instances::dcmi;
pub use super::instances::dma_f765_f7x2_f7x3_f7x7_f7x9 as dma;
pub use super::instances::fmc_f745_f765_f7x6_f7x7_f7x9 as fmc;
pub use super::instances::hash;
pub use super::instances::rng;
pub mod rcc;
pub use super::instances::gpio_f745_f750_f765_f7x6_f7x7_f7x9 as gpio;
pub use super::instances::spi_f745_f765_f7x7 as spi;
pub use super::instances::syscfg_f745_f750_f765_f7x6_f7x7_f7x9 as syscfg;
pub mod adc;
pub use super::instances::dac;
pub use super::instances::iwdg_f745_f750_f765_f7x6_f7x7_f7x9 as iwdg;
pub use super::instances::pwr_f745_f750_f765_f7x6_f7x7_f7x9 as pwr;
pub use super::instances::wwdg;
pub mod tim1;
pub mod tim8;
pub use super::instances::can_f765_f7x7_f7x9 as can;
pub use super::instances::cec;
pub use super::instances::crc_f745_f750_f765_f7x7_f7x9 as crc;
pub use super::instances::dma2d;
pub use super::instances::ethernet_mac;
pub use super::instances::exti_f745_f750_f765_f7x6_f7x7_f7x9 as exti;
pub use super::instances::flash_f765_f7x7_f7x9 as flash;
pub use super::instances::i2c_f745_f750_f765_f7x6_f7x7_f7x9 as i2c;
pub use super::instances::lptim1;
pub use super::instances::ltdc;
pub use super::instances::mdios;
pub use super::instances::otg_fs_global_f745_f750_f765_f7x6_f7x7_f7x9 as otg_fs_global;
pub use super::instances::otg_hs_global_f745_f750_f765_f7x6_f7x7_f7x9 as otg_hs_global;
pub use super::instances::quadspi;
pub use super::instances::rtc_f745_f750_f765_f7x6_f7x7_f7x9 as rtc;
pub use super::instances::sai_f745_f750_f765_f7x6_f7x7_f7x9 as sai;
pub use super::instances::sdmmc_f765_f7x7_f7x9 as sdmmc;
pub use super::instances::spdifrx;
pub use super::instances::tim10_f745_f750_f765_f7x6_f7x7_f7x9 as tim10;
pub use super::instances::tim11_f745_f750_f765_f7x6_f7x7_f7x9 as tim11;
pub use super::instances::tim12_f745_f750_f765_f7x6_f7x7_f7x9 as tim12;
pub use super::instances::tim13_f745_f750_f765_f7x6_f7x7_f7x9 as tim13;
pub use super::instances::tim14_f745_f750_f765_f7x6_f7x7_f7x9 as tim14;
pub use super::instances::tim2_f7x7_f7x9 as tim2;
pub use super::instances::tim3_f7x7_f7x9 as tim3;
pub use super::instances::tim4_f7x7_f7x9 as tim4;
pub use super::instances::tim5_f7x7_f7x9 as tim5;
pub use super::instances::tim6_f745_f750_f765_f7x6_f7x7_f7x9 as tim6;
pub use super::instances::tim7_f745_f750_f765_f7x6_f7x7_f7x9 as tim7;
pub use super::instances::tim9_f745_f750_f765_f7x6_f7x7_f7x9 as tim9;
pub use super::instances::usart_f745_f750_f765_f7x6_f7x7_f7x9 as usart;
pub mod dfsdm;
pub use super::instances::dsi;
pub use super::instances::ethernet_dma;
pub use super::instances::ethernet_mmc;
pub use super::instances::ethernet_ptp;
pub use super::instances::jpeg;
pub use super::instances::otg_fs_device_f745_f750_f765_f7x6_f7x7_f7x9 as otg_fs_device;
pub use super::instances::otg_fs_host_f745_f750_f765_f7x6_f7x7_f7x9 as otg_fs_host;
pub use super::instances::otg_fs_pwrclk;
pub use super::instances::otg_hs_device_f745_f750_f765_f7x6_f7x7_f7x9 as otg_hs_device;
pub use super::instances::otg_hs_host_f745_f750_f765_f7x6_f7x7_f7x9 as otg_hs_host;
pub use super::instances::otg_hs_pwrclk;
pub mod nvic;
pub use super::instances::ac;
pub use super::instances::adc_common_f7x7_f7x9 as adc_common;
pub use super::instances::dbgmcu_f7x7_f7x9 as dbgmcu;
pub use super::instances::fpu;
pub use super::instances::fpu_cpacr;
pub use super::instances::mpu;
pub use super::instances::nvic_stir;
pub use super::instances::pf;
pub use super::instances::scb;
pub use super::instances::scb_actrl;
pub use super::instances::stk;
#[cfg(all(feature = "rtic", not(feature = "nosync")))]
#[allow(non_snake_case)]
pub struct Peripherals {
pub RNG: rng::Instance,
pub HASH: hash::Instance,
pub CRYP: cryp::Instance,
pub DCMI: dcmi::Instance,
pub FMC: fmc::Instance,
pub DMA2: dma::Instance,
pub DMA1: dma::Instance,
pub RCC: rcc::Instance,
pub GPIOD: gpio::Instance,
pub GPIOC: gpio::Instance,
pub GPIOK: gpio::Instance,
pub GPIOJ: gpio::Instance,
pub GPIOI: gpio::Instance,
pub GPIOH: gpio::Instance,
pub GPIOG: gpio::Instance,
pub GPIOF: gpio::Instance,
pub GPIOE: gpio::Instance,
pub GPIOB: gpio::Instance,
pub GPIOA: gpio::Instance,
pub SYSCFG: syscfg::Instance,
pub SPI1: spi::Instance,
pub SPI2: spi::Instance,
pub SPI4: spi::Instance,
pub SPI5: spi::Instance,
pub SPI3: spi::Instance,
pub SPI6: spi::Instance,
pub ADC1: adc::Instance,
pub ADC2: adc::Instance,
pub ADC3: adc::Instance,
pub DAC: dac::Instance,
pub PWR: pwr::Instance,
pub IWDG: iwdg::Instance,
pub WWDG: wwdg::Instance,
pub TIM1: tim1::Instance,
pub TIM8: tim8::Instance,
pub TIM2: tim2::Instance,
pub TIM3: tim3::Instance,
pub TIM4: tim4::Instance,
pub TIM5: tim5::Instance,
pub TIM9: tim9::Instance,
pub TIM12: tim12::Instance,
pub TIM10: tim10::Instance,
pub TIM11: tim11::Instance,
pub TIM13: tim13::Instance,
pub TIM14: tim14::Instance,
pub TIM6: tim6::Instance,
pub TIM7: tim7::Instance,
pub Ethernet_MAC: ethernet_mac::Instance,
pub CRC: crc::Instance,
pub CAN1: can::Instance,
pub CAN2: can::Instance,
pub CAN3: can::Instance,
pub FLASH: flash::Instance,
pub EXTI: exti::Instance,
pub LTDC: ltdc::Instance,
pub SAI1: sai::Instance,
pub SAI2: sai::Instance,
pub DMA2D: dma2d::Instance,
pub QUADSPI: quadspi::Instance,
pub CEC: cec::Instance,
pub SPDIFRX: spdifrx::Instance,
pub SDMMC1: sdmmc::Instance,
pub SDMMC2: sdmmc::Instance,
pub LPTIM1: lptim1::Instance,
pub I2C1: i2c::Instance,
pub I2C2: i2c::Instance,
pub I2C3: i2c::Instance,
pub I2C4: i2c::Instance,
pub RTC: rtc::Instance,
pub USART6: usart::Instance,
pub USART1: usart::Instance,
pub USART3: usart::Instance,
pub USART2: usart::Instance,
pub UART5: usart::Instance,
pub UART4: usart::Instance,
pub UART8: usart::Instance,
pub UART7: usart::Instance,
pub OTG_FS_GLOBAL: otg_fs_global::Instance,
pub OTG_HS_GLOBAL: otg_hs_global::Instance,
pub MDIOS: mdios::Instance,
pub DFSDM: dfsdm::Instance,
pub JPEG: jpeg::Instance,
pub Ethernet_MMC: ethernet_mmc::Instance,
pub Ethernet_PTP: ethernet_ptp::Instance,
pub Ethernet_DMA: ethernet_dma::Instance,
pub OTG_FS_HOST: otg_fs_host::Instance,
pub OTG_FS_DEVICE: otg_fs_device::Instance,
pub OTG_FS_PWRCLK: otg_fs_pwrclk::Instance,
pub OTG_HS_HOST: otg_hs_host::Instance,
pub OTG_HS_DEVICE: otg_hs_device::Instance,
pub OTG_HS_PWRCLK: otg_hs_pwrclk::Instance,
pub DSI: dsi::Instance,
pub NVIC: nvic::Instance,
pub MPU: mpu::Instance,
pub STK: stk::Instance,
pub NVIC_STIR: nvic_stir::Instance,
pub FPU_CPACR: fpu_cpacr::Instance,
pub SCB_ACTRL: scb_actrl::Instance,
pub FPU: fpu::Instance,
pub SCB: scb::Instance,
pub PF: pf::Instance,
pub AC: ac::Instance,
pub ADC_Common: adc_common::Instance,
pub DBGMCU: dbgmcu::Instance,
}
#[cfg(all(feature = "rtic", feature = "nosync"))]
#[allow(non_snake_case)]
pub struct Peripherals {}
#[cfg(all(feature = "rtic", not(feature = "nosync")))]
impl Peripherals {
pub unsafe fn steal() -> Self {
Peripherals {
RNG: rng::RNG::steal(),
HASH: hash::HASH::steal(),
CRYP: cryp::CRYP::steal(),
DCMI: dcmi::DCMI::steal(),
FMC: fmc::FMC::steal(),
DMA2: dma::DMA2::steal(),
DMA1: dma::DMA1::steal(),
RCC: rcc::RCC::steal(),
GPIOD: gpio::GPIOD::steal(),
GPIOC: gpio::GPIOC::steal(),
GPIOK: gpio::GPIOK::steal(),
GPIOJ: gpio::GPIOJ::steal(),
GPIOI: gpio::GPIOI::steal(),
GPIOH: gpio::GPIOH::steal(),
GPIOG: gpio::GPIOG::steal(),
GPIOF: gpio::GPIOF::steal(),
GPIOE: gpio::GPIOE::steal(),
GPIOB: gpio::GPIOB::steal(),
GPIOA: gpio::GPIOA::steal(),
SYSCFG: syscfg::SYSCFG::steal(),
SPI1: spi::SPI1::steal(),
SPI2: spi::SPI2::steal(),
SPI4: spi::SPI4::steal(),
SPI5: spi::SPI5::steal(),
SPI3: spi::SPI3::steal(),
SPI6: spi::SPI6::steal(),
ADC1: adc::ADC1::steal(),
ADC2: adc::ADC2::steal(),
ADC3: adc::ADC3::steal(),
DAC: dac::DAC::steal(),
PWR: pwr::PWR::steal(),
IWDG: iwdg::IWDG::steal(),
WWDG: wwdg::WWDG::steal(),
TIM1: tim1::TIM1::steal(),
TIM8: tim8::TIM8::steal(),
TIM2: tim2::TIM2::steal(),
TIM3: tim3::TIM3::steal(),
TIM4: tim4::TIM4::steal(),
TIM5: tim5::TIM5::steal(),
TIM9: tim9::TIM9::steal(),
TIM12: tim12::TIM12::steal(),
TIM10: tim10::TIM10::steal(),
TIM11: tim11::TIM11::steal(),
TIM13: tim13::TIM13::steal(),
TIM14: tim14::TIM14::steal(),
TIM6: tim6::TIM6::steal(),
TIM7: tim7::TIM7::steal(),
Ethernet_MAC: ethernet_mac::Ethernet_MAC::steal(),
CRC: crc::CRC::steal(),
CAN1: can::CAN1::steal(),
CAN2: can::CAN2::steal(),
CAN3: can::CAN3::steal(),
FLASH: flash::FLASH::steal(),
EXTI: exti::EXTI::steal(),
LTDC: ltdc::LTDC::steal(),
SAI1: sai::SAI1::steal(),
SAI2: sai::SAI2::steal(),
DMA2D: dma2d::DMA2D::steal(),
QUADSPI: quadspi::QUADSPI::steal(),
CEC: cec::CEC::steal(),
SPDIFRX: spdifrx::SPDIFRX::steal(),
SDMMC1: sdmmc::SDMMC1::steal(),
SDMMC2: sdmmc::SDMMC2::steal(),
LPTIM1: lptim1::LPTIM1::steal(),
I2C1: i2c::I2C1::steal(),
I2C2: i2c::I2C2::steal(),
I2C3: i2c::I2C3::steal(),
I2C4: i2c::I2C4::steal(),
RTC: rtc::RTC::steal(),
USART6: usart::USART6::steal(),
USART1: usart::USART1::steal(),
USART3: usart::USART3::steal(),
USART2: usart::USART2::steal(),
UART5: usart::UART5::steal(),
UART4: usart::UART4::steal(),
UART8: usart::UART8::steal(),
UART7: usart::UART7::steal(),
OTG_FS_GLOBAL: otg_fs_global::OTG_FS_GLOBAL::steal(),
OTG_HS_GLOBAL: otg_hs_global::OTG_HS_GLOBAL::steal(),
MDIOS: mdios::MDIOS::steal(),
DFSDM: dfsdm::DFSDM::steal(),
JPEG: jpeg::JPEG::steal(),
Ethernet_MMC: ethernet_mmc::Ethernet_MMC::steal(),
Ethernet_PTP: ethernet_ptp::Ethernet_PTP::steal(),
Ethernet_DMA: ethernet_dma::Ethernet_DMA::steal(),
OTG_FS_HOST: otg_fs_host::OTG_FS_HOST::steal(),
OTG_FS_DEVICE: otg_fs_device::OTG_FS_DEVICE::steal(),
OTG_FS_PWRCLK: otg_fs_pwrclk::OTG_FS_PWRCLK::steal(),
OTG_HS_HOST: otg_hs_host::OTG_HS_HOST::steal(),
OTG_HS_DEVICE: otg_hs_device::OTG_HS_DEVICE::steal(),
OTG_HS_PWRCLK: otg_hs_pwrclk::OTG_HS_PWRCLK::steal(),
DSI: dsi::DSI::steal(),
NVIC: nvic::NVIC::steal(),
MPU: mpu::MPU::steal(),
STK: stk::STK::steal(),
NVIC_STIR: nvic_stir::NVIC_STIR::steal(),
FPU_CPACR: fpu_cpacr::FPU_CPACR::steal(),
SCB_ACTRL: scb_actrl::SCB_ACTRL::steal(),
FPU: fpu::FPU::steal(),
SCB: scb::SCB::steal(),
PF: pf::PF::steal(),
AC: ac::AC::steal(),
ADC_Common: adc_common::ADC_Common::steal(),
DBGMCU: dbgmcu::DBGMCU::steal(),
}
}
}
#[cfg(all(feature = "rtic", feature = "nosync"))]
impl Peripherals {
pub fn steal() -> Self {
Peripherals {}
}
}