12 lines
227 B
Rust
12 lines
227 B
Rust
macro_rules! atomic_bits {
|
|
($ldrex:expr) => {
|
|
execute(|| {
|
|
asm!($ldrex
|
|
: "=r"(raw)
|
|
: "r"(address)
|
|
:
|
|
: "volatile");
|
|
})
|
|
};
|
|
}
|