Type Definition shared_bus::CortexMMutex

source · []
pub type CortexMMutex<T> = Mutex<RefCell<T>>;
Expand description

Alias for a Cortex-M mutex.

Based on cortex_m::interrupt::Mutex. This mutex works by disabling interrupts while the mutex is locked.

This type is only available with the cortex-m feature.

Trait Implementations

The actual bus that is wrapped inside this mutex.
Create a new mutex of this type.
Lock the mutex and give a closure access to the bus inside.