#![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 CTRL {}
pub mod REMAP {}
pub mod COMP0 {}
pub mod COMP1 {}
pub mod COMP2 {}
pub mod COMP3 {}
pub mod COMP4 {}
pub mod COMP5 {}
pub mod COMP6 {}
pub mod COMP7 {}
pub mod COMP8 {}
pub mod COMP9 {}
pub mod COMP10 {}
pub mod COMP11 {}
pub mod COMP12 {}
pub mod COMP13 {}
pub mod COMP14 {}
pub mod COMP15 {}
pub mod LSR {}
pub mod LAR {}
#[repr(C)]
pub struct RegisterBlock {
pub CTRL: RWRegister<u32>,
pub REMAP: RWRegister<u32>,
pub COMP0: RWRegister<u32>,
pub COMP1: RWRegister<u32>,
pub COMP2: RWRegister<u32>,
pub COMP3: RWRegister<u32>,
pub COMP4: RWRegister<u32>,
pub COMP5: RWRegister<u32>,
pub COMP6: RWRegister<u32>,
pub COMP7: RWRegister<u32>,
pub COMP8: RWRegister<u32>,
pub COMP9: RWRegister<u32>,
pub COMP10: RWRegister<u32>,
pub COMP11: RWRegister<u32>,
pub COMP12: RWRegister<u32>,
pub COMP13: RWRegister<u32>,
pub COMP14: RWRegister<u32>,
pub COMP15: RWRegister<u32>,
_reserved1: [u8; 3944],
pub LAR: WORegister<u32>,
pub LSR: RORegister<u32>,
}
pub struct ResetValues {
pub CTRL: u32,
pub REMAP: u32,
pub COMP0: u32,
pub COMP1: u32,
pub COMP2: u32,
pub COMP3: u32,
pub COMP4: u32,
pub COMP5: u32,
pub COMP6: u32,
pub COMP7: u32,
pub COMP8: u32,
pub COMP9: u32,
pub COMP10: u32,
pub COMP11: u32,
pub COMP12: u32,
pub COMP13: u32,
pub COMP14: u32,
pub COMP15: u32,
pub LAR: u32,
pub LSR: 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 {}