Skip to content

Commit ac1834e

Browse files
committed
Merge branch 'feature/freertos_xtensa_folder' into 'master'
freertos: moved all xtensa specific files into a separated folder See merge request espressif/esp-idf!7377
2 parents ce7af82 + 429712c commit ac1834e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+41
-45
lines changed

components/driver/can.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
#include "sdkconfig.h"
1919
#include "freertos/FreeRTOS.h"
20-
#include "freertos/portmacro.h"
2120
#include "freertos/task.h"
2221
#include "freertos/queue.h"
2322
#include "freertos/semphr.h"

components/driver/include/driver/sdio_slave.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#define _DRIVER_SDIO_SLAVE_H_
1717

1818
#include "freertos/FreeRTOS.h"
19-
#include "freertos/portmacro.h"
2019
#include "esp_err.h"
2120
#include "sys/queue.h"
2221

components/driver/test/test_pcnt.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
*/
1212
#include <stdio.h>
1313
#include "freertos/FreeRTOS.h"
14-
#include "freertos/portmacro.h"
1514
#include "freertos/task.h"
1615
#include "freertos/queue.h"
1716
#include "driver/periph_ctrl.h"

components/esp32/cpu_start.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
#include "freertos/task.h"
3838
#include "freertos/semphr.h"
3939
#include "freertos/queue.h"
40-
#include "freertos/portmacro.h"
4140

4241
#include "esp_heap_caps_init.h"
4342
#include "sdkconfig.h"

components/esp32/crosscore_int.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#include "freertos/task.h"
3131
#include "freertos/semphr.h"
3232
#include "freertos/queue.h"
33-
#include "freertos/portmacro.h"
3433

3534

3635
#define REASON_YIELD BIT(0)

components/esp32/dport_access.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
#include "freertos/task.h"
3838
#include "freertos/semphr.h"
3939
#include "freertos/queue.h"
40-
#include "freertos/portmacro.h"
4140

4241
#include "xtensa/core-macros.h"
4342

components/esp32/task_wdt.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include <string.h>
1919
#include <stdbool.h>
2020
#include "sdkconfig.h"
21-
#include "freertos/FreeRTOSConfig.h"
2221
#include "freertos/FreeRTOS.h"
2322
#include "freertos/task.h"
2423
#include "freertos/queue.h"

components/esp32s2/cpu_start.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
#include "freertos/task.h"
4242
#include "freertos/semphr.h"
4343
#include "freertos/queue.h"
44-
#include "freertos/portmacro.h"
4544

4645
#include "esp_heap_caps_init.h"
4746
#include "esp_system.h"

components/esp32s2/crosscore_int.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
#include "freertos/task.h"
3232
#include "freertos/semphr.h"
3333
#include "freertos/queue.h"
34-
#include "freertos/portmacro.h"
3534

3635

3736
#define REASON_YIELD BIT(0)

components/esp32s2/task_wdt.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include <string.h>
1919
#include <stdbool.h>
2020
#include "sdkconfig.h"
21-
#include "freertos/FreeRTOSConfig.h"
2221
#include "freertos/FreeRTOS.h"
2322
#include "freertos/task.h"
2423
#include "freertos/queue.h"

components/esp_event/test/test_event.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
#include "freertos/FreeRTOS.h"
88
#include "freertos/task.h"
9-
#include "freertos/portmacro.h"
109
#include "esp_log.h"
1110
#include "driver/periph_ctrl.h"
1211
#include "driver/timer.h"

components/freemodbus/port/port.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737

3838
/* ----------------------- Modbus includes ----------------------------------*/
3939
#include "freertos/FreeRTOS.h"
40-
#include "freertos/portmacro.h"
4140
#include "sys/lock.h"
4241
#include "port.h"
4342

components/freemodbus/port/port.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
#include "freertos/FreeRTOS.h"
2020
#include "freertos/xtensa_api.h"
21-
#include "freertos/portmacro.h"
2221
#include "esp_log.h" // for ESP_LOGE macro
2322

2423
#define INLINE inline

components/freertos/CMakeLists.txt

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,40 @@ if(BOOTLOADER_BUILD)
55
endif()
66

77
set(srcs
8+
"xtensa/port.c"
9+
"xtensa/portasm.S"
10+
"xtensa/xtensa_context.S"
11+
"xtensa/xtensa_init.c"
12+
"xtensa/xtensa_intr_asm.S"
13+
"xtensa/xtensa_intr.c"
14+
"xtensa/xtensa_overlay_os_hook.c"
15+
"xtensa/xtensa_vector_defaults.S"
16+
"xtensa/xtensa_vectors.S")
17+
18+
list(APPEND srcs
819
"croutine.c"
920
"event_groups.c"
1021
"FreeRTOS-openocd.c"
1122
"list.c"
12-
"port.c"
13-
"portasm.S"
1423
"queue.c"
1524
"tasks.c"
16-
"timers.c"
17-
"xtensa_context.S"
18-
"xtensa_init.c"
19-
"xtensa_intr.c"
20-
"xtensa_intr_asm.S"
21-
"xtensa_overlay_os_hook.c"
22-
"xtensa_vector_defaults.S"
23-
"xtensa_vectors.S")
25+
"timers.c")
26+
27+
set(include_dirs
28+
include
29+
xtensa/include)
30+
31+
set(private_include_dirs
32+
include/freertos
33+
xtensa/include/freertos
34+
xtensa
35+
.)
2436

