|
| 1 | +/* FreeRTOSConfig.h |
| 2 | + * |
| 3 | + * Copyright (C) 2006-2024 wolfSSL Inc. |
| 4 | + * |
| 5 | + * This file is part of wolfSSL. |
| 6 | + * |
| 7 | + * wolfSSL is free software; you can redistribute it and/or modify |
| 8 | + * it under the terms of the GNU General Public License as published by |
| 9 | + * the Free Software Foundation; either version 2 of the License, or |
| 10 | + * (at your option) any later version. |
| 11 | + * |
| 12 | + * wolfSSL is distributed in the hope that it will be useful, |
| 13 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | + * GNU General Public License for more details. |
| 16 | + * |
| 17 | + * You should have received a copy of the GNU General Public License |
| 18 | + * along with this program; if not, write to the Free Software |
| 19 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA |
| 20 | + */ |
| 21 | + |
| 22 | +#ifndef FREERTOS_CONFIG_H |
| 23 | +#define FREERTOS_CONFIG_H |
| 24 | + |
| 25 | +/* Scheduler Related */ |
| 26 | +#define configUSE_PREEMPTION 1 |
| 27 | +#define configUSE_PORT_OPTIMISED_TASK_SELECTION 0 |
| 28 | +#define configUSE_TICKLESS_IDLE 0 |
| 29 | +#define configCPU_CLOCK_HZ ( ( unsigned long ) 60000000 ) |
| 30 | +#define configTICK_RATE_HZ ( ( TickType_t ) 1000 ) |
| 31 | +#define configMAX_PRIORITIES 5 |
| 32 | +#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 4096 ) |
| 33 | +#define configMAX_TASK_NAME_LEN 16 |
| 34 | +#define configUSE_16_BIT_TICKS 0 |
| 35 | +#define configIDLE_SHOULD_YIELD 1 |
| 36 | +#define configUSE_TASK_NOTIFICATIONS 1 |
| 37 | +#define configTASK_NOTIFICATION_ARRAY_ENTRIES 3 |
| 38 | +#define configUSE_MUTEXES 1 |
| 39 | +#define configUSE_RECURSIVE_MUTEXES 1 |
| 40 | +#define configUSE_COUNTING_SEMAPHORES 1 |
| 41 | +#define configQUEUE_REGISTRY_SIZE 10 |
| 42 | +#define configUSE_QUEUE_SETS 0 |
| 43 | +#define configUSE_TIME_SLICING 1 |
| 44 | +#define configUSE_NEWLIB_REENTRANT 0 |
| 45 | +#define configENABLE_BACKWARD_COMPATIBILITY 0 |
| 46 | +#define configNUM_THREAD_LOCAL_STORAGE_POINTERS 5 |
| 47 | +#define configUSE_MINI_LIST_ITEM 1 |
| 48 | + |
| 49 | +/* Memory allocation related definitions. */ |
| 50 | +#define configSUPPORT_STATIC_ALLOCATION 0 |
| 51 | +#define configSUPPORT_DYNAMIC_ALLOCATION 1 |
| 52 | +#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 60 * 1024 ) ) |
| 53 | +#define configAPPLICATION_ALLOCATED_HEAP 0 |
| 54 | + |
| 55 | +/* Hook function related definitions. */ |
| 56 | +#define configUSE_IDLE_HOOK 0 |
| 57 | +#define configUSE_TICK_HOOK 0 |
| 58 | +#define configCHECK_FOR_STACK_OVERFLOW 0 |
| 59 | +#define configUSE_MALLOC_FAILED_HOOK 0 |
| 60 | +#define configUSE_DAEMON_TASK_STARTUP_HOOK 0 |
| 61 | + |
| 62 | +/* Run time and task stats gathering related definitions. */ |
| 63 | +#define configGENERATE_RUN_TIME_STATS 0 |
| 64 | +#define configUSE_TRACE_FACILITY 0 |
| 65 | +#define configUSE_STATS_FORMATTING_FUNCTIONS 0 |
| 66 | + |
| 67 | +/* Co-routine related definitions. */ |
| 68 | +#define configUSE_CO_ROUTINES 0 |
| 69 | +#define configMAX_CO_ROUTINE_PRIORITIES 1 |
| 70 | + |
| 71 | +/* Software timer related definitions. */ |
| 72 | +#define configUSE_TIMERS 1 |
| 73 | +#define configTIMER_TASK_PRIORITY ( configMAX_PRIORITIES - 1 ) |
| 74 | +#define configTIMER_QUEUE_LENGTH 10 |
| 75 | +#define configTIMER_TASK_STACK_DEPTH configMINIMAL_STACK_SIZE |
| 76 | + |
| 77 | +/* Define to trap errors during development. */ |
| 78 | +#define configASSERT( x ) |
| 79 | + |
| 80 | +/* Optional functions - most linkers will remove unused functions anyway. */ |
| 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 specific definitions. */ |
| 100 | +#define configPOSIX_STACK_SIZE ( ( unsigned short ) 8192 ) |
| 101 | + |
| 102 | +#endif /* FREERTOS_CONFIG_H */ |
0 commit comments