Interrupt enable and nop function

This commit is contained in:
Jeremy Soller 2016-11-14 10:46:53 -07:00
parent 3a24938387
commit b83bdb3643

View file

@ -23,6 +23,12 @@ pub unsafe fn halt() {
::std::thread::yield_now();
}
/// Set interrupts and nop
#[inline(always)]
pub unsafe fn enable_and_nop() {
enable();
}
/// Set interrupts and halt
#[inline(always)]
pub unsafe fn enable_and_halt() {