Function esp_idf_hal::sys::esp_intr_disable

source ยท
pub unsafe extern "C" fn esp_intr_disable(
    handle: *mut intr_handle_data_t,
) -> i32
Expand description

@brief Disable the interrupt associated with the handle

@note

  1. For local interrupts (ESP_INTERNAL_* sources), this function has to be called on the CPU the interrupt is allocated on. Other interrupts have no such restriction.
  2. When several handlers sharing a same interrupt source, interrupt status bits, which are handled in the handler to be disabled, should be masked before the disabling, or handled in other enabled interrupts properly. Miss of interrupt status handling will cause infinite interrupt calls and finally system crash.

@param handle The handle, as obtained by esp_intr_alloc or esp_intr_alloc_intrstatus

@return ESP_ERR_INVALID_ARG if the combination of arguments is invalid. ESP_OK otherwise