esp_cpu_intr_set_handler() function
Set the handler function of a particular interrupt Assign a handler function (i.e., ISR) to a particular interrupt on the current CPU.
Arguments
intr_num
Interrupt number (from 0 to 31)
handler_arg
Argument passed to the handler function
Notes
This function simply sets the handler function (in the IVT) and does not actually enable the interrupt.
![]()
esp_cpu_intr_set_handler(intr, (esp_cpu_intr_handler_t)non_shared_intr_isr, ns_isr_arg);
esp_cpu_intr_set_handler() is called by 2 functions and calls 2 functions:
![]()
esp_cpu_intr_set_handler()
esp_cpu_intr_set_handler():
![]()
esp_cpu_intr_set_handler()