macro_rules! init_globals {
($(($NAME:ident, $val:expr)),* $(,)?) => { ... };
}
Expand description
Initialize one or more globals inside a critical section.
Usage:
init_globals!(
(FLASH, flash),
(SPI_IMU, spi1),
(I2C_MAG, i2c1),
// …
);