diff --git a/src/AudioAnalog/AnalogConfigESP32V1.h b/src/AudioAnalog/AnalogConfigESP32V1.h index b606888fbb..44e4e5980b 100644 --- a/src/AudioAnalog/AnalogConfigESP32V1.h +++ b/src/AudioAnalog/AnalogConfigESP32V1.h @@ -15,7 +15,7 @@ #define ADC_OUTPUT_TYPE ADC_DIGI_OUTPUT_FORMAT_TYPE2 #define ADC_CHANNELS {ADC_CHANNEL_2, ADC_CHANNEL_3} #define HAS_ESP32_DAC -#elif CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32H2 || CONFIG_IDF_TARGET_ESP32C2 +#elif CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32H2 || CONFIG_IDF_TARGET_ESP32C2 || CONFIG_IDF_TARGET_ESP32C6 #define ADC_CONV_MODE ADC_CONV_ALTER_UNIT //ESP32C3 only supports alter mode #define ADC_OUTPUT_TYPE ADC_DIGI_OUTPUT_FORMAT_TYPE2 #define ADC_CHANNELS {ADC_CHANNEL_2, ADC_CHANNEL_3} diff --git a/src/AudioConfig.h b/src/AudioConfig.h index 7648449794..d719e81913 100644 --- a/src/AudioConfig.h +++ b/src/AudioConfig.h @@ -175,6 +175,14 @@ #define ESP32S3 #define ESP32X #endif +#if defined(ESP32) && defined(CONFIG_IDF_TARGET_ESP32H2) +#define ESP32S3 +#define ESP32X +#endif +#if defined(ESP32) && defined(CONFIG_IDF_TARGET_ESP32C6) +#define ESP32S3 +#define ESP32X +#endif // ----- Regular ESP32 ----- #if defined(ESP32) && !defined(ESP32X)