ws63-hal 0.1.0

Hardware Abstraction Layer for HiSilicon WS63 (RISC-V RV32IMFC_Zicsr)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Interrupt management for WS63.
pub use crate::soc::ws63::Interrupt;

#[inline]
pub fn enable(_interrupt: Interrupt) {
    unsafe { riscv::interrupt::enable() };
}

#[inline]
pub fn disable(_interrupt: Interrupt) {}

#[inline]
pub fn free<F, R>(f: F) -> R
where
    F: FnOnce() -> R,
{
    riscv::interrupt::free(f)
}