ledc_isr_register() function
Register LEDC interrupt handler, the handler is an ISR. The handler will be attached to the same CPU core that this function is running on.
Arguments
fn
Interrupt handler function.
arg
User-supplied argument passed to the handler function.
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.
handle
Pointer to return handle. If non-NULL, a handle for the interrupt will be returned here.
Return value
- ESP_OK Success - ESP_ERR_INVALID_ARG Parameter error - ESP_ERR_NOT_FOUND Failed to find available interrupt source