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".
This commit is contained in:
Darian Leung
2023-04-06 20:56:50 +08:00
parent a15c36f987
commit 0c21d59716
2 changed files with 6 additions and 7 deletions

View File

@@ -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)

View File

@@ -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 --------------------------------------------------------