D | intc_esp32c3.c | 76 static uint32_t esp_intr_find_irq_for_source(uint32_t source) in esp_intr_find_irq_for_source() argument 81 uint32_t irq = (source / ESP32C3_INTC_SRCS_PER_IRQ); in esp_intr_find_irq_for_source() 84 INTC_LOG("Clamping the source: %d no more IRQs available", source); in esp_intr_find_irq_for_source() 90 INTC_LOG("Found IRQ: %d for source: %d", irq, source); in esp_intr_find_irq_for_source() 97 static uint32_t esp_intr_find_irq_for_source(uint32_t source) in esp_intr_find_irq_for_source() argument 111 if (esp_intr_irq_alloc[i][j] == source) { in esp_intr_find_irq_for_source() 123 *irq_ptr = (uint8_t)source; in esp_intr_find_irq_for_source() 130 INTC_LOG("Found IRQ: %d for source: %d", irq, source); in esp_intr_find_irq_for_source() 166 int esp_intr_alloc(int source, in esp_intr_alloc() argument 179 if (source < 0 || source >= ETS_MAX_INTR_SOURCE) { in esp_intr_alloc() [all …]
|