Page 1 of 1
ESP32 GPIO Configuration (gpio_pad_select_gpio)
Posted: Wed Jan 12, 2022 9:09 am
by Rrobinet
Hello,
I couldn't find in the ESP32 documentation any reference to
Is this function obsolete or replaced by :
Alternatively where can I found a description and of course the need to use various
gpio_pad_xx() functions.
Thanks in advance
Robert
Re: ESP32 GPIO Configuration (gpio_pad_select_gpio)
Posted: Thu Jan 13, 2022 12:56 am
by Sprite
It's a ROM function... i think you need to #include "esp_rom_gpio.h" before you can use it, but it may be that it's renamed to esp_rom_gpio_pad_select_gpio() there (to distinguish it as a ROM function). Note that you probably want to use something like gpio_reset_pin() (or use gpio_config, which also does this as part of the process) as gpio_pad_select_gpio doesn't cover all cases anymore on newer chips.
Re: ESP32 GPIO Configuration (gpio_pad_select_gpio)
Posted: Sat Jan 15, 2022 9:50 am
by Rrobinet
OK .... I understand it but after some tests despite the fact lack of documentation (with the exception of the one of Kolban)
Thanks
Robert
Re: ESP32 GPIO Configuration (gpio_pad_select_gpio)
Posted: Sun Jan 16, 2022 1:25 am
by Sprite
I've made an internal issue over the lack of documentation, for what it's worth.
Re: ESP32 GPIO Configuration (gpio_pad_select_gpio)
Posted: Thu Jun 19, 2025 11:00 am
by dg9ngf
This helped:
https://github.com/espressif/ESP8266_RTOS_SDK/pull/477
I needed to add this to get the function:
#include <rom/gpio.h>
And apparently this function is undocumented outside the source code. Isn't the online documentation generated from the code?