Function esp_idf_sys::esp_intr_disable

source ยท
pub unsafe extern "C" fn esp_intr_disable(
    handle: intr_handle_t,
) -> esp_err_t
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