Function esp_idf_sys::esp_rom_route_intr_matrix

source ·
pub unsafe extern "C" fn esp_rom_route_intr_matrix(
    cpu_core: c_int,
    periph_intr_id: u32,
    cpu_intr_num: u32,
)
Expand description

@brief Route peripheral interrupt sources to CPU’s interrupt port by matrix

Usually there’re 4 steps to use an interrupt:

  1. Route peripheral interrupt source to CPU. e.g. esp_rom_route_intr_matrix(0, ETS_WIFI_MAC_INTR_SOURCE, ETS_WMAC_INUM)
  2. Set interrupt handler for CPU
  3. Enable CPU interupt
  4. Enable peripheral interrupt

@param cpu_core The CPU number, which the peripheral interupt will inform to @param periph_intr_id The peripheral interrupt source number @param cpu_intr_num The CPU interrupt number