From 80a7d6084bc0297d371198cbf4d0eab0b98ddd0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E9=9B=B7?= Date: Fri, 10 Nov 2017 05:27:00 -0600 Subject: [PATCH] fix enable ADC on pin37,38 (#822) --- cores/esp32/esp32-hal-gpio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cores/esp32/esp32-hal-gpio.c b/cores/esp32/esp32-hal-gpio.c index 0db7b43c0..7c5e02bd4 100644 --- a/cores/esp32/esp32-hal-gpio.c +++ b/cores/esp32/esp32-hal-gpio.c @@ -24,7 +24,7 @@ #include "soc/gpio_struct.h" #include "soc/rtc_io_reg.h" -const int8_t esp32_adc2gpio[20] = {36, -1, -1, 39, 32, 33, 34, 35, -1, -1, 4, 0, 2, 15, 13, 12, 14, 27, 25, 26}; +const int8_t esp32_adc2gpio[20] = {36, 37, 38, 39, 32, 33, 34, 35, -1, -1, 4, 0, 2, 15, 13, 12, 14, 27, 25, 26}; const DRAM_ATTR esp32_gpioMux_t esp32_gpioMux[GPIO_PIN_COUNT]={ {0x44, 11, 11, 1}, @@ -64,8 +64,8 @@ const DRAM_ATTR esp32_gpioMux_t esp32_gpioMux[GPIO_PIN_COUNT]={ {0x14, 4, 6, -1}, {0x18, 5, 7, -1}, {0x04, 0, 0, -1}, - {0x08, 1, -1, -1}, - {0x0c, 2, -1, -1}, + {0x08, 1, 1, -1}, + {0x0c, 2, 2, -1}, {0x10, 3, 3, -1} }; -- GitLab