forked from espressif/esp-idf
esp_coex: support i154 set coex pti
This commit is contained in:
@@ -4,7 +4,8 @@ menu "ESP-COEX"
|
|||||||
|
|
||||||
config ESP_WIFI_SW_COEXIST_ENABLE
|
config ESP_WIFI_SW_COEXIST_ENABLE
|
||||||
bool "Software controls WiFi/Bluetooth coexistence"
|
bool "Software controls WiFi/Bluetooth coexistence"
|
||||||
depends on ESP_WIFI_ENABLED && BT_ENABLED
|
depends on (ESP_WIFI_ENABLED && BT_ENABLED) || \
|
||||||
|
(ESP_WIFI_ENABLED && IEEE802154_ENABLED)
|
||||||
default y
|
default y
|
||||||
select ESP_WIFI_STA_DISCONNECTED_PM_ENABLE
|
select ESP_WIFI_STA_DISCONNECTED_PM_ENABLE
|
||||||
help
|
help
|
||||||
|
23
components/esp_coex/include/esp_coexist_i154.h
Normal file
23
components/esp_coex/include/esp_coexist_i154.h
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
/*
|
||||||
|
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
#ifndef __COEXIST_I154_H__
|
||||||
|
#define __COEXIST_I154_H__
|
||||||
|
|
||||||
|
#ifdef SOC_IEEE802154_SUPPORTED
|
||||||
|
typedef enum {
|
||||||
|
IEEE802154_RISK_TX = 1,
|
||||||
|
IEEE802154_TX_AT,
|
||||||
|
IEEE802154_RX_AT,
|
||||||
|
IEEE802154_ACK,
|
||||||
|
IEEE802154_NORMAL,
|
||||||
|
IEEE802154_IDLE_RX,
|
||||||
|
IEEE802154_EVENT_MAX,
|
||||||
|
} ieee802154_coex_event_t;
|
||||||
|
|
||||||
|
void esp_ieee802154_coex_pti_set(ieee802154_coex_event_t event);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
Submodule components/esp_coex/lib updated: 22df5f0064...403b94e8e0
@@ -22,7 +22,7 @@ case $IDF_TARGET in
|
|||||||
esp32s3)
|
esp32s3)
|
||||||
PREFIX=xtensa-esp32s3-elf-
|
PREFIX=xtensa-esp32s3-elf-
|
||||||
;;
|
;;
|
||||||
esp32c3)
|
esp32c2|esp32c3|esp32c6)
|
||||||
PREFIX=riscv32-esp-elf-
|
PREFIX=riscv32-esp-elf-
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@@ -34,10 +34,6 @@ LIB_DIR=${IDF_TARGET}
|
|||||||
|
|
||||||
ELF_FILE=test.elf
|
ELF_FILE=test.elf
|
||||||
|
|
||||||
${PREFIX}ld --unresolved-symbols=ignore-all --entry 0 -o ${ELF_FILE} \
|
|
||||||
-u g_coex_adapter_funcs_md5 \
|
|
||||||
${IDF_PATH}/components/esp_coex/lib/${LIB_DIR}/*.a
|
|
||||||
|
|
||||||
FAILURES=0
|
FAILURES=0
|
||||||
|
|
||||||
function check_md5()
|
function check_md5()
|
||||||
@@ -45,6 +41,9 @@ function check_md5()
|
|||||||
FILENAME=$1
|
FILENAME=$1
|
||||||
SYMBOL=$2
|
SYMBOL=$2
|
||||||
|
|
||||||
|
${PREFIX}ld --unresolved-symbols=ignore-all --entry 0 -o ${ELF_FILE} \
|
||||||
|
-u ${SYMBOL} \
|
||||||
|
${IDF_PATH}/components/esp_coex/lib/${LIB_DIR}/*.a
|
||||||
GDB_COMMAND="printf \"%s\\n\", (const char*) ${SYMBOL}"
|
GDB_COMMAND="printf \"%s\\n\", (const char*) ${SYMBOL}"
|
||||||
MD5_FROM_LIB=$(${PREFIX}gdb -n -batch ${ELF_FILE} -ex "${GDB_COMMAND}")
|
MD5_FROM_LIB=$(${PREFIX}gdb -n -batch ${ELF_FILE} -ex "${GDB_COMMAND}")
|
||||||
MD5_FROM_HEADER=$(md5sum ${FILENAME} | cut -c 1-7)
|
MD5_FROM_HEADER=$(md5sum ${FILENAME} | cut -c 1-7)
|
||||||
@@ -61,6 +60,10 @@ function check_md5()
|
|||||||
echo "Checking libraries for target ${IDF_TARGET}..."
|
echo "Checking libraries for target ${IDF_TARGET}..."
|
||||||
check_md5 ${IDF_PATH}/components/esp_coex/include/esp_coexist_adapter.h g_coex_adapter_funcs_md5
|
check_md5 ${IDF_PATH}/components/esp_coex/include/esp_coexist_adapter.h g_coex_adapter_funcs_md5
|
||||||
|
|
||||||
|
if [ "${IDF_TARGET}" == "esp32c6" ]; then
|
||||||
|
check_md5 ${IDF_PATH}/components/esp_coex/include/esp_coexist_i154.h g_coex_i154_funcs_md5
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $FAILURES -gt 0 ]; then
|
if [ $FAILURES -gt 0 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user