From cd0f64d779c3e0636e70133b61a3b4561248f2f7 Mon Sep 17 00:00:00 2001 From: Abdelatif Guettouche Date: Wed, 4 Aug 2021 16:37:10 +0200 Subject: [PATCH] xtensa/irq.h: Add a macro to convert to an IRQ from a peripheral ID. Signed-off-by: Abdelatif Guettouche --- arch/xtensa/include/esp32/irq.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/xtensa/include/esp32/irq.h b/arch/xtensa/include/esp32/irq.h index a610a63687..19fc0ab33b 100644 --- a/arch/xtensa/include/esp32/irq.h +++ b/arch/xtensa/include/esp32/irq.h @@ -188,6 +188,7 @@ */ #define ESP32_IRQ2PERIPH(irq) ((irq)-XTENSA_IRQ_FIRSTPERIPH) +#define ESP32_PERIPH2IRQ(id) ((id)+XTENSA_IRQ_FIRSTPERIPH) /* PRO_INTR_STATUS_REG_0 / APP_INTR_STATUS_REG_0 */