From fb4cfde6f526ff954dbc335abc43202618558048 Mon Sep 17 00:00:00 2001 From: Chen Chen Date: Mon, 11 Aug 2025 18:59:33 +0800 Subject: [PATCH] fix(generic_gpio): Avoid conflict when using USB-OTG Changed the default GPIO out pins in generic_gpio for ESP32S3, to avoid the pin conflict at GPIO 19 when using USB-OTG to communicate. Closes https://github.com/espressif/esp-idf/issues/16244 --- examples/peripherals/gpio/generic_gpio/main/Kconfig.projbuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/peripherals/gpio/generic_gpio/main/Kconfig.projbuild b/examples/peripherals/gpio/generic_gpio/main/Kconfig.projbuild index 0362612cf4..3b2ca6981a 100644 --- a/examples/peripherals/gpio/generic_gpio/main/Kconfig.projbuild +++ b/examples/peripherals/gpio/generic_gpio/main/Kconfig.projbuild @@ -6,7 +6,7 @@ menu "Example Configuration" int "GPIO output pin 0" range ENV_GPIO_RANGE_MIN ENV_GPIO_OUT_RANGE_MAX default 8 if IDF_TARGET_ESP32C2 || IDF_TARGET_ESP32H2 || IDF_TARGET_ESP32C5 || IDF_TARGET_ESP32C61 - default 8 if IDF_TARGET_ESP32H21 + default 8 if IDF_TARGET_ESP32S3 || IDF_TARGET_ESP32H21 default 18 help GPIO pin number to be used as GPIO_OUTPUT_IO_0. @@ -15,7 +15,7 @@ menu "Example Configuration" int "GPIO output pin 1" range ENV_GPIO_RANGE_MIN ENV_GPIO_OUT_RANGE_MAX default 9 if IDF_TARGET_ESP32C2 || IDF_TARGET_ESP32H2 || IDF_TARGET_ESP32C5 || IDF_TARGET_ESP32C61 - default 9 if IDF_TARGET_ESP32H21 + default 9 if IDF_TARGET_ESP32S3 || IDF_TARGET_ESP32H21 default 19 help GPIO pin number to be used as GPIO_OUTPUT_IO_1.