Fixed Serial2 issue for ESP32C3, added arduino-build.

This commit is contained in:
Brad Nelson
2022-10-08 13:02:38 -07:00
parent 1826a75cd0
commit 97ab39160a
3 changed files with 97 additions and 3 deletions

View File

@ -33,8 +33,13 @@
# define ENABLE_SD_MMC_SUPPORT
#endif
// ESP32-C3 has no DACs.
#if !defined(CONFIG_IDF_TARGET_ESP32C3)
// Serial2 does not work on ESP32-S2 / ESP32-C3
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
# define ENABLE_SERIAL2_SUPPORT
#endif
// No DACS on ESP32-S3 and ESP32-C3.
#if !defined(CONFIG_IDF_TARGET_ESP32S3) && !defined(CONFIG_IDF_TARGET_ESP32C3)
# define ENABLE_DAC_SUPPORT
#endif