Macro stm32_hal2::access_global [−][src]
macro_rules! access_global { ($NAME_GLOBAL:ident, $name_local:ident, $cs:expr) => { ... }; }
Expand description
Syntax helper for getting global variables of the form Mutex<RefCell<Option>>>
from an interrupt-free
context - eg in interrupt handlers.
Example: access_global!(DELAY, delay, cs)