-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(i2s): refactor i2s examples common dependencies
Closes #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.
- Loading branch information
Showing
14 changed files
with
28 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
examples/peripherals/i2s/i2s_basic/i2s_pdm/main/idf_component.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
dependencies: | ||
i2s_examples_common: | ||
path: ${IDF_PATH}/examples/peripherals/i2s/i2s_examples_common |
4 changes: 2 additions & 2 deletions
4
examples/peripherals/i2s/i2s_basic/i2s_std/main/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
idf_component_register(SRCS "i2s_std_example_main.c" | ||
PRIV_REQUIRES esp_driver_i2s esp_driver_gpio | ||
INCLUDE_DIRS "." "$ENV{IDF_PATH}/examples/peripherals/i2s/common") | ||
PRIV_REQUIRES esp_driver_i2s esp_driver_gpio i2s_examples_common | ||
INCLUDE_DIRS ".") |
3 changes: 3 additions & 0 deletions
3
examples/peripherals/i2s/i2s_basic/i2s_std/main/idf_component.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
dependencies: | ||
i2s_examples_common: | ||
path: ${IDF_PATH}/examples/peripherals/i2s/i2s_examples_common |
4 changes: 2 additions & 2 deletions
4
examples/peripherals/i2s/i2s_basic/i2s_tdm/main/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
idf_component_register(SRCS "i2s_tdm_example_main.c" | ||
PRIV_REQUIRES esp_driver_i2s esp_driver_gpio | ||
INCLUDE_DIRS "." "$ENV{IDF_PATH}/examples/peripherals/i2s/common") | ||
PRIV_REQUIRES esp_driver_i2s esp_driver_gpio i2s_examples_common | ||
INCLUDE_DIRS ".") |
3 changes: 3 additions & 0 deletions
3
examples/peripherals/i2s/i2s_basic/i2s_tdm/main/idf_component.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
dependencies: | ||
i2s_examples_common: | ||
path: ${IDF_PATH}/examples/peripherals/i2s/i2s_examples_common |
4 changes: 2 additions & 2 deletions
4
examples/peripherals/i2s/i2s_codec/i2s_es7210_tdm/main/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
idf_component_register(SRCS "i2s_es7210_record_example.c" | ||
PRIV_REQUIRES esp_driver_i2s esp_driver_gpio fatfs | ||
INCLUDE_DIRS "$ENV{IDF_PATH}/examples/peripherals/i2s/common" | ||
PRIV_REQUIRES esp_driver_i2s esp_driver_gpio fatfs i2s_examples_common | ||
INCLUDE_DIRS | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# register I2S common dependencies as a component | ||
idf_component_register(INCLUDE_DIRS ".") |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
idf_component_register(SRCS "i2s_recorder_main.c" | ||
PRIV_REQUIRES esp_driver_i2s fatfs | ||
INCLUDE_DIRS "$ENV{IDF_PATH}/examples/peripherals/i2s/common") | ||
PRIV_REQUIRES esp_driver_i2s fatfs i2s_examples_common | ||
INCLUDE_DIRS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
dependencies: | ||
i2s_examples_common: | ||
path: ${IDF_PATH}/examples/peripherals/i2s/i2s_examples_common |