pub unsafe extern "C" fn k_cpu_atomic_idle(key: u32)
Expand description
@brief Make the CPU idle in an atomic fashion.
Similar to k_cpu_idle(), but must be called with interrupts locked.
Enabling interrupts and entering a low-power mode will be atomic, i.e. there will be no period of time where interrupts are enabled before the processor enters a low-power mode.
After waking up from the low-power mode, the interrupt lockout state will be restored as if by irq_unlock(key).
@param key Interrupt locking key obtained from irq_lock().