espressif / esp-idf

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

About Kconfig.env_caps for esp32c2 (IDFGH-8734) #10174

Closed nopnop2002 closed 1 year ago

nopnop2002 commented 1 year ago

Answers checklist.

General issue report

$ cat $HOME/esp-idf/examples/common_components/env_caps/esp32c3/Kconfig.env_caps
config ENV_GPIO_RANGE_MIN
    int
    default 0

config ENV_GPIO_RANGE_MAX
    int
    default 19
    # GPIOs 20/21 are always used by UART in examples

$ cat $HOME/esp-idf/examples/common_components/env_caps/esp32c2/Kconfig.env_caps
config ENV_GPIO_RANGE_MIN
    int
    default 0

config ENV_GPIO_RANGE_MAX
    int
    default 20

GPIO 19/20 of ESP32C2 are used by UART so ESP32C2's ENV_GPIO_RANGE_MAX is not 18?

ESP-Marius commented 1 year ago

Thanks for pointing this out, we'll update the caps to better reflect which pins should be used in the C2 examples.