pub unsafe extern "C" fn set_isr(
    n: i32,
    f: *mut crate::binary::c_types::c_void,
    arg: *mut crate::binary::c_types::c_void,
) {
    trace!("set_isr - interrupt {} function {:?} arg {:?}", n, f, arg);

    match n {
        0 => unsafe {
            crate::wifi::ISR_INTERRUPT_1 = (f, arg);
        },
        1 => unsafe {
            crate::wifi::ISR_INTERRUPT_1 = (f, arg);
        },
        _ => panic!("set_isr - unsupported interrupt number {}", n),
    }
}
**************************************************************************
Name: esp_set_isr

Description:
Register interrupt function

Input Parameters:
n   - Interrupt ID
f   - Interrupt function
arg - Function private data

Returned Value:
None

*************************************************************************
esp-wifi/src/wifi/os_adapter_esp32h2.rs