~ruther/avr-device

ref: 203ca2d44d70267c01490052d731bf1c777dab6d avr-device/src/asm.rs -rw-r--r-- 301 bytes
203ca2d4 — Andrew Dona-Couch -- GitHub drop ICE Fix Changelog link 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