4#if defined(ESP32) && defined(CONFIG_IDF_TARGET_ESP32S2)
8#if defined(ESP32) && defined(CONFIG_IDF_TARGET_ESP32S3)
15#if defined(ESP32) && defined(CONFIG_IDF_TARGET_ESP32C3)
18# define USE_INT24_FROM_INT
22#if defined(ESP32) && defined(CONFIG_IDF_TARGET_ESP32C5)
28#if defined(ESP32) && defined(CONFIG_IDF_TARGET_ESP32C6)
34#if defined(ESP32) && defined(CONFIG_IDF_TARGET_ESP32P4)
44# define USE_LEGACY_I2S (ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 0, 0))
51# if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0)
52# define USE_SERVER_ACCEPT true
54# if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 0, 0)
55# define USE_CONCURRENCY
57# define USE_PRINT_FLUSH true
59# define USE_PRINT_FLUSH false
61# define USE_SD_SUPPORTS_SPI
64# define USE_IDF_LOGGER
66# if !defined(I2S_USE_APLL)
67# define I2S_USE_APLL false
72#if defined(ESP32) && !defined(ESP32X) && !defined(CONFIG_IDF_TARGET_ESP32H2)
73#if ESP_IDF_VERSION > ESP_IDF_VERSION_VAL(5, 0 , 0)
74# define USE_INT24_FROM_INT
85# define USE_WIFI_CLIENT_SECURE
86# define USE_URL_ARDUINO
87# define USE_AUDIO_SERVER
89# define USE_TOUCH_READ
93#define USE_STREAM_WRITE_OVERRIDE
94#define USE_STREAM_READ_OVERRIDE
95#define USE_EXT_BUTTON_LOGIC
97#define USE_ALLOCATOR true
101#define PWM_FREQENCY 30000
102#define PIN_PWM_START 12
103#define PIN_I2S_BCK 14
105#define PIN_I2S_DATA_IN 32
106#define PIN_I2S_DATA_OUT 22
107#define PIN_I2S_MCK -1
109#define PIN_I2S_MUTE -1
110#define SOFT_MUTE_VALUE 0
114#define I2S_AUTO_CLEAR true
117#define URL_STREAM_CORE 0
118#define URL_STREAM_PRIORITY 2
119#define URL_STREAM_BUFFER_COUNT 10
120#define STACK_SIZE 30000
121#define URL_CLIENT_TIMEOUT 60000;
122#define URL_HANDSHAKE_TIMEOUT 120000
130#if ESP_IDF_VERSION_MAJOR < 4 && !defined(I2S_COMM_FORMAT_STAND_I2S)
131# define I2S_COMM_FORMAT_STAND_I2S (I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_MSB)
132# define I2S_COMM_FORMAT_STAND_MSB (I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_LSB)
133# define I2S_COMM_FORMAT_STAND_PCM_LONG (I2S_COMM_FORMAT_PCM | I2S_COMM_FORMAT_PCM_LONG)
134# define I2S_COMM_FORMAT_STAND_PCM_SHORT (I2S_COMM_FORMAT_PCM | I2S_COMM_FORMAT_PCM_SHORT)
136typedef int eps32_i2s_sample_rate_type;
138typedef uint32_t eps32_i2s_sample_rate_type;
145#if defined(ESP32) && defined(ESP32X)
147# include "esp32-hal-log.h"
149# if ESP_IDF_VERSION > ESP_IDF_VERSION_VAL(5, 0 , 0)
150# define USE_INT24_FROM_INT
155#define USE_URL_ARDUINO
157#define USE_WIFI_CLIENT_SECURE
159#define USE_AUDIO_SERVER
160#define USE_TYPETRAITS
162#define USE_STREAM_WRITE_OVERRIDE
163#define USE_STREAM_READ_OVERRIDE
165#define USE_ALLOCATOR true
168#define PWM_FREQENCY 30000
169#define PIN_PWM_START 1
170#define PIN_I2S_MCK -1
173#define PIN_I2S_DATA_OUT 8
174#define PIN_I2S_DATA_IN 9
176#define PIN_I2S_MUTE -1
177#define SOFT_MUTE_VALUE 0
181#define I2S_AUTO_CLEAR true
185#define URL_STREAM_CORE 0
186#define URL_STREAM_PRIORITY 2
187#define URL_STREAM_BUFFER_COUNT 10
188#define STACK_SIZE 30000
189#define URL_CLIENT_TIMEOUT 60000;
190#define URL_HANDSHAKE_TIMEOUT 120000
197typedef uint32_t eps32_i2s_sample_rate_type;
203#if defined(ESP32) && defined(CONFIG_IDF_TARGET_ESP32H2)
204#include "esp32-hal-log.h"
205#if ESP_IDF_VERSION > ESP_IDF_VERSION_VAL(5, 0 , 0)
206# define USE_INT24_FROM_INT
215#define USE_TYPETRAITS
217#define USE_STREAM_WRITE_OVERRIDE
218#define USE_STREAM_READ_OVERRIDE
220#define USE_ALLOCATOR true
223#define PWM_FREQENCY 30000
224#define PIN_PWM_START 1
225#define PIN_I2S_MCK -1
228#define PIN_I2S_DATA_OUT 8
229#define PIN_I2S_DATA_IN 9
231#define PIN_I2S_MUTE -1
232#define SOFT_MUTE_VALUE 0
235#define I2S_AUTO_CLEAR true
237typedef uint32_t eps32_i2s_sample_rate_type;