~ruther/avr-device

ref: 706a5c26062b2d0026957a30fab918a932f896a5 avr-device/src/asm.rs -rw-r--r-- 301 bytes
706a5c26 — Rahix interrupt: Fix interrupt::free() reading wrong address 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//! Assembly instructions

/// No Operation
#[inline(always)]
pub fn nop() {
    unsafe { llvm_asm!("nop") }
}

/// Sleep / Wait For Interrupt
#[inline(always)]
pub fn sleep() {
    unsafe { llvm_asm!("sleep") }
}

/// Watchdog Reset
#[inline(always)]
pub fn wdr() {
    unsafe { llvm_asm!("wdr") }
}