#![allow(non_snake_case, non_upper_case_globals)]
#![allow(non_camel_case_types)]
use crate::{RORegister, RWRegister};
#[cfg(not(feature = "nosync"))]
use core::marker::PhantomData;
pub mod CSR {}
pub mod RVR {}
pub mod CVR {}
pub mod CALIB {}
#[repr(C)]
pub struct RegisterBlock {
pub CSR: RWRegister<u32>,
pub RVR: RWRegister<u32>,
pub CVR: RWRegister<u32>,
_reserved1: [u8; 16],
pub CALIB: RORegister<u32>,
}
pub struct ResetValues {
pub CSR: u32,
pub RVR: u32,
pub CVR: u32,
pub CALIB: 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 {}