Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/separate_coex_lib_from_wifi_lib' into 'master'
feature: separate coex lib from wifi lib See merge request espressif/esp-idf!21791
- Loading branch information
Showing
51 changed files
with
1,747 additions
and
1,235 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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
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
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
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,41 @@ | ||
idf_build_get_property(idf_target IDF_TARGET) | ||
|
||
if(CONFIG_ESP_COEX_SW_COEXIST_ENABLE OR CONFIG_ESP_COEX_EXTERNAL_COEXIST_ENABLE) | ||
if(CONFIG_APP_NO_BLOBS) | ||
set(link_binary_libs 0) | ||
set(ldfragments) | ||
else() | ||
set(link_binary_libs 1) | ||
set(ldfragments "linker.lf") | ||
endif() | ||
|
||
set(srcs | ||
"src/coexist.c" | ||
"${idf_target}/esp_coex_adapter.c") | ||
endif() | ||
|
||
if(CONFIG_ESP_WIFI_ENABLED) | ||
list(APPEND srcs "${idf_target}/esp_coex_adapter.c") | ||
endif() | ||
|
||
idf_component_register(SRCS "${srcs}" | ||
INCLUDE_DIRS "include" | ||
PRIV_REQUIRES esp_timer driver esp_event | ||
LDFRAGMENTS "${ldfragments}") | ||
|
||
if(CONFIG_ESP_COEX_SW_COEXIST_ENABLE OR CONFIG_ESP_COEX_EXTERNAL_COEXIST_ENABLE) | ||
idf_build_get_property(build_dir BUILD_DIR) | ||
|
||
set(target_name "${idf_target}") | ||
target_link_directories(${COMPONENT_LIB} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/lib/${target_name}") | ||
|
||
if(link_binary_libs) | ||
set(blob coexist) | ||
|
||
add_prebuilt_library(${blob} "${CMAKE_CURRENT_SOURCE_DIR}/lib/${target_name}/lib${blob}.a" | ||
REQUIRES ${COMPONENT_NAME}) | ||
target_link_libraries(${COMPONENT_LIB} PUBLIC ${blob}) | ||
endif() | ||
|
||
target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") | ||
endif() |
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,28 @@ | ||
|
||
menu "Wireless Coexistence" | ||
config ESP_COEX_SW_COEXIST_ENABLE | ||
bool "Software controls WiFi/Bluetooth coexistence" | ||
depends on (ESP_WIFI_ENABLED && BT_ENABLED) || \ | ||
(ESP_WIFI_ENABLED && IEEE802154_ENABLED) | ||
default y | ||
select ESP_WIFI_STA_DISCONNECTED_PM_ENABLE | ||
help | ||
If enabled, WiFi & Bluetooth coexistence is controlled by software rather than hardware. | ||
Recommended for heavy traffic scenarios. Both coexistence configuration options are | ||
automatically managed, no user intervention is required. | ||
If only Bluetooth is used, it is recommended to disable this option to reduce binary file | ||
size. | ||
|
||
config ESP_COEX_EXTERNAL_COEXIST_ENABLE | ||
bool "External Coexistence" | ||
default n | ||
depends on (!(BT_ENABLED||NIMBLE_ENABLED)&&(!IDF_TARGET_ESP32)) | ||
help | ||
If enabled, HW External coexistence arbitration is managed by GPIO pins. | ||
It can support three types of wired combinations so far which are 1-wired/2-wired/3-wired. | ||
User can select GPIO pins in application code with configure interfaces. | ||
|
||
This function depends on BT-off | ||
because currently we do not support external coex and internal coex simultaneously. | ||
|
||
endmenu # Wi-Fi |
Oops, something went wrong.