mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-18 07:37:54 +00:00
freertos: Refactor component structure
This commit refactors the "freertos" component's structure as follows: - "FreeRTOSConfig.h" related files moved to "./config" directory - Refactored CMakeLists.txt file in preparation for v10.5.1 upgrade - Grouped list appends based on component organization - Removed some unecessarily public "include_dirs" - Removed FreeRTOS-openocd.c - uxTopUsedPriority has been added back to tasks.c since v10.4.2 - Thus the workaround in FreeRTOS-openocd.c is no longer needed and can be removed.
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
/* Linux POSIX simulator specific configuration. This file is included in the common FreeRTOSConfig.h. */
|
||||
|
||||
#include "sdkconfig.h"
|
||||
|
||||
/* ------------------------------------------------- FreeRTOS Config ---------------------------------------------------
|
||||
* - All Vanilla FreeRTOS configuration goes into this section
|
||||
* - Match upstream POSIX simulator example FreeRTOSConfig.h where possible. See following link for more details.
|
||||
* https://github.com/FreeRTOS/FreeRTOS/blob/main/FreeRTOS/Demo/Posix_GCC/FreeRTOSConfig.h
|
||||
* ------------------------------------------------------------------------------------------------------------------ */
|
||||
|
||||
/* ------------------ Scheduler Related -------------------- */
|
||||
|
||||
#define configMAX_PRIORITIES ( 7 )
|
||||
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 0
|
||||
|
||||
/* The stack allocated by FreeRTOS will be passed to a pthread.
|
||||
* pthread has a minimal stack size which currently is 16KB.
|
||||
* The rest is for additional structures of the POSIX/Linux port.
|
||||
* This is a magic number since PTHREAD_STACK_MIN seems to not be a constant. */
|
||||
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) ( 0x4000 + 40 ) / sizeof( portSTACK_TYPE ) )
|
||||
/* Currently not used in Linux POSIX simulator */
|
||||
#define configMAX_API_CALL_INTERRUPT_PRIORITY 0
|
||||
|
||||
/* ---------------- Amazon SMP FreeRTOS -------------------- */
|
||||
|
||||
#if CONFIG_FREERTOS_SMP
|
||||
#define configUSE_MINIMAL_IDLE_HOOK 0 // Not implemented yet, TODO IDF-6654
|
||||
#endif
|
||||
|
||||
/* ----------------------- System -------------------------- */
|
||||
|
||||
/* On the Linux simulator, we use the system-provided libc */
|
||||
#define configUSE_NEWLIB_REENTRANT 0
|
||||
|
||||
#define configINCLUDE_FREERTOS_TASK_C_ADDITIONS_H 1
|
||||
|
||||
/* ----------------------- Memory ------------------------- */
|
||||
|
||||
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 65 * 1024 ) )
|
||||
|
||||
/* ------------------- Run-time Stats ---------------------- */
|
||||
|
||||
#define configUSE_TRACE_FACILITY 1
|
||||
|
||||
/* -------------------- API Includes ----------------------- */
|
||||
|
||||
#define INCLUDE_xTaskGetCurrentTaskHandle 0 /* not defined in POSIX simulator */
|
||||
#define INCLUDE_vTaskDelayUntil 1
|
||||
#define INCLUDE_uxTaskGetStackHighWaterMark2 0
|
||||
|
||||
/* ------------------------------------------------ ESP-IDF Additions --------------------------------------------------
|
||||
*
|
||||
* ------------------------------------------------------------------------------------------------------------------ */
|
Reference in New Issue
Block a user