rtic 2.2.0

Real-Time Interrupt-driven Concurrency (RTIC): a concurrency framework for building real-time systems
Documentation
pub use riscv_slic::{InterruptNumber, lock, pend, run};

#[cfg(all(
    feature = "riscv-slic",
    not(any(feature = "riscv-clint-backend", feature = "riscv-mecall-backend"))
))]
compile_error!("Building for the riscv-slic, but no compatible backend selected");

/// USE CASE RE-EXPORTS: needed for SLIC-only
pub use riscv_slic::{self, codegen, set_priority};

pub mod interrupt {
    #[inline]
    pub fn disable() {
        riscv_slic::disable();
    }

    #[inline]
    pub unsafe fn enable() {
        unsafe { riscv_slic::enable() };
    }
}