~ruther/avr-device

ref: 90075ce574eee6881db2fdde12afa66256d441e2 avr-device/src/asm.rs -rw-r--r-- 301 bytes
90075ce5 — Karl ThorĂ©n Add basic support for ATmega168 4 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") }
}
Do not follow this link