[i2s_audio] Include legacy driver IDF component when use_legacy is set (#14613)
This commit is contained in:
1 parent
ea7cfffdda
commit
66919ef969
1 file changed
+2
@@ -281,6 +281,8 @@ async def to_code(config):
|
||||
|
||||
if use_legacy():
|
||||
cg.add_define("USE_I2S_LEGACY")
|
||||
# Legacy I2S API lives in the "driver" shim component (driver/i2s.h)
|
||||
include_builtin_idf_component("driver")
|
||||
|
||||
# Helps avoid callbacks being skipped due to processor load
|
||||
add_idf_sdkconfig_option("CONFIG_I2S_ISR_IRAM_SAFE", True)
|
||||
|
||||
Reference in new issue
Block a user