kopia lustrzana https://github.com/espressif/esp-idf
esp_coex: support i154 set coex pti
rodzic
5e59276ddf
commit
4697d85944
|
@ -4,7 +4,8 @@ menu "ESP-COEX"
|
|||
|
||||
config ESP_WIFI_SW_COEXIST_ENABLE
|
||||
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
|
||||
select ESP_WIFI_STA_DISCONNECTED_PM_ENABLE
|
||||
help
|
||||
|
|
|
@ -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
|
|
@ -1 +1 @@
|
|||
Subproject commit 22df5f006409c215a6856c954eb3d32d19ec8fdc
|
||||
Subproject commit 403b94e8e0691942ea0fb5ee54310d0089b15b3a
|
|
@ -22,7 +22,7 @@ case $IDF_TARGET in
|
|||
esp32s3)
|
||||
PREFIX=xtensa-esp32s3-elf-
|
||||
;;
|
||||
esp32c3)
|
||||
esp32c2|esp32c3|esp32c6)
|
||||
PREFIX=riscv32-esp-elf-
|
||||
;;
|
||||
*)
|
||||
|
@ -34,10 +34,6 @@ LIB_DIR=${IDF_TARGET}
|
|||
|
||||
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
|
||||
|
||||
function check_md5()
|
||||
|
@ -45,6 +41,9 @@ function check_md5()
|
|||
FILENAME=$1
|
||||
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}"
|
||||
MD5_FROM_LIB=$(${PREFIX}gdb -n -batch ${ELF_FILE} -ex "${GDB_COMMAND}")
|
||||
MD5_FROM_HEADER=$(md5sum ${FILENAME} | cut -c 1-7)
|
||||
|
@ -61,6 +60,10 @@ function check_md5()
|
|||
echo "Checking libraries for target ${IDF_TARGET}..."
|
||||
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
|
||||
exit 1
|
||||
fi
|
||||
|
|
Ładowanie…
Reference in New Issue