#![allow(non_snake_case, non_upper_case_globals)]
#![allow(non_camel_case_types)]
use crate::UnsafeWORegister;
#[cfg(not(feature = "nosync"))]
use core::marker::PhantomData;
pub mod ICIALLU {}
pub mod ICIMVAU {
pub mod MVA {
pub const offset: u32 = 0;
pub const mask: u32 = 0xffffffff << offset;
pub mod R {}
pub mod W {}
pub mod RW {}
}
}
pub mod DCIMVAC {
pub use super::ICIMVAU::MVA;
}
pub mod DCISW {}
pub mod DCCMVAU {
pub use super::ICIMVAU::MVA;
}
pub mod DCCMVAC {
pub use super::ICIMVAU::MVA;
}
pub mod DCCSW {}
pub mod DCCIMVAC {
pub use super::ICIMVAU::MVA;
}
pub mod DCCISW {}
pub mod BPIALL {}
#[repr(C)]
pub struct RegisterBlock {
pub ICIALLU: UnsafeWORegister<u32>,
_reserved1: [u8; 4],
pub ICIMVAU: UnsafeWORegister<u32>,
pub DCIMVAC: UnsafeWORegister<u32>,
pub DCISW: UnsafeWORegister<u32>,
pub DCCMVAU: UnsafeWORegister<u32>,
pub DCCMVAC: UnsafeWORegister<u32>,
pub DCCSW: UnsafeWORegister<u32>,
pub DCCIMVAC: UnsafeWORegister<u32>,
pub DCCISW: UnsafeWORegister<u32>,
pub BPIALL: UnsafeWORegister<u32>,
}
pub struct ResetValues {
pub ICIALLU: u32,
pub ICIMVAU: u32,
pub DCIMVAC: u32,
pub DCISW: u32,
pub DCCMVAU: u32,
pub DCCMVAC: u32,
pub DCCSW: u32,
pub DCCIMVAC: u32,
pub DCCISW: u32,
pub BPIALL: u32,
}
#[cfg(not(feature = "nosync"))]
pub struct Instance {
pub(crate) addr: u32,
pub(crate) _marker: PhantomData<*const RegisterBlock>,
}
#[cfg(not(feature = "nosync"))]
impl ::core::ops::Deref for Instance {
type Target = RegisterBlock;
#[inline(always)]
fn deref(&self) -> &RegisterBlock {
unsafe { &*(self.addr as *const _) }
}
}
#[cfg(feature = "rtic")]
unsafe impl Send for Instance {}