Function esp_idf_sys::pcnt_isr_service_install

source ยท
pub unsafe extern "C" fn pcnt_isr_service_install(
    intr_alloc_flags: c_int,
) -> esp_err_t
Expand description

@brief Install PCNT ISR service. @note We can manage different interrupt service for each unit. This function will use the default ISR handle service, Calling pcnt_isr_service_uninstall to uninstall the default service if needed. Please do not use pcnt_isr_register if this function was called.

@param intr_alloc_flags Flags used to allocate the interrupt. One or multiple (ORred) ESP_INTR_FLAG_* values. See esp_intr_alloc.h for more info.

@return - ESP_OK Success - ESP_ERR_INVALID_STATE pcnt driver has not been initialized - ESP_ERR_NO_MEM No memory to install this service - ESP_ERR_INVALID_STATE ISR service already installed