Skip to content
Snippets Groups Projects
Commit 5061aa35 authored by Per's avatar Per
Browse files

no_read in lib.rs

parent 1183f096
Branches
No related tags found
No related merge requests found
...@@ -137,7 +137,7 @@ where ...@@ -137,7 +137,7 @@ where
if ceiling == max_priority { if ceiling == max_priority {
atomic(t, |t| f(data, t)) atomic(t, |t| f(data, t))
} else { } else {
let old = basepri::read(); //let old = basepri::read();
let hw = (max_priority - ceiling) << (8 - _nvic_prio_bits); let hw = (max_priority - ceiling) << (8 - _nvic_prio_bits);
basepri::write(hw); basepri::write(hw);
if cfg!(feature = "wcet_bkpt") { bkpt(); } if cfg!(feature = "wcet_bkpt") { bkpt(); }
...@@ -147,6 +147,7 @@ where ...@@ -147,6 +147,7 @@ where
if cfg!(feature = "wcet_bkpt") { bkpt(); } if cfg!(feature = "wcet_bkpt") { bkpt(); }
if cfg!(feature = "wcet_nop") { nop(); } if cfg!(feature = "wcet_nop") { nop(); }
let old = (max_priority - t.value()) << (8 - _nvic_prio_bits);
basepri::write(old); basepri::write(old);
ret ret
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment