aboutsummaryrefslogtreecommitdiff
path: root/src/asm.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/asm.rs')
-rw-r--r--src/asm.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/asm.rs b/src/asm.rs
index fd1ce7c..5a35fa3 100644
--- a/src/asm.rs
+++ b/src/asm.rs
@@ -32,6 +32,7 @@ pub fn bkpt() {
/// NOTE that the delay can take much longer if interrupts are serviced during its execution.
#[inline]
pub fn delay(_n: u32) {
+ // NOTE(divide by 4) is easier to compute than `/ 3` is it's just a shift (`>> 2`).
match () {
#[cfg(all(cortex_m, feature = "inline-asm"))]
() => unsafe {