From 0c21d5971657d0ea5cca1d8252a07a602b55ee74 Mon Sep 17 00:00:00 2001 From: Darian Leung Date: Thu, 6 Apr 2023 20:56:50 +0800 Subject: [PATCH] freertos: Move freertos_tasks_c_additions.h freertos_tasks_c_additions.h is technically included as source file. This commit removes the "private_include" directory of "freertos_tasks_c_additions.h" and treats it as a source file of "esp_additions". --- components/freertos/CMakeLists.txt | 2 +- .../freertos_tasks_c_additions.h | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) rename components/freertos/esp_additions/{private_include => }/freertos_tasks_c_additions.h (98%) diff --git a/components/freertos/CMakeLists.txt b/components/freertos/CMakeLists.txt index f8e3141670..ec244fc76b 100644 --- a/components/freertos/CMakeLists.txt +++ b/components/freertos/CMakeLists.txt @@ -59,7 +59,7 @@ else() "${kernel_dir}/portable/${arch}/portasm.S") list(APPEND private_include_dirs - "esp_additions/private_include") # For include "freertos_tasks_c_additions.h" + "esp_additions") # For #include "freertos_tasks_c_additions.h" if(CONFIG_FREERTOS_SMP) set(ldfragments linker_smp.lf linker_common.lf) diff --git a/components/freertos/esp_additions/private_include/freertos_tasks_c_additions.h b/components/freertos/esp_additions/freertos_tasks_c_additions.h similarity index 98% rename from components/freertos/esp_additions/private_include/freertos_tasks_c_additions.h rename to components/freertos/esp_additions/freertos_tasks_c_additions.h index bc43cabdcd..526581d3bd 100644 --- a/components/freertos/esp_additions/private_include/freertos_tasks_c_additions.h +++ b/components/freertos/esp_additions/freertos_tasks_c_additions.h @@ -10,12 +10,11 @@ #include "idf_additions_inc.h" /** - * This file will be included in `tasks.c` file, thus, it must NOT be included - * by any (other) file. - * The functions below only consist in getters for the static variables in - * `tasks.c` file. - * The only source files that should call these functions are the ones in - * `/additions` directory. + * This file will be included in `tasks.c` file, thus, it is treated as a source + * file instead of a header file, and must NOT be included by any (other) file. + * This file is used to add additional functions to `tasks.c`. See the + * `esp_additions/include` directory of the headers that expose these `tasks.c` + * additional API. */ /* ----------------------------------------------------- Newlib --------------------------------------------------------