2537
# app_trace is required by FreeRTOS headers only when CONFIG_SYSVIEW_ENABLE=y,
2638
# but requirements can't depend on config options, so always require it.
2739
idf_component_register(SRCS "${srcs}"
28-
INCLUDE_DIRS include
29-
PRIV_INCLUDE_DIRS include/freertos .
40+
INCLUDE_DIRS ${include_dirs}
41+
PRIV_INCLUDE_DIRS ${private_include_dirs}
3042
LDFRAGMENTS linker.lf
3143
REQUIRES app_trace
3244
PRIV_REQUIRES soc)

components/freertos/component.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ ifdef CONFIG_FREERTOS_DEBUG_OCDAWARE
66
COMPONENT_ADD_LDFLAGS += -Wl,--undefined=uxTopUsedPriority
77
endif
88

9-
COMPONENT_ADD_INCLUDEDIRS := include
10-
COMPONENT_PRIV_INCLUDEDIRS := include/freertos .
9+
COMPONENT_ADD_INCLUDEDIRS := include xtensa/include
10+
COMPONENT_PRIV_INCLUDEDIRS := include/freertos xtensa/include/freertos xtensa .
11+
COMPONENT_SRCDIRS += xtensa
1112

1213
tasks.o event_groups.o timers.o queue.o: CFLAGS += -D_ESP_FREERTOS_INTERNAL
1314
COMPONENT_ADD_LDFRAGMENTS += linker.lf

