macro_rules! make_simple_globals {
    ($(($NAME:ident, $type:ty, $val:expr)),+ $(,)?) => { ... };
}
Expand description

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), )