4#if defined(ESP32) && defined(CONFIG_IDF_TARGET_ESP32)
8#if defined(ESP32) && defined(CONFIG_IDF_TARGET_ESP32S2)
12#if defined(ESP32) && defined(CONFIG_IDF_TARGET_ESP32S3)
19#if defined(ESP32) && defined(CONFIG_IDF_TARGET_ESP32C3)
22# define USE_INT24_FROM_INT
26#if defined(ESP32) && defined(CONFIG_IDF_TARGET_ESP32C5)
32#if defined(ESP32) && defined(CONFIG_IDF_TARGET_ESP32C6)
38#if defined(ESP32) && defined(CONFIG_IDF_TARGET_ESP32P4)
45#if defined(ESP32) && defined(CONFIG_IDF_TARGET_ESP32H2)
51# define USE_LEGACY_I2S (ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 0, 0))
58# if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0)
59# define USE_SERVER_ACCEPT true
61# if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 0, 0)
62# define USE_CONCURRENCY
64# define USE_PRINT_FLUSH true
66# define USE_PRINT_FLUSH false
68# define USE_SD_SUPPORTS_SPI
71# define USE_IDF_LOGGER
73# if !defined(I2S_USE_APLL)
74# define I2S_USE_APLL false
81#if defined(ESP32_CORE)
83#if ESP_IDF_VERSION > ESP_IDF_VERSION_VAL(5, 0 , 0)
84# define USE_INT24_FROM_INT
95# define USE_WIFI_CLIENT_SECURE
96# define USE_URL_ARDUINO
97# define USE_AUDIO_SERVER
99# define USE_TOUCH_READ
102#define USE_TYPETRAITS
103#define USE_STREAM_WRITE_OVERRIDE
104#define USE_STREAM_READ_OVERRIDE
105#define USE_EXT_BUTTON_LOGIC
107#define USE_ALLOCATOR true
109#define USE_TASK false
111#define PWM_FREQENCY 30000
112#define PIN_PWM_START 12
113#define PIN_I2S_BCK 14
115#define PIN_I2S_DATA_IN 32
116#define PIN_I2S_DATA_OUT 22
117#define PIN_I2S_MCK -1
119#define PIN_I2S_MUTE -1
120#define SOFT_MUTE_VALUE 0
124#define I2S_AUTO_CLEAR true
127#define URL_STREAM_CORE 0
128#define URL_STREAM_PRIORITY 2
129#define URL_STREAM_BUFFER_COUNT 10
130#define STACK_SIZE 30000
131#define URL_CLIENT_TIMEOUT 60000;
132#define URL_HANDSHAKE_TIMEOUT 120000
140#if ESP_IDF_VERSION_MAJOR < 4 && !defined(I2S_COMM_FORMAT_STAND_I2S)
141# define I2S_COMM_FORMAT_STAND_I2S (I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_MSB)
142# define I2S_COMM_FORMAT_STAND_MSB (I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_LSB)
143# define I2S_COMM_FORMAT_STAND_PCM_LONG (I2S_COMM_FORMAT_PCM | I2S_COMM_FORMAT_PCM_LONG)
144# define I2S_COMM_FORMAT_STAND_PCM_SHORT (I2S_COMM_FORMAT_PCM | I2S_COMM_FORMAT_PCM_SHORT)
146typedef int eps32_i2s_sample_rate_type;
148typedef uint32_t eps32_i2s_sample_rate_type;
157# include "esp32-hal-log.h"
159# if ESP_IDF_VERSION > ESP_IDF_VERSION_VAL(5, 0 , 0)
160# define USE_INT24_FROM_INT
165#define USE_URL_ARDUINO
167#define USE_WIFI_CLIENT_SECURE
169#define USE_AUDIO_SERVER
170#define USE_TYPETRAITS
172#define USE_STREAM_WRITE_OVERRIDE
173#define USE_STREAM_READ_OVERRIDE
175#define USE_ALLOCATOR true
178#define PWM_FREQENCY 30000
179#define PIN_PWM_START 1
180#define PIN_I2S_MCK -1
183#define PIN_I2S_DATA_OUT 8
184#define PIN_I2S_DATA_IN 9
186#define PIN_I2S_MUTE -1
187#define SOFT_MUTE_VALUE 0
191#define I2S_AUTO_CLEAR true
195#define URL_STREAM_CORE 0
196#define URL_STREAM_PRIORITY 2
197#define URL_STREAM_BUFFER_COUNT 10
198#define STACK_SIZE 30000
199#define URL_CLIENT_TIMEOUT 60000;
200#define URL_HANDSHAKE_TIMEOUT 120000
207typedef uint32_t eps32_i2s_sample_rate_type;
214#include "esp32-hal-log.h"
215#if ESP_IDF_VERSION > ESP_IDF_VERSION_VAL(5, 0 , 0)
216# define USE_INT24_FROM_INT
225#define USE_TYPETRAITS
227#define USE_STREAM_WRITE_OVERRIDE
228#define USE_STREAM_READ_OVERRIDE
230#define USE_ALLOCATOR true
233#define PWM_FREQENCY 30000
234#define PIN_PWM_START 1
235#define PIN_I2S_MCK -1
238#define PIN_I2S_DATA_OUT 8
239#define PIN_I2S_DATA_IN 9
241#define PIN_I2S_MUTE -1
242#define SOFT_MUTE_VALUE 0
245#define I2S_AUTO_CLEAR true
247typedef uint32_t eps32_i2s_sample_rate_type;