espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.46k stars 7.25k forks source link

esp32c3 GPIO in wake Stub --> Missing function inside components/esp_rom/include/esp32c3/rom/gpio.h (IDFGH-13168) #14108

Closed JustTrying-Arduino closed 2 months ago

JustTrying-Arduino commented 3 months ago

Is your feature request related to a problem?

Hello,

Since the 5.0 version, the function GPIO_OUTPUT_SET(gpio_no, bit_value) and GPIO_INPUT_GET(gpio_no) disappear of the file esp32c3/rom/gpio.h

Describe the solution you'd like.

These functions simplify the use of GPIO inside Wake Stub. I wander if they could reappear.

Thanks you

Describe alternatives you've considered.

No response

Additional context.

No response

ESP-Marius commented 3 months ago

Hi,

These wrappers were actually wrong on C3, they are meant to choose between gpio_output_set and gpio_output_set_high when you have more than 32 GPIOs.

C3 doesn't, hence gpio_output_set_high doesnt even exist. You can simpy use gpio_output_set directly.