pub mod counters;
pub use e310x::{CLINT, PLIC};
pub struct CorePeripherals {
pub counters: counters::PerformanceCounters,
}
impl CorePeripherals {
pub(crate) fn new() -> Self {
Self {
counters: counters::PerformanceCounters::new(),
}
}
pub unsafe fn steal() -> Self {
Self::new()
}
}