embassy-rp

Crates

git

Versions

rp2040

Flavors

Type Alias SpinlockMutex

Source
pub type SpinlockMutex<const N: usize, T> = Mutex<SpinlockRawMutex<N>, T>;
Expand description

A mutex that allows borrowing data across executors and interrupts by utilizing an hardware spinlock.

§Safety

This mutex is safe to share between different executors and interrupts.

Aliased Type§

struct SpinlockMutex<const N: usize, T> { /* private fields */ }