Function tm4c123x_hal::bb::toggle_bit
source · pub unsafe fn toggle_bit<T>(address: *const T, bit: u8)
Expand description
Sets and then Clears a bit at the given address atomically, using the bit- banding feature.
Safety
We take a const pointer and mutate it, but that’s because the svd2rust crate will only give us const pointers.