diff options
author | 2016-10-15 23:15:34 +0100 | |
---|---|---|
committer | 2016-10-15 23:15:34 +0100 | |
commit | 1cf1dfbae4d05a00d8c0c5c1298ae08e768739f9 (patch) | |
tree | babefeda07eab400da1662794de153935356ba7a /src | |
parent | 2b57c7d06256e88e6b0bfdbf311ab3cfb29fba6c (diff) | |
download | cortex-m-1cf1dfbae4d05a00d8c0c5c1298ae08e768739f9.tar.gz cortex-m-1cf1dfbae4d05a00d8c0c5c1298ae08e768739f9.tar.zst cortex-m-1cf1dfbae4d05a00d8c0c5c1298ae08e768739f9.zip |
Added nop() function
Diffstat (limited to 'src')
-rw-r--r-- | src/asm.rs | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -49,3 +49,8 @@ pub unsafe fn wfi() { () => {} } } + +/// A no-operation. Useful to stop delay loops being elided. +pub fn nop() { + asm!("nop" :::: "volatile"); +} |