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