unsafe fn change_current_level(level: Priority) -> Priority {
            unsafe { crate::interrupt::change_current_runlevel(level) }
        }
Prevents interrupts above `level` from firing and returns the
current run level.
esp-hal/src/sync.rs