|
| 1 | +/* FreeRTOSConfig.h |
| 2 | + * |
| 3 | + * Copyright (C) 2026 wolfSSL Inc. |
| 4 | + * |
| 5 | + * wolfSSH is free software; you can redistribute it and/or modify |
| 6 | + * it under the terms of the GNU General Public License as published by |
| 7 | + * the Free Software Foundation; either version 3 of the License, or |
| 8 | + * (at your option) any later version. |
| 9 | + * |
| 10 | + * wolfSSH is distributed in the hope that it will be useful, |
| 11 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | + * GNU General Public License for more details. |
| 14 | + * |
| 15 | + * You should have received a copy of the GNU General Public License |
| 16 | + * along with wolfSSH. If not, see <http://www.gnu.org/licenses/>. |
| 17 | + */ |
| 18 | + |
| 19 | +#ifndef FREERTOS_CONFIG_H |
| 20 | +#define FREERTOS_CONFIG_H |
| 21 | + |
| 22 | +/* Scheduler */ |
| 23 | +#define configUSE_PREEMPTION 1 |
| 24 | +#define configUSE_PORT_OPTIMISED_TASK_SELECTION 0 |
| 25 | +#define configUSE_TICKLESS_IDLE 0 |
| 26 | +#define configCPU_CLOCK_HZ ( ( unsigned long ) 60000000 ) |
| 27 | +#define configTICK_RATE_HZ ( ( TickType_t ) 1000 ) |
| 28 | +#define configMAX_PRIORITIES 5 |
| 29 | +#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 8192 ) |
| 30 | +#define configMAX_TASK_NAME_LEN 16 |
| 31 | +#define configUSE_16_BIT_TICKS 0 |
| 32 | +#define configIDLE_SHOULD_YIELD 1 |
| 33 | +#define configUSE_TASK_NOTIFICATIONS 1 |
| 34 | +#define configTASK_NOTIFICATION_ARRAY_ENTRIES 3 |
| 35 | +#define configUSE_MUTEXES 1 |
| 36 | +#define configUSE_RECURSIVE_MUTEXES 1 |
| 37 | +#define configUSE_COUNTING_SEMAPHORES 1 |
| 38 | +#define configQUEUE_REGISTRY_SIZE 10 |
| 39 | +#define configUSE_QUEUE_SETS 0 |
| 40 | +#define configUSE_TIME_SLICING 1 |
| 41 | +#define configUSE_NEWLIB_REENTRANT 0 |
| 42 | +#define configENABLE_BACKWARD_COMPATIBILITY 1 |
| 43 | +#define configNUM_THREAD_LOCAL_STORAGE_POINTERS 5 |
| 44 | +#define configUSE_MINI_LIST_ITEM 1 |
| 45 | + |
| 46 | +/* Memory */ |
| 47 | +#define configSUPPORT_STATIC_ALLOCATION 0 |
| 48 | +#define configSUPPORT_DYNAMIC_ALLOCATION 1 |
| 49 | +#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 256 * 1024 ) ) |
| 50 | +#define configAPPLICATION_ALLOCATED_HEAP 0 |
| 51 | + |
| 52 | +/* Hook functions */ |
| 53 | +#define configUSE_IDLE_HOOK 1 |
| 54 | +#define configUSE_TICK_HOOK 0 |
| 55 | +#define configCHECK_FOR_STACK_OVERFLOW 0 |
| 56 | +#define configUSE_MALLOC_FAILED_HOOK 0 |
| 57 | +#define configUSE_DAEMON_TASK_STARTUP_HOOK 0 |
| 58 | + |
| 59 | +/* Stats */ |
| 60 | +#define configGENERATE_RUN_TIME_STATS 0 |
| 61 | +#define configUSE_TRACE_FACILITY 0 |
| 62 | +#define configUSE_STATS_FORMATTING_FUNCTIONS 0 |
| 63 | + |
| 64 | +/* Co-routines */ |
| 65 | +#define configUSE_CO_ROUTINES 0 |
| 66 | +#define configMAX_CO_ROUTINE_PRIORITIES 1 |
| 67 | + |
| 68 | +/* Software timers */ |
| 69 | +#define configUSE_TIMERS 1 |
| 70 | +#define configTIMER_TASK_PRIORITY ( configMAX_PRIORITIES - 1 ) |
| 71 | +#define configTIMER_QUEUE_LENGTH 10 |
| 72 | +#define configTIMER_TASK_STACK_DEPTH configMINIMAL_STACK_SIZE |
| 73 | + |
| 74 | +/* Logging — used by FreeRTOS-Plus-TCP's FreeRTOS_printf / FreeRTOS_debug_printf */ |
| 75 | +#define configPRINTF( X ) printf X |
| 76 | + |
| 77 | +/* Assert is a no-op; define to assert() or abort() for debugging */ |
| 78 | +#define configASSERT( x ) |
| 79 | + |
| 80 | +/* Optional functions */ |
| 81 | +#define INCLUDE_vTaskPrioritySet 1 |
| 82 | +#define INCLUDE_uxTaskPriorityGet 1 |
| 83 | +#define INCLUDE_vTaskDelete 1 |
| 84 | +#define INCLUDE_vTaskSuspend 1 |
| 85 | +#define INCLUDE_xResumeFromISR 1 |
| 86 | +#define INCLUDE_vTaskDelayUntil 1 |
| 87 | +#define INCLUDE_vTaskDelay 1 |
| 88 | +#define INCLUDE_xTaskGetSchedulerState 1 |
| 89 | +#define INCLUDE_xTaskGetCurrentTaskHandle 1 |
| 90 | +#define INCLUDE_uxTaskGetStackHighWaterMark 0 |
| 91 | +#define INCLUDE_xTaskGetIdleTaskHandle 0 |
| 92 | +#define INCLUDE_eTaskGetState 0 |
| 93 | +#define INCLUDE_xEventGroupSetBitFromISR 1 |
| 94 | +#define INCLUDE_xTimerPendFunctionCall 0 |
| 95 | +#define INCLUDE_xTaskAbortDelay 0 |
| 96 | +#define INCLUDE_xTaskGetHandle 0 |
| 97 | +#define INCLUDE_xTaskResumeFromISR 1 |
| 98 | + |
| 99 | +/* POSIX port */ |
| 100 | +#define configPOSIX_STACK_SIZE ( ( unsigned short ) 65536 ) |
| 101 | + |
| 102 | +#endif /* FREERTOS_CONFIG_H */ |
0 commit comments