Skip to content

Commit 4c03eda

Browse files
committed
ESP32 H2 PDM support
1 parent aa69ce4 commit 4c03eda

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

examples/build-arch-log.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ esp32:esp32:esp32c3 ./examples-stream/streams-generator-serial -> rc=0
33
esp32:esp32:esp32s3 ./examples-stream/streams-generator-serial -> rc=0
44
esp32:esp32:esp32s2 ./examples-stream/streams-generator-serial -> rc=0
55
esp32:esp32:esp32c6 ./examples-stream/streams-generator-serial -> rc=0
6+
esp32:esp32:esp32h2 ./examples-stream/streams-generator-serial -> rc=0
67
esp8266:esp8266:generic ./examples-stream/streams-generator-serial -> rc=0
78
rp2040:rp2040:generic ./examples-stream/streams-generator-serial -> rc=0
89
arduino:avr:nano ./examples-stream/streams-generator-serial -> rc=0

examples/build-arch.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ compile_example "esp32:esp32:esp32c3"
2323
compile_example "esp32:esp32:esp32s3"
2424
compile_example "esp32:esp32:esp32s2"
2525
compile_example "esp32:esp32:esp32c6"
26+
compile_example "esp32:esp32:esp32h2"
2627
compile_example "esp8266:esp8266:generic"
2728
compile_example "rp2040:rp2040:generic"
2829
compile_example "arduino:avr:nano"

src/AudioConfig.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ typedef uint32_t eps32_i2s_sample_rate_type;
411411
#define USE_TDM
412412
#define USE_PWM
413413
#define USE_I2S
414+
#define USE_PDM
414415
#define USE_TYPETRAITS
415416
#define USE_EFFECTS_SUITE
416417
#define USE_TIMER

src/AudioTools/CoreAudio/AudioHttp/URLStream.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,14 +320,12 @@ class URLStream : public AbstractURLStream {
320320
client.setTimeout(clientTimeout / 1000);
321321
request.setTimeout(clientTimeout);
322322

323-
#ifdef USE_WIFI_CLIENT_SECURE
323+
#if defined(ESP32) && defined(USE_WIFI_CLIENT_SECURE)
324324
// There is a bug in IDF 4!
325325
if (clientSecure != nullptr) {
326326
clientSecure->setHandshakeTimeout(handshakeTimeout);
327327
}
328-
#endif
329328

330-
#ifdef ESP32
331329
// Performance optimization for ESP32
332330
if (!is_power_save) {
333331
esp_wifi_set_ps(WIFI_PS_NONE);

0 commit comments

Comments
 (0)