From 2742eb4dc7d6efb1adba87942e7ed4590082928e Mon Sep 17 00:00:00 2001 From: Sylvio Alves Date: Wed, 11 Jun 2025 00:07:29 -0300 Subject: [PATCH] driver: gpio: esp32: move config to iram Make gpio configuration in IRAM area to speed up access. Signed-off-by: Sylvio Alves --- drivers/gpio/gpio_esp32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio_esp32.c b/drivers/gpio/gpio_esp32.c index be4348aba2d..289565302bf 100644 --- a/drivers/gpio/gpio_esp32.c +++ b/drivers/gpio/gpio_esp32.c @@ -93,7 +93,7 @@ static inline bool gpio_pin_is_output_capable(uint32_t pin) return ((BIT(pin) & SOC_GPIO_VALID_OUTPUT_GPIO_MASK) != 0); } -static int gpio_esp32_config(const struct device *dev, +static int IRAM_ATTR gpio_esp32_config(const struct device *dev, gpio_pin_t pin, gpio_flags_t flags) {