Function msp430::interrupt::free

source ·
pub fn free<F, R>(f: F) -> Rwhere
    F: for<'a> FnOnce(&'a CriticalSection<'a>) -> R,
👎Deprecated since 0.4.0: critical_section::with() allows alternate implementations; interrupt:free() is a hardcoded implementation of critical_section::with() with a different type signature.
Expand description

Execute closure f in an interrupt-free context.

This as also known as a “critical section”.