refactor(i2s): refactor i2s examples common dependencies

Closes https://github.com/espressif/esp-idf/issues/14751

Make the common I2S dependencies as an example common component,
so that to avoid slash & backslash issue on windows
when use absolute include path.
This commit is contained in:
laokaiyao
2024-12-19 10:27:34 +08:00
parent 51adfa1fd9
commit f22dd313fa
13 changed files with 23 additions and 2 deletions

View File

@@ -9,4 +9,5 @@ if(CONFIG_SOC_I2S_SUPPORTS_PDM_RX)
endif()
idf_component_register(SRCS "${srcs}"
PRIV_REQUIRES driver i2s_examples_common
INCLUDE_DIRS ".")

View File

@@ -0,0 +1,3 @@
dependencies:
i2s_examples_common:
path: ${IDF_PATH}/examples/peripherals/i2s/i2s_examples_common