espressif / esp-adf

Espressif Audio Development Framework
Other
1.54k stars 676 forks source link

Fix some warnings with ESP-IDF >= 5 (AUD-4923) #1083

Open stintel opened 1 year ago

stintel commented 1 year ago

When building Willow with ESP-IDF 5.1, a bunch of warnings appear due to GCC 12 being much stricter and ESP-IDF deprecating some code used by ESP-ADF. We've suppressed some of those warnings with the following skdconfig changes:

CONFIG_ADC_SUPPRESS_DEPRECATE_WARN=y
CONFIG_GPTIMER_SUPPRESS_DEPRECATE_WARN=y
CONFIG_I2S_SUPPRESS_DEPRECATE_WARN=y
CONFIG_RMT_SUPPRESS_DEPRECATE_WARN=y

Afterwards, a few warnings remain. This PR, and espressif/esp-adf-libs#27 fix the remaining warnings we see.

jason-mao commented 10 months ago

@stintel Thank you for your contributions. We separate the I2S by different IDF versions. And we are writing a new i2s_stream_v5.x file for IDF v5.x.