pub unsafe fn set_priority(_core: Cpu, which: CpuInterrupt, priority: Priority) {
        unsafe {
            PLIC_MX::regs()
                .mxint_pri(which as usize)
                .modify(|_, w| w.cpu_mxint_pri().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