ESP32 GPIO Configuration (gpio_pad_select_gpio)

Rrobinet
Posts: 29
Joined: Wed Aug 16, 2017 7:05 am

ESP32 GPIO Configuration (gpio_pad_select_gpio)

Postby Rrobinet » Wed Jan 12, 2022 9:09 am

Hello,

I couldn't find in the ESP32 documentation any reference to

Code: Select all

gpio_pad_select_gpio()
Is this function obsolete or replaced by :

Code: Select all

gpio_config()
Alternatively where can I found a description and of course the need to use various gpio_pad_xx() functions.

Thanks in advance
Robert

ESP_Sprite
Posts: 9757
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 GPIO Configuration (gpio_pad_select_gpio)

Postby ESP_Sprite » Thu Jan 13, 2022 12:56 am

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.

Rrobinet
Posts: 29
Joined: Wed Aug 16, 2017 7:05 am

Re: ESP32 GPIO Configuration (gpio_pad_select_gpio)

Postby Rrobinet » Sat Jan 15, 2022 9:50 am

OK .... I understand it but after some tests despite the fact lack of documentation (with the exception of the one of Kolban)
Thanks
Robert

ESP_Sprite
Posts: 9757
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 GPIO Configuration (gpio_pad_select_gpio)

Postby ESP_Sprite » Sun Jan 16, 2022 1:25 am

I've made an internal issue over the lack of documentation, for what it's worth.

Who is online

Users browsing this forum: No registered users and 37 guests