From cd2fc22b7e2b92eb94e019e8c1d6066349c14851 Mon Sep 17 00:00:00 2001 From: Phil Schatzmann Date: Tue, 7 Nov 2023 06:17:18 +0100 Subject: [PATCH] ESP32 exotic variants --- src/AudioAnalog/AnalogConfigESP32V1.h | 2 +- src/AudioConfig.h | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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)