change(xtensa): Deprecate ".../xtensa_timer.h" include path

This commit deprecates the "freertos/xtensa_timer.h" and "xtensa/xtensa_timer.h"
include paths. Users should use "xtensa_timer.h" instead.

- Replace legacy include paths
- Removed some unnecessary includes of "xtensa_timer.h"
- Add warning to compatibility header
This commit is contained in:
Darian Leung 2023-10-27 18:14:53 +08:00
parent 555bd367e1
commit b85e6d3dd8
5 changed files with 6 additions and 7 deletions

View File

@ -17,7 +17,7 @@
#include "freertos/FreeRTOS.h" #include "freertos/FreeRTOS.h"
#include "freertos/task.h" #include "freertos/task.h"
#include "freertos/semphr.h" #include "freertos/semphr.h"
#include "freertos/xtensa_timer.h" #include "xtensa_timer.h"
#include "driver/uart.h" #include "driver/uart.h"
#include "unity.h" #include "unity.h"
#include "test_utils.h" #include "test_utils.h"

View File

@ -28,7 +28,7 @@
#include "freertos/FreeRTOS.h" #include "freertos/FreeRTOS.h"
#include "freertos/task.h" #include "freertos/task.h"
#if CONFIG_FREERTOS_SYSTICK_USES_CCOUNT #if CONFIG_FREERTOS_SYSTICK_USES_CCOUNT
#include "freertos/xtensa_timer.h" #include "xtensa_timer.h"
#include "xtensa/core-macros.h" #include "xtensa/core-macros.h"
#endif #endif

View File

@ -14,7 +14,6 @@
#include "freertos/FreeRTOS.h" #include "freertos/FreeRTOS.h"
#include "freertos/task.h" #include "freertos/task.h"
#include "freertos/semphr.h" #include "freertos/semphr.h"
#include "freertos/xtensa_timer.h"
#include "unity.h" #include "unity.h"
#include "test_utils.h" #include "test_utils.h"
#include "esp32/rom/sha.h" #include "esp32/rom/sha.h"

View File

@ -6,6 +6,6 @@
#pragma once #pragma once
/* This header file has been moved, thus `#include <freertos/xtensa_timer.h>` is deprecated. Please use `#include <xtensa_timer.h>` instead */ #warning "This header file has been moved, thus `#include <freertos/xtensa_timer.h>` is deprecated. Please use `#include <xtensa_timer.h>` instead"
/* Todo: IDF-7230 */
#include <xtensa_timer.h> #include <xtensa_timer.h>

View File

@ -6,6 +6,6 @@
#pragma once #pragma once
/* This header file has been moved, thus `#include <xtensa/xtensa_timer.h>` is deprecated. Please use `#include <xtensa_timer.h>` instead */ #warning "This header file has been moved, thus `#include <xtensa/xtensa_timer.h>` is deprecated. Please use `#include <xtensa_timer.h>` instead"
/* Todo: IDF-7230 */
#include <xtensa_timer.h> #include <xtensa_timer.h>