From 2204c8e1371a4810d70f974bceb2aee5ca6427d0 Mon Sep 17 00:00:00 2001 From: Darian Leung Date: Fri, 27 Oct 2023 17:41:49 +0800 Subject: [PATCH] change(xtensa): Deprecate ".../xtensa_api.h" include path This commit deprecates the "freertos/xtensa_api.h" and "xtensa/xtensa_api.h" include paths. Users should use "xtensa_api.h" instead. - Replace legacy include paths - Removed some unnecessary includes of "xtensa_api.h" - Replaced some calls with "esp_cpu_..." equivalents - Add warning to compatibility header --- components/bt/controller/esp32/bt.c | 2 +- components/bt/controller/esp32c3/bt.c | 2 -- components/driver/touch_sensor/esp32/touch_sensor.c | 1 - components/driver/touch_sensor/esp32s2/touch_sensor.c | 1 - components/driver/touch_sensor/esp32s3/touch_sensor.c | 1 - components/esp_hw_support/include/esp_cpu.h | 2 +- components/esp_system/port/soc/esp32/system_internal.c | 3 +-- .../esp_system/port/soc/esp32s2/system_internal.c | 3 +-- .../esp_system/port/soc/esp32s3/system_internal.c | 3 +-- .../esp_system_unity_tests/main/test_backtrace.c | 2 +- components/esp_wifi/esp32/esp_adapter.c | 2 +- components/esp_wifi/esp32s2/esp_adapter.c | 2 +- components/esp_wifi/esp32s3/esp_adapter.c | 2 +- .../portable/xtensa/include/freertos/portmacro.h | 2 +- .../portable/xtensa/include/freertos/portmacro.h | 2 +- .../test_apps/freertos/performance/test_isr_latency.c | 2 +- .../freertos/test_apps/freertos/port/test_fpu_in_isr.c | 2 +- .../freertos/port/test_xtensa_loadstore_handler.c | 10 +++------- .../xtensa/deprecated_include/freertos/xtensa_api.h | 6 +++--- .../xtensa/deprecated_include/xtensa/xtensa_api.h | 4 ++-- components/xtensa/xtensa_intr.c | 2 +- .../bluedroid/classic_bt/a2dp_sink/main/bt_app_core.c | 1 - .../classic_bt/bt_l2cap_client/main/bt_app_core.c | 1 - .../classic_bt/bt_l2cap_server/main/bt_app_core.c | 1 - .../classic_bt/bt_spp_initiator/main/console_uart.c | 1 - .../classic_bt/bt_spp_vfs_acceptor/main/spp_task.c | 1 - .../classic_bt/bt_spp_vfs_initiator/main/spp_task.c | 1 - .../bluedroid/classic_bt/hfp_ag/main/bt_app_core.c | 1 - .../bluedroid/classic_bt/hfp_hf/main/bt_app_core.c | 1 - .../bluedroid/coex/a2dp_gatts_coex/main/bt_app_core.c | 1 - 30 files changed, 22 insertions(+), 43 deletions(-) diff --git a/components/bt/controller/esp32/bt.c b/components/bt/controller/esp32/bt.c index 7b2b391a8c..d8792e0f48 100644 --- a/components/bt/controller/esp32/bt.c +++ b/components/bt/controller/esp32/bt.c @@ -16,8 +16,8 @@ #include "freertos/task.h" #include "freertos/queue.h" #include "freertos/semphr.h" -#include "freertos/xtensa_api.h" #include "freertos/portmacro.h" +#include "xtensa_api.h" // Replace with interrupt allocator API (IDF-3891) #include "xtensa/core-macros.h" #include "esp_types.h" #include "esp_mac.h" diff --git a/components/bt/controller/esp32c3/bt.c b/components/bt/controller/esp32c3/bt.c index 66764b5b42..6dabe7fb24 100644 --- a/components/bt/controller/esp32c3/bt.c +++ b/components/bt/controller/esp32c3/bt.c @@ -43,8 +43,6 @@ #include "riscv/interrupt.h" #include "esp32c3/rom/rom_layout.h" #else //CONFIG_IDF_TARGET_ESP32S3 -#include "freertos/xtensa_api.h" -#include "xtensa/core-macros.h" #include "esp32s3/rom/rom_layout.h" #endif #if CONFIG_BT_ENABLED diff --git a/components/driver/touch_sensor/esp32/touch_sensor.c b/components/driver/touch_sensor/esp32/touch_sensor.c index 94c5571f58..042c802cc3 100644 --- a/components/driver/touch_sensor/esp32/touch_sensor.c +++ b/components/driver/touch_sensor/esp32/touch_sensor.c @@ -13,7 +13,6 @@ #include "soc/rtc.h" #include "soc/periph_defs.h" #include "freertos/FreeRTOS.h" -#include "freertos/xtensa_api.h" #include "freertos/semphr.h" #include "esp_timer.h" #include "esp_intr_alloc.h" diff --git a/components/driver/touch_sensor/esp32s2/touch_sensor.c b/components/driver/touch_sensor/esp32s2/touch_sensor.c index f9476c7adc..ebac409021 100644 --- a/components/driver/touch_sensor/esp32s2/touch_sensor.c +++ b/components/driver/touch_sensor/esp32s2/touch_sensor.c @@ -11,7 +11,6 @@ #include "sys/lock.h" #include "soc/soc_pins.h" #include "freertos/FreeRTOS.h" -#include "freertos/xtensa_api.h" #include "freertos/semphr.h" #include "freertos/timers.h" #include "esp_intr_alloc.h" diff --git a/components/driver/touch_sensor/esp32s3/touch_sensor.c b/components/driver/touch_sensor/esp32s3/touch_sensor.c index 45959c6280..e1b86db319 100644 --- a/components/driver/touch_sensor/esp32s3/touch_sensor.c +++ b/components/driver/touch_sensor/esp32s3/touch_sensor.c @@ -11,7 +11,6 @@ #include "sys/lock.h" #include "soc/soc_pins.h" #include "freertos/FreeRTOS.h" -#include "freertos/xtensa_api.h" #include "freertos/semphr.h" #include "freertos/timers.h" #include "esp_intr_alloc.h" diff --git a/components/esp_hw_support/include/esp_cpu.h b/components/esp_hw_support/include/esp_cpu.h index 45b7df7556..e4e43236c5 100644 --- a/components/esp_hw_support/include/esp_cpu.h +++ b/components/esp_hw_support/include/esp_cpu.h @@ -12,7 +12,7 @@ #include #include "soc/soc_caps.h" #ifdef __XTENSA__ -#include "xtensa/xtensa_api.h" +#include "xtensa_api.h" #include "xt_utils.h" #elif __riscv #include "riscv/rv_utils.h" diff --git a/components/esp_system/port/soc/esp32/system_internal.c b/components/esp_system/port/soc/esp32/system_internal.c index a59e2a4e0f..47a0b1ace2 100644 --- a/components/esp_system/port/soc/esp32/system_internal.c +++ b/components/esp_system/port/soc/esp32/system_internal.c @@ -22,7 +22,6 @@ #include "soc/rtc.h" #include "esp_private/rtc_clk.h" #include "hal/wdt_hal.h" -#include "freertos/xtensa_api.h" #include "soc/soc_memory_layout.h" #include "esp_private/cache_err_int.h" @@ -61,7 +60,7 @@ void IRAM_ATTR esp_system_reset_modules_on_exit(void) void IRAM_ATTR esp_restart_noos(void) { // Disable interrupts - xt_ints_off(0xFFFFFFFF); + esp_cpu_intr_disable(0xFFFFFFFF); // Enable RTC watchdog for 1 second wdt_hal_context_t rtc_wdt_ctx; diff --git a/components/esp_system/port/soc/esp32s2/system_internal.c b/components/esp_system/port/soc/esp32s2/system_internal.c index 1378dde8a6..b790f36b65 100644 --- a/components/esp_system/port/soc/esp32s2/system_internal.c +++ b/components/esp_system/port/soc/esp32s2/system_internal.c @@ -22,7 +22,6 @@ #include "soc/syscon_reg.h" #include "soc/rtc_periph.h" #include "hal/wdt_hal.h" -#include "freertos/xtensa_api.h" #include "soc/soc_memory_layout.h" #include "esp32s2/rom/rtc.h" @@ -61,7 +60,7 @@ void IRAM_ATTR esp_system_reset_modules_on_exit(void) void IRAM_ATTR esp_restart_noos(void) { // Disable interrupts - xt_ints_off(0xFFFFFFFF); + esp_cpu_intr_disable(0xFFFFFFFF); // Enable RTC watchdog for 1 second wdt_hal_context_t rtc_wdt_ctx; diff --git a/components/esp_system/port/soc/esp32s3/system_internal.c b/components/esp_system/port/soc/esp32s3/system_internal.c index 0ea68533a5..e797c12efc 100644 --- a/components/esp_system/port/soc/esp32s3/system_internal.c +++ b/components/esp_system/port/soc/esp32s3/system_internal.c @@ -21,7 +21,6 @@ #include "soc/syscon_reg.h" #include "soc/rtc_periph.h" #include "hal/wdt_hal.h" -#include "freertos/xtensa_api.h" #include "soc/soc_memory_layout.h" #include "esp32s3/rom/cache.h" @@ -68,7 +67,7 @@ void IRAM_ATTR esp_system_reset_modules_on_exit(void) void IRAM_ATTR esp_restart_noos(void) { // Disable interrupts - xt_ints_off(0xFFFFFFFF); + esp_cpu_intr_disable(0xFFFFFFFF); // Enable RTC watchdog for 1 second wdt_hal_context_t rtc_wdt_ctx; diff --git a/components/esp_system/test_apps/esp_system_unity_tests/main/test_backtrace.c b/components/esp_system/test_apps/esp_system_unity_tests/main/test_backtrace.c index d1309f906e..93dc3ec50e 100644 --- a/components/esp_system/test_apps/esp_system_unity_tests/main/test_backtrace.c +++ b/components/esp_system/test_apps/esp_system_unity_tests/main/test_backtrace.c @@ -15,7 +15,7 @@ #include "freertos/FreeRTOS.h" #include "freertos/task.h" -#include "freertos/xtensa_api.h" +#include "xtensa_api.h" // Replace with interrupt allocator API (IDF-3891) #include "esp_intr_alloc.h" #include "esp_rom_sys.h" #include "esp_rom_uart.h" diff --git a/components/esp_wifi/esp32/esp_adapter.c b/components/esp_wifi/esp32/esp_adapter.c index a1d6914a87..5d2ae86a13 100644 --- a/components/esp_wifi/esp32/esp_adapter.c +++ b/components/esp_wifi/esp32/esp_adapter.c @@ -17,7 +17,7 @@ #include "freertos/semphr.h" #include "freertos/event_groups.h" #include "freertos/portmacro.h" -#include "freertos/xtensa_api.h" +#include "xtensa_api.h" // Replace with interrupt allocator API (IDF-3891) #include "esp_types.h" #include "esp_random.h" #include "esp_mac.h" diff --git a/components/esp_wifi/esp32s2/esp_adapter.c b/components/esp_wifi/esp32s2/esp_adapter.c index b0672498cc..826b6a4fa3 100644 --- a/components/esp_wifi/esp32s2/esp_adapter.c +++ b/components/esp_wifi/esp32s2/esp_adapter.c @@ -17,7 +17,7 @@ #include "freertos/semphr.h" #include "freertos/event_groups.h" #include "freertos/portmacro.h" -#include "freertos/xtensa_api.h" +#include "xtensa_api.h" // Replace with interrupt allocator API (IDF-3891) #include "esp_types.h" #include "esp_random.h" #include "esp_mac.h" diff --git a/components/esp_wifi/esp32s3/esp_adapter.c b/components/esp_wifi/esp32s3/esp_adapter.c index e6ca995af7..662041d4ae 100644 --- a/components/esp_wifi/esp32s3/esp_adapter.c +++ b/components/esp_wifi/esp32s3/esp_adapter.c @@ -17,7 +17,7 @@ #include "freertos/semphr.h" #include "freertos/event_groups.h" #include "freertos/portmacro.h" -#include "freertos/xtensa_api.h" +#include "xtensa_api.h" // Replace with interrupt allocator API (IDF-3891) #include "esp_types.h" #include "esp_random.h" #include "esp_mac.h" diff --git a/components/freertos/FreeRTOS-Kernel-SMP/portable/xtensa/include/freertos/portmacro.h b/components/freertos/FreeRTOS-Kernel-SMP/portable/xtensa/include/freertos/portmacro.h index 26c6841036..c545338c1a 100644 --- a/components/freertos/FreeRTOS-Kernel-SMP/portable/xtensa/include/freertos/portmacro.h +++ b/components/freertos/FreeRTOS-Kernel-SMP/portable/xtensa/include/freertos/portmacro.h @@ -424,7 +424,7 @@ portmacro.h. Therefore, we need to keep these headers around for now to allow th #include "portbenchmark.h" #include #include -#include +#include /* [refactor-todo] introduce a port wrapper function to avoid including esp_timer.h into the public header */ #if CONFIG_FREERTOS_RUN_TIME_STATS_USING_ESP_TIMER diff --git a/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h b/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h index a386c68609..e6af16de0a 100644 --- a/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h +++ b/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h @@ -61,7 +61,7 @@ /* [refactor-todo] These includes are not directly used in this file. They are kept into to prevent a breaking change. Remove these. */ #include #include -#include +#include /* [refactor-todo] introduce a port wrapper function to avoid including esp_timer.h into the public header */ #if CONFIG_FREERTOS_RUN_TIME_STATS_USING_ESP_TIMER diff --git a/components/freertos/test_apps/freertos/performance/test_isr_latency.c b/components/freertos/test_apps/freertos/performance/test_isr_latency.c index 7a13d82668..2375516162 100644 --- a/components/freertos/test_apps/freertos/performance/test_isr_latency.c +++ b/components/freertos/test_apps/freertos/performance/test_isr_latency.c @@ -18,7 +18,7 @@ #include "test_utils.h" #if CONFIG_IDF_TARGET_ARCH_XTENSA #include "xtensa/hal.h" -#include "freertos/xtensa_api.h" +#include "xtensa_api.h" // Replace with interrupt allocator API (IDF-3891) #define TEST_SET_INT_MASK(mask) xt_set_intset(mask) #define TEST_CLR_INT_MASK(mask) xt_set_intclear(mask) #elif CONFIG_IDF_TARGET_ARCH_RISCV diff --git a/components/freertos/test_apps/freertos/port/test_fpu_in_isr.c b/components/freertos/test_apps/freertos/port/test_fpu_in_isr.c index a2f2fdf25d..5bdbc1375b 100644 --- a/components/freertos/test_apps/freertos/port/test_fpu_in_isr.c +++ b/components/freertos/test_apps/freertos/port/test_fpu_in_isr.c @@ -16,7 +16,7 @@ #if SOC_CPU_HAS_FPU && CONFIG_FREERTOS_FPU_IN_ISR // We can use xtensa API here as currently, non of the RISC-V targets have an FPU -#include "xtensa/xtensa_api.h" +#include "xtensa_api.h" // Replace with interrupt allocator API (IDF-3891) #include "esp_intr_alloc.h" #define SW_ISR_LEVEL_1 7 diff --git a/components/freertos/test_apps/freertos/port/test_xtensa_loadstore_handler.c b/components/freertos/test_apps/freertos/port/test_xtensa_loadstore_handler.c index cbfc2774c5..1618b57a95 100644 --- a/components/freertos/test_apps/freertos/port/test_xtensa_loadstore_handler.c +++ b/components/freertos/test_apps/freertos/port/test_xtensa_loadstore_handler.c @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ @@ -15,10 +15,7 @@ #include "esp_random.h" #include "unity.h" -#if CONFIG_IDF_TARGET_ARCH_XTENSA -#include "freertos/xtensa_api.h" - -#ifdef CONFIG_ESP32_IRAM_AS_8BIT_ACCESSIBLE_MEMORY +#if CONFIG_IDF_TARGET_ARCH_XTENSA && CONFIG_ESP32_IRAM_AS_8BIT_ACCESSIBLE_MEMORY TEST_CASE("LoadStore Exception handler", "[freertos]") { int32_t val0 = 0xDEADBEEF; @@ -128,5 +125,4 @@ TEST_CASE("LoadStore Exception handler", "[freertos]") TEST_ASSERT_TRUE(heap_caps_check_integrity_all(true)); heap_caps_free(arr); } -#endif // CONFIG_ESP32_IRAM_AS_8BIT_ACCESSIBLE_MEMORY -#endif // CONFIG_IDF_TARGET_ARCH_XTENSA +#endif // CONFIG_IDF_TARGET_ARCH_XTENSA && CONFIG_ESP32_IRAM_AS_8BIT_ACCESSIBLE_MEMORY diff --git a/components/xtensa/deprecated_include/freertos/xtensa_api.h b/components/xtensa/deprecated_include/freertos/xtensa_api.h index 1e506180ee..891d1f59f6 100644 --- a/components/xtensa/deprecated_include/freertos/xtensa_api.h +++ b/components/xtensa/deprecated_include/freertos/xtensa_api.h @@ -6,6 +6,6 @@ #pragma once -/* This header file has been moved, thus `#include ` is deprecated. Please use `#include ` instead */ -/* Todo: IDF-7230 */ -#include +#warning "This header file has been moved, thus `#include ` is deprecated. Please use `#include ` instead" + +#include diff --git a/components/xtensa/deprecated_include/xtensa/xtensa_api.h b/components/xtensa/deprecated_include/xtensa/xtensa_api.h index dbcbfd91c8..71bd8f3248 100644 --- a/components/xtensa/deprecated_include/xtensa/xtensa_api.h +++ b/components/xtensa/deprecated_include/xtensa/xtensa_api.h @@ -6,6 +6,6 @@ #pragma once -/* This header file has been moved, thus `#include ` is deprecated. Please use `#include ` instead */ -/* Todo: IDF-7230 */ +#warning "This header file has been moved, thus `#include ` is deprecated. Please use `#include ` instead" + #include diff --git a/components/xtensa/xtensa_intr.c b/components/xtensa/xtensa_intr.c index c02f82d070..4d374aad50 100644 --- a/components/xtensa/xtensa_intr.c +++ b/components/xtensa/xtensa_intr.c @@ -31,7 +31,7 @@ #include #include "esp_attr.h" -#include "xtensa/xtensa_api.h" +#include "xtensa_api.h" #include "sdkconfig.h" #include "esp_rom_sys.h" diff --git a/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/bt_app_core.c b/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/bt_app_core.c index 29ce385feb..29c915e893 100644 --- a/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/bt_app_core.c +++ b/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/bt_app_core.c @@ -7,7 +7,6 @@ #include #include #include -#include "freertos/xtensa_api.h" #include "freertos/FreeRTOSConfig.h" #include "freertos/FreeRTOS.h" #include "freertos/queue.h" diff --git a/examples/bluetooth/bluedroid/classic_bt/bt_l2cap_client/main/bt_app_core.c b/examples/bluetooth/bluedroid/classic_bt/bt_l2cap_client/main/bt_app_core.c index 58b22dddea..89354ac860 100644 --- a/examples/bluetooth/bluedroid/classic_bt/bt_l2cap_client/main/bt_app_core.c +++ b/examples/bluetooth/bluedroid/classic_bt/bt_l2cap_client/main/bt_app_core.c @@ -7,7 +7,6 @@ #include #include #include -#include "freertos/xtensa_api.h" #include "freertos/FreeRTOSConfig.h" #include "freertos/FreeRTOS.h" #include "freertos/queue.h" diff --git a/examples/bluetooth/bluedroid/classic_bt/bt_l2cap_server/main/bt_app_core.c b/examples/bluetooth/bluedroid/classic_bt/bt_l2cap_server/main/bt_app_core.c index 58b22dddea..89354ac860 100644 --- a/examples/bluetooth/bluedroid/classic_bt/bt_l2cap_server/main/bt_app_core.c +++ b/examples/bluetooth/bluedroid/classic_bt/bt_l2cap_server/main/bt_app_core.c @@ -7,7 +7,6 @@ #include #include #include -#include "freertos/xtensa_api.h" #include "freertos/FreeRTOSConfig.h" #include "freertos/FreeRTOS.h" #include "freertos/queue.h" diff --git a/examples/bluetooth/bluedroid/classic_bt/bt_spp_initiator/main/console_uart.c b/examples/bluetooth/bluedroid/classic_bt/bt_spp_initiator/main/console_uart.c index bde63273b7..7e10c2ea10 100644 --- a/examples/bluetooth/bluedroid/classic_bt/bt_spp_initiator/main/console_uart.c +++ b/examples/bluetooth/bluedroid/classic_bt/bt_spp_initiator/main/console_uart.c @@ -5,7 +5,6 @@ */ #include "driver/uart.h" -#include "freertos/xtensa_api.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/queue.h" diff --git a/examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_acceptor/main/spp_task.c b/examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_acceptor/main/spp_task.c index f944aa729e..275df04fda 100644 --- a/examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_acceptor/main/spp_task.c +++ b/examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_acceptor/main/spp_task.c @@ -7,7 +7,6 @@ #include #include #include -#include "freertos/xtensa_api.h" #include "freertos/FreeRTOSConfig.h" #include "freertos/FreeRTOS.h" #include "freertos/queue.h" diff --git a/examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_initiator/main/spp_task.c b/examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_initiator/main/spp_task.c index f944aa729e..275df04fda 100644 --- a/examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_initiator/main/spp_task.c +++ b/examples/bluetooth/bluedroid/classic_bt/bt_spp_vfs_initiator/main/spp_task.c @@ -7,7 +7,6 @@ #include #include #include -#include "freertos/xtensa_api.h" #include "freertos/FreeRTOSConfig.h" #include "freertos/FreeRTOS.h" #include "freertos/queue.h" diff --git a/examples/bluetooth/bluedroid/classic_bt/hfp_ag/main/bt_app_core.c b/examples/bluetooth/bluedroid/classic_bt/hfp_ag/main/bt_app_core.c index 799ea803f6..c1b8ba81b8 100644 --- a/examples/bluetooth/bluedroid/classic_bt/hfp_ag/main/bt_app_core.c +++ b/examples/bluetooth/bluedroid/classic_bt/hfp_ag/main/bt_app_core.c @@ -7,7 +7,6 @@ #include #include #include -#include "freertos/xtensa_api.h" #include "freertos/FreeRTOSConfig.h" #include "freertos/FreeRTOS.h" #include "freertos/queue.h" diff --git a/examples/bluetooth/bluedroid/classic_bt/hfp_hf/main/bt_app_core.c b/examples/bluetooth/bluedroid/classic_bt/hfp_hf/main/bt_app_core.c index 549ba82af0..c8762d8313 100644 --- a/examples/bluetooth/bluedroid/classic_bt/hfp_hf/main/bt_app_core.c +++ b/examples/bluetooth/bluedroid/classic_bt/hfp_hf/main/bt_app_core.c @@ -7,7 +7,6 @@ #include #include #include -#include "freertos/xtensa_api.h" #include "freertos/FreeRTOSConfig.h" #include "freertos/FreeRTOS.h" #include "freertos/queue.h" diff --git a/examples/bluetooth/bluedroid/coex/a2dp_gatts_coex/main/bt_app_core.c b/examples/bluetooth/bluedroid/coex/a2dp_gatts_coex/main/bt_app_core.c index 29ce385feb..29c915e893 100644 --- a/examples/bluetooth/bluedroid/coex/a2dp_gatts_coex/main/bt_app_core.c +++ b/examples/bluetooth/bluedroid/coex/a2dp_gatts_coex/main/bt_app_core.c @@ -7,7 +7,6 @@ #include #include #include -#include "freertos/xtensa_api.h" #include "freertos/FreeRTOSConfig.h" #include "freertos/FreeRTOS.h" #include "freertos/queue.h"