Skip to content

Commit f97ddb8

Browse files
authored
Update esp32-hal-gpio.c
1 parent 2d540d8 commit f97ddb8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cores/esp32/esp32-hal-gpio.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ int8_t digitalPinToTouchChannel(uint8_t pin)
8282
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};
8383
#elif CONFIG_IDF_TARGET_ESP32S2
8484
const int8_t esp32_adc2gpio[20] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20};
85+
#elif CONFIG_IDF_TARGET_ESP32C3
86+
const int8_t esp32_adc2gpio[20] = {1, 2, 3, 4, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
8587
#endif
8688

8789
const DRAM_ATTR esp32_gpioMux_t esp32_gpioMux[SOC_GPIO_PIN_COUNT]={

0 commit comments

Comments
 (0)