Skip to content

Commit 2742eb4

Browse files
sylvioalvesdkalowsk
authored andcommitted
driver: gpio: esp32: move config to iram
Make gpio configuration in IRAM area to speed up access. Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
1 parent 213142d commit 2742eb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio_esp32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static inline bool gpio_pin_is_output_capable(uint32_t pin)
9393
return ((BIT(pin) & SOC_GPIO_VALID_OUTPUT_GPIO_MASK) != 0);
9494
}
9595

96-
static int gpio_esp32_config(const struct device *dev,
96+
static int IRAM_ATTR gpio_esp32_config(const struct device *dev,
9797
gpio_pin_t pin,
9898
gpio_flags_t flags)
9999
{

0 commit comments

Comments
 (0)