Macro stm32_hal2::make_simple_globals [−][src]
macro_rules! make_simple_globals { ($(($NAME:ident, $type:ty, $val:expr)),+) => { ... }; }
Syntax helper for setting global variables of the form Mutex<Cell<>>>
.
eg in interrupt handlers. Ideal for copy-type variables.
Example: make_simple_globals!( (VALUE, f32, 2.), (SETTING, Setting, Setting::A), )