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)
46# if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0)
47# define USE_SERVER_ACCEPT true
49# if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 0, 0)
50# define USE_CONCURRENCY
52# define USE_PRINT_FLUSH true
54# define USE_PRINT_FLUSH false
56# define USE_SD_SUPPORTS_SPI
59# define USE_IDF_LOGGER
61# if !defined(I2S_USE_APLL)
62# define I2S_USE_APLL false
67#if defined(ESP32) && !defined(ESP32X) && !defined(CONFIG_IDF_TARGET_ESP32H2)
68#if ESP_IDF_VERSION > ESP_IDF_VERSION_VAL(5, 0 , 0)
69# define USE_INT24_FROM_INT
80# define USE_WIFI_CLIENT_SECURE
81# define USE_URL_ARDUINO
82# define USE_AUDIO_SERVER
84# define USE_TOUCH_READ
88#define USE_STREAM_WRITE_OVERRIDE
89#define USE_STREAM_READ_OVERRIDE
90#define USE_EXT_BUTTON_LOGIC
92#define USE_ALLOCATOR true
96#define PWM_FREQENCY 30000
97#define PIN_PWM_START 12
100#define PIN_I2S_DATA_IN 32
101#define PIN_I2S_DATA_OUT 22
102#define PIN_I2S_MCK -1
104#define PIN_I2S_MUTE -1
105#define SOFT_MUTE_VALUE 0
109#define I2S_AUTO_CLEAR true
112#define URL_STREAM_CORE 0
113#define URL_STREAM_PRIORITY 2
114#define URL_STREAM_BUFFER_COUNT 10
115#define STACK_SIZE 30000
116#define URL_CLIENT_TIMEOUT 60000;
117#define URL_HANDSHAKE_TIMEOUT 120000
125#if ESP_IDF_VERSION_MAJOR < 4 && !defined(I2S_COMM_FORMAT_STAND_I2S)
126# define I2S_COMM_FORMAT_STAND_I2S (I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_MSB)
127# define I2S_COMM_FORMAT_STAND_MSB (I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_LSB)
128# define I2S_COMM_FORMAT_STAND_PCM_LONG (I2S_COMM_FORMAT_PCM | I2S_COMM_FORMAT_PCM_LONG)
129# define I2S_COMM_FORMAT_STAND_PCM_SHORT (I2S_COMM_FORMAT_PCM | I2S_COMM_FORMAT_PCM_SHORT)
131typedef int eps32_i2s_sample_rate_type;
133typedef uint32_t eps32_i2s_sample_rate_type;
140#if defined(ESP32) && defined(ESP32X)
142# include "esp32-hal-log.h"
144# if ESP_IDF_VERSION > ESP_IDF_VERSION_VAL(5, 0 , 0)
145# define USE_INT24_FROM_INT
150#define USE_URL_ARDUINO
152#define USE_WIFI_CLIENT_SECURE
154#define USE_AUDIO_SERVER
155#define USE_TYPETRAITS
157#define USE_STREAM_WRITE_OVERRIDE
158#define USE_STREAM_READ_OVERRIDE
160#define USE_ALLOCATOR true
163#define PWM_FREQENCY 30000
164#define PIN_PWM_START 1
165#define PIN_I2S_MCK -1
168#define PIN_I2S_DATA_OUT 8
169#define PIN_I2S_DATA_IN 9
171#define PIN_I2S_MUTE -1
172#define SOFT_MUTE_VALUE 0
176#define I2S_AUTO_CLEAR true
180#define URL_STREAM_CORE 0
181#define URL_STREAM_PRIORITY 2
182#define URL_STREAM_BUFFER_COUNT 10
183#define STACK_SIZE 30000
184#define URL_CLIENT_TIMEOUT 60000;
185#define URL_HANDSHAKE_TIMEOUT 120000
192typedef uint32_t eps32_i2s_sample_rate_type;
198#if defined(ESP32) && defined(CONFIG_IDF_TARGET_ESP32H2)
199#include "esp32-hal-log.h"
200#if ESP_IDF_VERSION > ESP_IDF_VERSION_VAL(5, 0 , 0)
201# define USE_INT24_FROM_INT
210#define USE_TYPETRAITS
212#define USE_STREAM_WRITE_OVERRIDE
213#define USE_STREAM_READ_OVERRIDE
215#define USE_ALLOCATOR true
218#define PWM_FREQENCY 30000
219#define PIN_PWM_START 1
220#define PIN_I2S_MCK -1
223#define PIN_I2S_DATA_OUT 8
224#define PIN_I2S_DATA_IN 9
226#define PIN_I2S_MUTE -1
227#define SOFT_MUTE_VALUE 0
230#define I2S_AUTO_CLEAR true
232typedef uint32_t eps32_i2s_sample_rate_type;