rstubs::arch::int

Function idle

source
pub fn idle()
Expand description

Enable interrupts and halt execution.

These two instructions are executed atomically, preventing race conditions, where an interrupt in between is missed.