Skip to content

Interrupts


ESP32 Interrupt register

image-20240828203449350

image-20240828203457648

GPIO interrupt

The GPIO interrupt of PRO_CPU and APP_CPU is mapped to 22 and 23 of interrupt number

Interrupt configuration

  • Pin must be in input configuration
  • Configure the edge trigger (RT,FT, RFT)
  • Enable interrupt delivery from peripheral to the processor
  • Identify the IRQ number
  • Configure the IRQ priority
  • Enable interrupt reception
  • Implement IRQ handler