This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit f6a051ab2f1a1a244620d4fd24abd1030ab41a25 Author: Tiago Medicci Serrano <[email protected]> AuthorDate: Thu Jul 31 16:16:57 2025 -0300 boards/esp32[c3|c6|h2]: Fix GPIO function used by the button This commit fixes the function to select the GPIO behavior for the pins associated to the board's button. Signed-off-by: Tiago Medicci Serrano <[email protected]> --- boards/risc-v/esp32c3/esp32c3-generic/src/esp32c3_buttons.c | 2 +- boards/risc-v/esp32c6/esp32c6-devkitc/src/esp32c6_buttons.c | 2 +- boards/risc-v/esp32c6/esp32c6-devkitm/src/esp32c6_buttons.c | 2 +- boards/risc-v/esp32h2/esp32h2-devkit/src/esp32h2_buttons.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/boards/risc-v/esp32c3/esp32c3-generic/src/esp32c3_buttons.c b/boards/risc-v/esp32c3/esp32c3-generic/src/esp32c3_buttons.c index 0be6be2eff3..bde9c3993ea 100644 --- a/boards/risc-v/esp32c3/esp32c3-generic/src/esp32c3_buttons.c +++ b/boards/risc-v/esp32c3/esp32c3-generic/src/esp32c3_buttons.c @@ -75,7 +75,7 @@ uint32_t board_button_initialize(void) { - esp_configgpio(BUTTON_BOOT, INPUT_FUNCTION_3 | PULLUP); + esp_configgpio(BUTTON_BOOT, INPUT_FUNCTION_2 | PULLUP); return 1; } diff --git a/boards/risc-v/esp32c6/esp32c6-devkitc/src/esp32c6_buttons.c b/boards/risc-v/esp32c6/esp32c6-devkitc/src/esp32c6_buttons.c index 33304dcfbb2..8f43500ba47 100644 --- a/boards/risc-v/esp32c6/esp32c6-devkitc/src/esp32c6_buttons.c +++ b/boards/risc-v/esp32c6/esp32c6-devkitc/src/esp32c6_buttons.c @@ -75,7 +75,7 @@ uint32_t board_button_initialize(void) { - esp_configgpio(BUTTON_BOOT, INPUT_FUNCTION_3 | PULLUP); + esp_configgpio(BUTTON_BOOT, INPUT_FUNCTION_2 | PULLUP); return 1; } diff --git a/boards/risc-v/esp32c6/esp32c6-devkitm/src/esp32c6_buttons.c b/boards/risc-v/esp32c6/esp32c6-devkitm/src/esp32c6_buttons.c index 26c552edaa2..afec08d1509 100644 --- a/boards/risc-v/esp32c6/esp32c6-devkitm/src/esp32c6_buttons.c +++ b/boards/risc-v/esp32c6/esp32c6-devkitm/src/esp32c6_buttons.c @@ -75,7 +75,7 @@ uint32_t board_button_initialize(void) { - esp_configgpio(BUTTON_BOOT, INPUT_FUNCTION_3 | PULLUP); + esp_configgpio(BUTTON_BOOT, INPUT_FUNCTION_2 | PULLUP); return 1; } diff --git a/boards/risc-v/esp32h2/esp32h2-devkit/src/esp32h2_buttons.c b/boards/risc-v/esp32h2/esp32h2-devkit/src/esp32h2_buttons.c index 6e4e722b069..5f88b9b1693 100644 --- a/boards/risc-v/esp32h2/esp32h2-devkit/src/esp32h2_buttons.c +++ b/boards/risc-v/esp32h2/esp32h2-devkit/src/esp32h2_buttons.c @@ -75,7 +75,7 @@ uint32_t board_button_initialize(void) { - esp_configgpio(BUTTON_BOOT, INPUT_FUNCTION_3 | PULLUP); + esp_configgpio(BUTTON_BOOT, INPUT_FUNCTION_2 | PULLUP); return 1; }
