pub unsafe fn set_priority(_core: Cpu, which: CpuInterrupt, priority: Priority) {
        let intr = INTERRUPT_CORE0::regs();
        intr.cpu_int_pri(which as usize)
            .write(|w| unsafe { w.map().bits(priority as u8) });
    }
Set the priority level of an CPU interrupt

# Safety

Great care must be taken when using this function; avoid changing the
priority of interrupts 1 - 15.
esp-hal/src/interrupt/riscv.rs