components/freertos/include/freertos/FreeRTOS.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ extern "C" {
9898
#include "esp_compiler.h"
9999

100100
/* Application specific configuration options. */
101-
#include "FreeRTOSConfig.h"
101+
#include "freertos/FreeRTOSConfig.h"
102102

103103
/* Basic FreeRTOS definitions. */
104104
#include "projdefs.h"

components/freertos/include/freertos/portable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ did not result in a portmacro.h header file being included - and it should be
9393
included here. In this case the path to the correct portmacro.h header file
9494
must be set in the compiler's include path. */
9595
#ifndef portENTER_CRITICAL
96-
#include "portmacro.h"
96+
#include "freertos/portmacro.h"
9797
#endif
9898

9999
#if portBYTE_ALIGNMENT == 8

components/freertos/include/freertos/task.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
#include <limits.h>
7979

8080
#include "list.h"
81-
#include "portmacro.h"
81+
#include "freertos/portmacro.h"
8282

8383
#ifdef __cplusplus
8484
extern "C" {

components/freertos/test/test_freertos_task_delay_until.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include "freertos/FreeRTOS.h"
99
#include "freertos/task.h"
1010
#include "freertos/semphr.h"
11-
#include "freertos/FreeRTOSConfig.h"
1211
#include "unity.h"
1312
#include "test_utils.h"
1413

components/freertos/include/freertos/FreeRTOSConfig.h renamed to components/freertos/xtensa/include/freertos/FreeRTOSConfig.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ int xt_clock_freq(void) __attribute__((deprecated));
115115

116116

117117
/* Required for configuration-dependent settings */
118-
#include "xtensa_config.h"
119-
118+
#include <freertos/xtensa_config.h>
120119

121120
/* configASSERT behaviour */
122121
#ifndef __ASSEMBLER__

components/freertos/include/freertos/portmacro.h renamed to components/freertos/xtensa/include/freertos/portmacro.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ typedef unsigned portBASE_TYPE UBaseType_t;
128128

129129
// portbenchmark
130130
#include "portbenchmark.h"
131-
132131
#include "sdkconfig.h"
133132
#include "esp_attr.h"
134133

components/freertos/include/freertos/xtensa_rtos.h renamed to components/freertos/xtensa/include/freertos/xtensa_rtos.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Should be included by all Xtensa generic and RTOS port-specific sources.
5454
/*
5555
Include any RTOS specific definitions that are needed by this header.
5656
*/
57-
#include "FreeRTOSConfig.h"
57+
#include "freertos/FreeRTOSConfig.h"
5858

5959
/*
6060
Convert FreeRTOSConfig definitions to XTENSA definitions.

components/freertos/include/freertos/xtensa_timer.h renamed to components/freertos/xtensa/include/freertos/xtensa_timer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ and the Xtensa core configuration need not have a timer.
4949

5050
#include "xtensa_rtos.h" /* in case this wasn't included directly */
5151

52-
#include "FreeRTOSConfig.h"
52+
#include "freertos/FreeRTOSConfig.h"
5353

5454
/*
5555
Select timer to use for periodic tick, and determine its interrupt number
File renamed without changes.
File renamed without changes.

components/newlib/locks.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include "soc/cpu.h"
2020
#include "freertos/FreeRTOS.h"
2121
#include "freertos/semphr.h"
22-
#include "freertos/portmacro.h"
2322
#include "freertos/task.h"
2423
#include "freertos/portable.h"
2524

components/pthread/include/esp_pthread.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#pragma once
1616

1717
#include "esp_err.h"
18-
#include <freertos/FreeRTOSConfig.h>
18+
#include "freertos/FreeRTOSConfig.h"
1919

2020
#ifdef __cplusplus
2121
extern "C" {

components/xtensa/stdatomic.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
#include "sdkconfig.h"
1818
#include "freertos/FreeRTOS.h"
19-
#include "freertos/portmacro.h"
2019
#include "xtensa/config/core-isa.h"
2120

2221

examples/bluetooth/esp_ble_mesh/ble_mesh_node/onoff_client/components/button/include/iot_button.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ extern "C" {
2020

2121
#include "driver/gpio.h"
2222
#include "freertos/portmacro.h"
23+
2324
typedef void (* button_cb)(void*);
2425
typedef void* button_handle_t;
2526

tools/ci/check_public_headers_exceptions.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ components/xtensa/esp32/include/xtensa/config/*
77
components/newlib/platform_include/*
88

99
components/freertos/include/freertos/*
10+
components/freertos/xtensa/include/freertos/*
11+
1012

1113
components/log/include/esp_log_internal.h
1214

tools/ci/test_build_system.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ function run_tests()
183183
# and therefore should rebuild
184184
assert_rebuilt newlib/syscall_table.o
185185
assert_rebuilt nvs_flash/src/nvs_api.o
186-
assert_rebuilt freertos/xtensa_vectors.o
186+
assert_rebuilt freertos/xtensa/xtensa_vectors.o
187187

188188
print_status "Updating project Makefile triggers full recompile"
189189
make
@@ -193,7 +193,7 @@ function run_tests()
193193
# similar to previous test
194194
assert_rebuilt newlib/syscall_table.o
195195
assert_rebuilt nvs_flash/src/nvs_api.o
196-
assert_rebuilt freertos/xtensa_vectors.o
196+
assert_rebuilt freertos/xtensa/xtensa_vectors.o
197197

198198
print_status "print_flash_cmd target should produce one line of output"
199199
make

tools/ci/test_build_system_cmake.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ function run_tests()
220220
# and therefore should rebuild
221221
assert_rebuilt esp-idf/newlib/CMakeFiles/${IDF_COMPONENT_PREFIX}_newlib.dir/syscall_table.c.obj
222222
assert_rebuilt esp-idf/nvs_flash/CMakeFiles/${IDF_COMPONENT_PREFIX}_nvs_flash.dir/src/nvs_api.cpp.obj
223-
assert_rebuilt esp-idf/freertos/CMakeFiles/${IDF_COMPONENT_PREFIX}_freertos.dir/xtensa_vectors.S.obj
223+
assert_rebuilt esp-idf/freertos/CMakeFiles/${IDF_COMPONENT_PREFIX}_freertos.dir/xtensa/xtensa_vectors.S.obj
224224
mv sdkconfig.bak sdkconfig
225225

226226
print_status "Updating project CMakeLists.txt triggers full recompile"
@@ -235,7 +235,7 @@ function run_tests()
235235
# similar to previous test
236236
assert_rebuilt esp-idf/newlib/CMakeFiles/${IDF_COMPONENT_PREFIX}_newlib.dir/syscall_table.c.obj
237237
assert_rebuilt esp-idf/nvs_flash/CMakeFiles/${IDF_COMPONENT_PREFIX}_nvs_flash.dir/src/nvs_api.cpp.obj
238-
assert_rebuilt esp-idf/freertos/CMakeFiles/${IDF_COMPONENT_PREFIX}_freertos.dir/xtensa_vectors.S.obj
238+
assert_rebuilt esp-idf/freertos/CMakeFiles/${IDF_COMPONENT_PREFIX}_freertos.dir/xtensa/xtensa_vectors.S.obj
239239
mv sdkconfig.bak sdkconfig
240240

241241
print_status "Can build with Ninja (no idf.py)"

tools/unit-test-app/components/test_utils/ccomp_timer_impl.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include "esp_attr.h"
2222
#include "eri.h"
2323
#include "freertos/FreeRTOS.h"
24-
#include "freertos/portmacro.h"
2524
#include "esp_freertos_hooks.h"
2625
#include "perfmon.h"
2726
#include "xtensa/core-macros.h"

tools/unit-test-app/components/test_utils/test/ccomp_timer_test_inst.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#include "ccomp_timer.h"
88

99
#include "freertos/FreeRTOS.h"
10-
#include "freertos/portmacro.h"
1110

1211
#include "unity.h"
1312

0 commit comments

Comments
 (0)