#![allow(non_snake_case, non_upper_case_globals)]
#![allow(non_camel_case_types)]
use crate::{RWRegister, WORegister};
#[cfg(not(feature = "nosync"))]
use core::marker::PhantomData;
pub mod DHCSR {}
pub mod DCRSR {}
pub mod DCRDR {}
pub mod DEMCR {}
#[repr(C)]
pub struct RegisterBlock {
pub DHCSR: RWRegister<u32>,
pub DCRSR: WORegister<u32>,
pub DCRDR: RWRegister<u32>,
pub DEMCR: RWRegister<u32>,
}
pub struct ResetValues {
pub DHCSR: u32,
pub DCRSR: u32,
pub DCRDR: u32,
pub DEMCR: 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 {}