Skip to content

Commit 80a7d60

Browse files
radiumrayme-no-dev
authored andcommitted
fix enable ADC on pin37,38 (espressif#822)
1 parent 8ba91b9 commit 80a7d60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cores/esp32/esp32-hal-gpio.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include "soc/gpio_struct.h"
2525
#include "soc/rtc_io_reg.h"
2626

27-
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};
27+
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};
2828

2929
const DRAM_ATTR esp32_gpioMux_t esp32_gpioMux[GPIO_PIN_COUNT]={
3030
{0x44, 11, 11, 1},
@@ -64,8 +64,8 @@ const DRAM_ATTR esp32_gpioMux_t esp32_gpioMux[GPIO_PIN_COUNT]={
6464
{0x14, 4, 6, -1},
6565
{0x18, 5, 7, -1},
6666
{0x04, 0, 0, -1},
67-
{0x08, 1, -1, -1},
68-
{0x0c, 2, -1, -1},
67+
{0x08, 1, 1, -1},
68+
{0x0c, 2, 2, -1},
6969
{0x10, 3, 3, -1}
7070
};
7171

0 commit comments

Comments
 (0)