~ruther/avr-device

ref: 5686b3b630cc37080bc2f4dea11489e21fb3ae96 avr-device/src/asm.rs -rw-r--r-- 301 bytes
5686b3b6 — Rahix Update CHANGELOG 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