pub unsafe fn bind_interrupt(interrupt: Interrupt, handler: unsafe extern "C" fn()) {
        let ptr = unsafe {
            &pac::__INTERRUPTS[interrupt as usize]._handler as *const _
                as *mut unsafe extern "C" fn()
        };
        unsafe {
            ptr.write_volatile(handler);
        }
    }
Binds the given interrupt to the given handler.

# Safety

This will replace any previously bound interrupt handler
esp-hal/src/interrupt/xtensa.rs