esp32: drivers: interrupt_controller: add interrupt allocation support

Add interrupt allocation support for ESP32.

Signed-off-by: Glauber Maroto Ferreira <glauber.ferreira@espressif.com>
This commit is contained in:
Glauber Maroto Ferreira 2021-04-12 16:13:54 -03:00 committed by Christopher Friedt
commit 9ae5fd1b34
11 changed files with 1328 additions and 0 deletions

View file

@ -6,6 +6,7 @@ config SOC_ESP32
select XTENSA
select CLOCK_CONTROL
select CLOCK_CONTROL_ESP32
select DYNAMIC_INTERRUPTS
if SOC_ESP32

View file

@ -8,6 +8,7 @@
#include "soc.h"
#include <soc/rtc_cntl_reg.h>
#include <soc/timer_group_reg.h>
#include <drivers/interrupt_controller/intc_esp32.h>
#include <xtensa/config/core-isa.h>
#include <xtensa/corebits.h>
@ -121,6 +122,7 @@ void __attribute__((section(".iram1"))) __start(void)
#if CONFIG_SOC_FLASH_ESP32 || CONFIG_ESP_SPIRAM
spi_flash_guard_set(&g_flash_guard_default_ops);
#endif
esp_intr_initialize();
/* Start Zephyr */
z_cstart();