4# include "esp32-hal-log.h"
8#if defined(ESP32) && defined(CONFIG_IDF_TARGET_ESP32)
12#if defined(ESP32) && defined(CONFIG_IDF_TARGET_ESP32S2)
16#if defined(ESP32) && defined(CONFIG_IDF_TARGET_ESP32S3)
23#if defined(ESP32) && defined(CONFIG_IDF_TARGET_ESP32S31)
31#if defined(ESP32) && defined(CONFIG_IDF_TARGET_ESP32C3)
34# define USE_INT24_FROM_INT
38#if defined(ESP32) && defined(CONFIG_IDF_TARGET_ESP32C5)
44#if defined(ESP32) && defined(CONFIG_IDF_TARGET_ESP32C6)
50#if defined(ESP32) && defined(CONFIG_IDF_TARGET_ESP32P4)
57#if defined(ESP32) && defined(CONFIG_IDF_TARGET_ESP32H2)
63# define USE_LEGACY_I2S (ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 0, 0))
71# define USE_INITIALIZER_LIST
73# if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0)
74# define USE_SERVER_ACCEPT true
76# if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 0, 0)
77# define USE_CONCURRENCY
79# define USE_PRINT_FLUSH true
81# define USE_PRINT_FLUSH false
83# define USE_SD_SUPPORTS_SPI
86# define USE_IDF_LOGGER
88# if !defined(I2S_USE_APLL)
89# define I2S_USE_APLL false
96#if defined(ESP32_CORE)
98#if ESP_IDF_VERSION > ESP_IDF_VERSION_VAL(5, 0 , 0)
99# define USE_INT24_FROM_INT
109# define USE_WIFI_CLIENT_SECURE
110# define USE_URL_ARDUINO
111# define USE_AUDIO_SERVER
112# define USE_TOUCH_READ
117#define USE_TYPETRAITS
118#define USE_STREAM_WRITE_OVERRIDE
119#define USE_STREAM_READ_OVERRIDE
120#define USE_EXT_BUTTON_LOGIC
122#define USE_ALLOCATOR true
124#define USE_TASK false
126#define PWM_FREQENCY 30000
127#define PIN_PWM_START 12
128#define PIN_I2S_BCK 14
130#define PIN_I2S_DATA_IN 32
131#define PIN_I2S_DATA_OUT 22
132#define PIN_I2S_MCK -1
134#define PIN_I2S_MUTE -1
135#define SOFT_MUTE_VALUE 0
139#define I2S_AUTO_CLEAR true
142#define URL_STREAM_CORE 0
143#define URL_STREAM_PRIORITY 2
144#define URL_STREAM_BUFFER_COUNT 10
145#define STACK_SIZE 30000
146#define URL_CLIENT_TIMEOUT 60000;
147#define URL_HANDSHAKE_TIMEOUT 120000
155#if ESP_IDF_VERSION_MAJOR < 4 && !defined(I2S_COMM_FORMAT_STAND_I2S)
156# define I2S_COMM_FORMAT_STAND_I2S (I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_MSB)
157# define I2S_COMM_FORMAT_STAND_MSB (I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_LSB)
158# define I2S_COMM_FORMAT_STAND_PCM_LONG (I2S_COMM_FORMAT_PCM | I2S_COMM_FORMAT_PCM_LONG)
159# define I2S_COMM_FORMAT_STAND_PCM_SHORT (I2S_COMM_FORMAT_PCM | I2S_COMM_FORMAT_PCM_SHORT)
161typedef int eps32_i2s_sample_rate_type;
163typedef uint32_t eps32_i2s_sample_rate_type;
171# if ESP_IDF_VERSION > ESP_IDF_VERSION_VAL(5, 0 , 0)
172# define USE_INT24_FROM_INT
177#define USE_URL_ARDUINO
179#define USE_WIFI_CLIENT_SECURE
181#define USE_AUDIO_SERVER
182#define USE_TYPETRAITS
184#define USE_STREAM_WRITE_OVERRIDE
185#define USE_STREAM_READ_OVERRIDE
187#define USE_ALLOCATOR true
189#define PWM_FREQENCY 30000
190#define PIN_PWM_START 1
191#define PIN_I2S_MCK -1
194#define PIN_I2S_DATA_OUT 8
195#define PIN_I2S_DATA_IN 9
197#define PIN_I2S_MUTE -1
198#define SOFT_MUTE_VALUE 0
202#define I2S_AUTO_CLEAR true
206#define URL_STREAM_CORE 0
207#define URL_STREAM_PRIORITY 2
208#define URL_STREAM_BUFFER_COUNT 10
209#define STACK_SIZE 30000
210#define URL_CLIENT_TIMEOUT 60000;
211#define URL_HANDSHAKE_TIMEOUT 120000
218typedef uint32_t eps32_i2s_sample_rate_type;
225#include "esp32-hal-log.h"
226#if ESP_IDF_VERSION > ESP_IDF_VERSION_VAL(5, 0 , 0)
227# define USE_INT24_FROM_INT
236#define USE_TYPETRAITS
238#define USE_STREAM_WRITE_OVERRIDE
239#define USE_STREAM_READ_OVERRIDE
241#define USE_ALLOCATOR true
244#define PWM_FREQENCY 30000
245#define PIN_PWM_START 1
246#define PIN_I2S_MCK -1
249#define PIN_I2S_DATA_OUT 8
250#define PIN_I2S_DATA_IN 9
252#define PIN_I2S_MUTE -1
253#define SOFT_MUTE_VALUE 0
256#define I2S_AUTO_CLEAR true
258typedef uint32_t eps32_i2s_sample_rate_type;