Closed shepmaster closed 4 years ago
fn toggle_raw(mask: Self::T) { unsafe { *Self::ADDRESS ^= mask; } }
As I understand it, without using volatile operations, the compiler can see something like port = on; port = off; port = on and optimize that to just port = on.
port = on; port = off; port = on
port = on
As I understand it, without using volatile operations, the compiler can see something like
port = on; port = off; port = on
and optimize that to justport = on
.