Module stm32_hal2::prelude
source · Expand description
In the prelude, we export helper macros.
Macros§
- Syntax helper for getting global variables of the form
Mutex<RefCell<Option>>>
from an interrupt-free context - eg in interrupt handlers. - Similar to
access_global
, but combining multiple calls. - Syntax helper for setting global variables of the form
Mutex<RefCell<Option>>>
. eg in interrupt handlers. Ideal for non-copy-type variables that can’t be initialized immediatiately. - Syntax helper for setting global variables of the form
Mutex<Cell<>>>
. eg in interrupt handlers. Ideal for copy-type variables.