Interrupt enable and nop function
This commit is contained in:
parent
3a24938387
commit
b83bdb3643
|
@ -23,6 +23,12 @@ pub unsafe fn halt() {
|
||||||
::std::thread::yield_now();
|
::std::thread::yield_now();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Set interrupts and nop
|
||||||
|
#[inline(always)]
|
||||||
|
pub unsafe fn enable_and_nop() {
|
||||||
|
enable();
|
||||||
|
}
|
||||||
|
|
||||||
/// Set interrupts and halt
|
/// Set interrupts and halt
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub unsafe fn enable_and_halt() {
|
pub unsafe fn enable_and_halt() {
|
||||||
|
|
Loading…
Reference in a new issue