Skip to content

Commit

Permalink
ESP32 H2 PDM support
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Dec 4, 2024
1 parent aa69ce4 commit 4c03eda
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions examples/build-arch-log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ esp32:esp32:esp32c3 ./examples-stream/streams-generator-serial -> rc=0
esp32:esp32:esp32s3 ./examples-stream/streams-generator-serial -> rc=0
esp32:esp32:esp32s2 ./examples-stream/streams-generator-serial -> rc=0
esp32:esp32:esp32c6 ./examples-stream/streams-generator-serial -> rc=0
esp32:esp32:esp32h2 ./examples-stream/streams-generator-serial -> rc=0
esp8266:esp8266:generic ./examples-stream/streams-generator-serial -> rc=0
rp2040:rp2040:generic ./examples-stream/streams-generator-serial -> rc=0
arduino:avr:nano ./examples-stream/streams-generator-serial -> rc=0
Expand Down
1 change: 1 addition & 0 deletions examples/build-arch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ compile_example "esp32:esp32:esp32c3"
compile_example "esp32:esp32:esp32s3"
compile_example "esp32:esp32:esp32s2"
compile_example "esp32:esp32:esp32c6"
compile_example "esp32:esp32:esp32h2"
compile_example "esp8266:esp8266:generic"
compile_example "rp2040:rp2040:generic"
compile_example "arduino:avr:nano"
Expand Down
1 change: 1 addition & 0 deletions src/AudioConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ typedef uint32_t eps32_i2s_sample_rate_type;
#define USE_TDM
#define USE_PWM
#define USE_I2S
#define USE_PDM
#define USE_TYPETRAITS
#define USE_EFFECTS_SUITE
#define USE_TIMER
Expand Down
4 changes: 1 addition & 3 deletions src/AudioTools/CoreAudio/AudioHttp/URLStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -320,14 +320,12 @@ class URLStream : public AbstractURLStream {
client.setTimeout(clientTimeout / 1000);
request.setTimeout(clientTimeout);

#ifdef USE_WIFI_CLIENT_SECURE
#if defined(ESP32) && defined(USE_WIFI_CLIENT_SECURE)
// There is a bug in IDF 4!
if (clientSecure != nullptr) {
clientSecure->setHandshakeTimeout(handshakeTimeout);
}
#endif

#ifdef ESP32
// Performance optimization for ESP32
if (!is_power_save) {
esp_wifi_set_ps(WIFI_PS_NONE);
Expand Down

0 comments on commit 4c03eda

Please sign in to comment.