#![allow(non_snake_case, non_upper_case_globals)]
#![allow(non_camel_case_types)]
use crate::{RORegister, RWRegister, WORegister};
#[cfg(not(feature = "nosync"))]
use core::marker::PhantomData;
pub mod SSPSR {}
pub mod CSPSR {}
pub mod ACPR {}
pub mod SPPR {}
pub mod TYPE {}
pub mod LSR {}
pub mod LAR {}
#[repr(C)]
pub struct RegisterBlock {
pub SSPSR: RORegister<u32>,
pub CSPSR: RWRegister<u32>,
_reserved1: [u8; 8],
pub ACPR: RWRegister<u32>,
_reserved2: [u8; 220],
pub SPPR: RWRegister<u32>,
_reserved3: [u8; 3772],
pub LAR: WORegister<u32>,
pub LSR: RORegister<u32>,
_reserved4: [u8; 16],
pub TYPE: RORegister<u32>,
}
pub struct ResetValues {
pub SSPSR: u32,
pub CSPSR: u32,
pub ACPR: u32,
pub SPPR: u32,
pub LAR: u32,
pub LSR: u32,
pub TYPE: 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 {}