mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-07 09:02:08 +00:00
freertos: moved all xtensa specific files into a separated folder
This commit is contained in:
@@ -5,28 +5,40 @@ if(BOOTLOADER_BUILD)
|
||||
endif()
|
||||
|
||||
set(srcs
|
||||
"xtensa/port.c"
|
||||
"xtensa/portasm.S"
|
||||
"xtensa/xtensa_context.S"
|
||||
"xtensa/xtensa_init.c"
|
||||
"xtensa/xtensa_intr_asm.S"
|
||||
"xtensa/xtensa_intr.c"
|
||||
"xtensa/xtensa_overlay_os_hook.c"
|
||||
"xtensa/xtensa_vector_defaults.S"
|
||||
"xtensa/xtensa_vectors.S")
|
||||
|
||||
list(APPEND srcs
|
||||
"croutine.c"
|
||||
"event_groups.c"
|
||||
"FreeRTOS-openocd.c"
|
||||
"list.c"
|
||||
"port.c"
|
||||
"portasm.S"
|
||||
"queue.c"
|
||||
"tasks.c"
|
||||
"timers.c"
|
||||
"xtensa_context.S"
|
||||
"xtensa_init.c"
|
||||
"xtensa_intr.c"
|
||||
"xtensa_intr_asm.S"
|
||||
"xtensa_overlay_os_hook.c"
|
||||
"xtensa_vector_defaults.S"
|
||||
"xtensa_vectors.S")
|
||||
"timers.c")
|
||||
|
||||
set(include_dirs
|
||||
include
|
||||
xtensa/include)
|
||||
|
||||
set(private_include_dirs
|
||||
include/freertos
|
||||
xtensa/include/freertos
|
||||
xtensa
|
||||
.)
|
||||
|
||||
# app_trace is required by FreeRTOS headers only when CONFIG_SYSVIEW_ENABLE=y,
|
||||
# but requirements can't depend on config options, so always require it.
|
||||
idf_component_register(SRCS "${srcs}"
|
||||
INCLUDE_DIRS include
|
||||
PRIV_INCLUDE_DIRS include/freertos .
|
||||
INCLUDE_DIRS ${include_dirs}
|
||||
PRIV_INCLUDE_DIRS ${private_include_dirs}
|
||||
LDFRAGMENTS linker.lf
|
||||
REQUIRES app_trace
|
||||
PRIV_REQUIRES soc)
|
||||
|
||||
@@ -6,8 +6,9 @@ ifdef CONFIG_FREERTOS_DEBUG_OCDAWARE
|
||||
COMPONENT_ADD_LDFLAGS += -Wl,--undefined=uxTopUsedPriority
|
||||
endif
|
||||
|
||||
COMPONENT_ADD_INCLUDEDIRS := include
|
||||
COMPONENT_PRIV_INCLUDEDIRS := include/freertos .
|
||||
COMPONENT_ADD_INCLUDEDIRS := include xtensa/include
|
||||
COMPONENT_PRIV_INCLUDEDIRS := include/freertos xtensa/include/freertos xtensa .
|
||||
COMPONENT_SRCDIRS += xtensa
|
||||
|
||||
tasks.o event_groups.o timers.o queue.o: CFLAGS += -D_ESP_FREERTOS_INTERNAL
|
||||
COMPONENT_ADD_LDFRAGMENTS += linker.lf
|
||||
|
||||
@@ -98,7 +98,7 @@ extern "C" {
|
||||
#include "esp_compiler.h"
|
||||
|
||||
/* Application specific configuration options. */
|
||||
#include "FreeRTOSConfig.h"
|
||||
#include "freertos/FreeRTOSConfig.h"
|
||||
|
||||
/* Basic FreeRTOS definitions. */
|
||||
#include "projdefs.h"
|
||||
|
||||
@@ -93,7 +93,7 @@ did not result in a portmacro.h header file being included - and it should be
|
||||
included here. In this case the path to the correct portmacro.h header file
|
||||
must be set in the compiler's include path. */
|
||||
#ifndef portENTER_CRITICAL
|
||||
#include "portmacro.h"
|
||||
#include "freertos/portmacro.h"
|
||||
#endif
|
||||
|
||||
#if portBYTE_ALIGNMENT == 8
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
#include <limits.h>
|
||||
|
||||
#include "list.h"
|
||||
#include "portmacro.h"
|
||||
#include "freertos/portmacro.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/task.h"
|
||||
#include "freertos/semphr.h"
|
||||
#include "freertos/FreeRTOSConfig.h"
|
||||
#include "unity.h"
|
||||
#include "test_utils.h"
|
||||
|
||||
|
||||
@@ -115,8 +115,7 @@ int xt_clock_freq(void) __attribute__((deprecated));
|
||||
|
||||
|
||||
/* Required for configuration-dependent settings */
|
||||
#include "xtensa_config.h"
|
||||
|
||||
#include <freertos/xtensa_config.h>
|
||||
|
||||
/* configASSERT behaviour */
|
||||
#ifndef __ASSEMBLER__
|
||||
@@ -128,7 +128,6 @@ typedef unsigned portBASE_TYPE UBaseType_t;
|
||||
|
||||
// portbenchmark
|
||||
#include "portbenchmark.h"
|
||||
|
||||
#include "sdkconfig.h"
|
||||
#include "esp_attr.h"
|
||||
|
||||
@@ -54,7 +54,7 @@ Should be included by all Xtensa generic and RTOS port-specific sources.
|
||||
/*
|
||||
Include any RTOS specific definitions that are needed by this header.
|
||||
*/
|
||||
#include "FreeRTOSConfig.h"
|
||||
#include "freertos/FreeRTOSConfig.h"
|
||||
|
||||
/*
|
||||
Convert FreeRTOSConfig definitions to XTENSA definitions.
|
||||
@@ -49,7 +49,7 @@ and the Xtensa core configuration need not have a timer.
|
||||
|
||||
#include "xtensa_rtos.h" /* in case this wasn't included directly */
|
||||
|
||||
#include "FreeRTOSConfig.h"
|
||||
#include "freertos/FreeRTOSConfig.h"
|
||||
|
||||
/*
|
||||
Select timer to use for periodic tick, and determine its interrupt number
|
||||
Reference in New Issue
Block a user