From df18f866005397c46f21e5073d4007142b09c254 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 19 Jun 2024 11:11:43 +0200 Subject: [PATCH] port/esp32: add default i2s config for target esp32 --- port/esp32/components/btstack/btstack_audio_esp32_v5.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/port/esp32/components/btstack/btstack_audio_esp32_v5.c b/port/esp32/components/btstack/btstack_audio_esp32_v5.c index bb84477bb..7567e45af 100644 --- a/port/esp32/components/btstack/btstack_audio_esp32_v5.c +++ b/port/esp32/components/btstack/btstack_audio_esp32_v5.c @@ -96,8 +96,15 @@ i2s_chan_handle_t rx_handle = NULL; #define BTSTACK_AUDIO_I2S_OUT GPIO_NUM_26 #define BTSTACK_AUDIO_I2S_IN GPIO_NUM_35 #define HEADPHONE_DETECT GPIO_NUM_19 +#elif CONFIG_IDF_TARGET_ESP32 +// Generic ESP32 +#define BTSTACK_AUDIO_I2S_MCLK GPIO_NUM_0 +#define BTSTACK_AUDIO_I2S_BCK GPIO_NUM_5 +#define BTSTACK_AUDIO_I2S_WS GPIO_NUM_25 +#define BTSTACK_AUDIO_I2S_OUT GPIO_NUM_26 +#define BTSTACK_AUDIO_I2S_IN GPIO_NUM_35 #else -#error "No I2S configuration, if you don't use btstack I2S audio please disable BTSTACK_AUDIO" +#error "No I2S configuration, if you don't use BTstack I2S audio please disable BTSTACK_AUDIO in Components->BTstack Configuration" #endif // set MCLK unused