Interrupt enable and nop function
This commit is contained in:
parent
3a24938387
commit
b83bdb3643
1 changed files with 6 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue