Skip to content

Commit 967db8f

Browse files
authored
Merge pull request #48 from tasmota/esp32c3_adc2gpio
add ESP32C3 `esp32_adc2gpio`
2 parents ac3ba98 + 2b2a0bd commit 967db8f

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
@@ -56,6 +56,8 @@
5656
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};
5757
#elif CONFIG_IDF_TARGET_ESP32S2
5858
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};
59+
#elif CONFIG_IDF_TARGET_ESP32C3
60+
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};
5961
#endif
6062

6163
const DRAM_ATTR esp32_gpioMux_t esp32_gpioMux[SOC_GPIO_PIN_COUNT]={

0 commit comments

Comments
 (0)