esp32s2: drivers: interrupt_controller: add interrupt allocation support
through the reuse of current esp32 interrupt allocator. Signed-off-by: Glauber Maroto Ferreira <glauber.ferreira@espressif.com>
This commit is contained in:
parent
219fe5339d
commit
2c031caed0
7 changed files with 127 additions and 1 deletions
|
@ -20,6 +20,9 @@ config XIP
|
|||
config ISR_STACK_SIZE
|
||||
default 2048
|
||||
|
||||
config HEAP_MEM_POOL_SIZE
|
||||
default 32768
|
||||
|
||||
config IRQ_OFFLOAD_INTNUM
|
||||
default 7
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ config SOC_ESP32S2
|
|||
bool "ESP32S2"
|
||||
select XTENSA
|
||||
select ATOMIC_OPERATIONS_C
|
||||
select DYNAMIC_INTERRUPTS
|
||||
|
||||
if SOC_ESP32S2
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
@ -117,6 +118,7 @@ void __attribute__((section(".iram1"))) __start(void)
|
|||
*wdt_rtc_protect = 0;
|
||||
#endif
|
||||
|
||||
esp_intr_initialize();
|
||||
/* Start Zephyr */
|
||||
z_cstart();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue