From af6147fb2c56dd3c4811b292022503b95d58f863 Mon Sep 17 00:00:00 2001 From: Eren Terzioglu Date: Fri, 10 Jan 2025 10:22:13 +0100 Subject: [PATCH] esp32[c6]: Fix misconfigured pin functions for esp32c6-devkitm --- boards/risc-v/esp32c6/esp32c6-devkitm/src/esp32c6_gpio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boards/risc-v/esp32c6/esp32c6-devkitm/src/esp32c6_gpio.c b/boards/risc-v/esp32c6/esp32c6-devkitm/src/esp32c6_gpio.c index 4a7f3f4a59..f4c02a4e0a 100644 --- a/boards/risc-v/esp32c6/esp32c6-devkitm/src/esp32c6_gpio.c +++ b/boards/risc-v/esp32c6/esp32c6-devkitm/src/esp32c6_gpio.c @@ -484,7 +484,7 @@ int esp_gpio_init(void) /* Configure the pins that will be used as output */ esp_gpio_matrix_out(g_gpiooutputs[i], SIG_GPIO_OUT_IDX, 0, 0); - esp_configgpio(g_gpiooutputs[i], OUTPUT_FUNCTION_1 | INPUT_FUNCTION_1); + esp_configgpio(g_gpiooutputs[i], OUTPUT_FUNCTION_2 | INPUT_FUNCTION_2); esp_gpiowrite(g_gpiooutputs[i], 0); pincount++; @@ -503,7 +503,7 @@ int esp_gpio_init(void) /* Configure the pins that will be used as interrupt input */ - esp_configgpio(g_gpiointinputs[i], INPUT_FUNCTION_1 | PULLDOWN); + esp_configgpio(g_gpiointinputs[i], INPUT_FUNCTION_2 | PULLDOWN); pincount++; }