Skip to content

Commit

Permalink
ESP32 exotic variants
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Nov 7, 2023
1 parent 8938d8f commit cd2fc22
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/AudioAnalog/AnalogConfigESP32V1.h
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
8 changes: 8 additions & 0 deletions src/AudioConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cd2fc22

Please sign in to comment.