Function esp_idf_sys::intr_matrix_set
source ยท pub unsafe extern "C" fn intr_matrix_set(
cpu_no: c_int,
model_num: u32,
intr_num: u32,
)
Expand description
@brief Attach an CPU interrupt to a hardware source. We have 4 steps to use an interrupt: 1.Attach hardware interrupt source to CPU. intr_matrix_set(0, ETS_WIFI_MAC_INTR_SOURCE, ETS_WMAC_INUM); 2.Set interrupt handler. xt_set_interrupt_handler(ETS_WMAC_INUM, func, NULL); 3.Enable interrupt for CPU. xt_ints_on(1 << ETS_WMAC_INUM); 4.Enable interrupt in the module.
@param int cpu_no : The CPU which the interrupt number belongs.
@param uint32_t model_num : The interrupt hardware source number, please see the interrupt hardware source table.
@param uint32_t intr_num : The interrupt number CPU, please see the interrupt cpu using table.
@return None