pub fn idle()
Enable interrupts and halt execution.
These two instructions are executed atomically, preventing race conditions, where an interrupt in between is missed.