1
0
Fork 0
zynq-rs/src/cortex_a9/asm.rs

12 lines
182 B
Rust
Raw Normal View History

2019-05-05 20:56:23 +08:00
/// The classic no-op
#[inline]
pub fn nop() {
unsafe { asm!("nop" :::: "volatile") }
}
/// Wait For Event
#[inline]
pub fn wfe() {
unsafe { asm!("wfe" :::: "volatile") }
}