Function rp2040_hal::sio::spinlock_state

source ·
pub fn spinlock_state() -> [bool; 32]
Expand description

Returns the current state of the spinlocks. Each index corresponds to the associated spinlock, e.g. if index 5 is set to true, it means that Spinlock5 is currently locked.

Note that spinlocks can be claimed or released at any point, so this function cannot guarantee the spinlock is actually available right after calling this function. This function is mainly intended for debugging.