|
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 | 1 | #ifndef FREERTOS_CONFIG_H
|
23 | 2 | #define FREERTOS_CONFIG_H
|
24 | 3 |
|
25 |
| -/* Scheduler Related */ |
26 | 4 | #define configUSE_PREEMPTION 1
|
27 | 5 | #define configUSE_PORT_OPTIMISED_TASK_SELECTION 0
|
28 | 6 | #define configUSE_TICKLESS_IDLE 0
|
29 |
| -#define configCPU_CLOCK_HZ ( ( unsigned long ) 60000000 ) |
30 |
| -#define configTICK_RATE_HZ ( ( TickType_t ) 1000 ) |
| 7 | +#define configCPU_CLOCK_HZ 60000000 |
| 8 | +#define configTICK_RATE_HZ 1000 |
31 | 9 | #define configMAX_PRIORITIES 5
|
32 |
| -#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 4096 ) |
| 10 | +#define configMINIMAL_STACK_SIZE 4096 |
33 | 11 | #define configMAX_TASK_NAME_LEN 16
|
34 | 12 | #define configUSE_16_BIT_TICKS 0
|
35 | 13 | #define configIDLE_SHOULD_YIELD 1
|
36 | 14 | #define configUSE_TASK_NOTIFICATIONS 1
|
37 |
| -#define configTASK_NOTIFICATION_ARRAY_ENTRIES 3 |
| 15 | +#define configTASK_NOTIFICATION_ARRAY_ENTRIES 3 |
38 | 16 | #define configUSE_MUTEXES 1
|
39 | 17 | #define configUSE_RECURSIVE_MUTEXES 1
|
40 | 18 | #define configUSE_COUNTING_SEMAPHORES 1
|
|
44 | 22 | #define configUSE_NEWLIB_REENTRANT 0
|
45 | 23 | #define configENABLE_BACKWARD_COMPATIBILITY 0
|
46 | 24 | #define configNUM_THREAD_LOCAL_STORAGE_POINTERS 5
|
47 |
| -#define configUSE_MINI_LIST_ITEM 1 |
| 25 | +#define configSTACK_DEPTH_TYPE uint32_t |
| 26 | +#define configMESSAGE_BUFFER_LENGTH_TYPE size_t |
48 | 27 |
|
49 | 28 | /* 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 |
| 29 | +#define configSUPPORT_STATIC_ALLOCATION 0 |
| 30 | +#define configSUPPORT_DYNAMIC_ALLOCATION 1 |
| 31 | +#define configTOTAL_HEAP_SIZE 102400 |
| 32 | +#define configAPPLICATION_ALLOCATED_HEAP 0 |
| 33 | +#define configSTACK_ALLOCATION_FROM_SEPARATE_HEAP 0 |
54 | 34 |
|
55 | 35 | /* 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 |
| 36 | +#define configUSE_IDLE_HOOK 0 |
| 37 | +#define configUSE_TICK_HOOK 0 |
| 38 | +#define configCHECK_FOR_STACK_OVERFLOW 0 |
| 39 | +#define configUSE_MALLOC_FAILED_HOOK 0 |
| 40 | +#define configUSE_DAEMON_TASK_STARTUP_HOOK 0 |
61 | 41 |
|
62 | 42 | /* 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 |
| 43 | +#define configGENERATE_RUN_TIME_STATS 0 |
| 44 | +#define configUSE_TRACE_FACILITY 0 |
| 45 | +#define configUSE_STATS_FORMATTING_FUNCTIONS 0 |
66 | 46 |
|
67 | 47 | /* Co-routine related definitions. */
|
68 |
| -#define configUSE_CO_ROUTINES 0 |
69 |
| -#define configMAX_CO_ROUTINE_PRIORITIES 1 |
| 48 | +#define configUSE_CO_ROUTINES 0 |
| 49 | +#define configMAX_CO_ROUTINE_PRIORITIES 1 |
70 | 50 |
|
71 | 51 | /* 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 |
| 52 | +#define configUSE_TIMERS 1 |
| 53 | +#define configTIMER_TASK_PRIORITY (configMAX_PRIORITIES - 1) |
| 54 | +#define configTIMER_QUEUE_LENGTH 10 |
| 55 | +#define configTIMER_TASK_STACK_DEPTH configMINIMAL_STACK_SIZE |
76 | 56 |
|
77 | 57 | /* Define to trap errors during development. */
|
78 |
| -#define configASSERT( x ) |
| 58 | +#define configASSERT(x) if((x) == 0) { taskDISABLE_INTERRUPTS(); for(;;); } |
79 | 59 |
|
80 | 60 | /* 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 |
| 61 | +#define INCLUDE_vTaskPrioritySet 1 |
| 62 | +#define INCLUDE_uxTaskPriorityGet 1 |
| 63 | +#define INCLUDE_vTaskDelete 1 |
| 64 | +#define INCLUDE_vTaskSuspend 1 |
| 65 | +#define INCLUDE_xResumeFromISR 1 |
| 66 | +#define INCLUDE_vTaskDelayUntil 1 |
| 67 | +#define INCLUDE_vTaskDelay 1 |
| 68 | +#define INCLUDE_xTaskGetSchedulerState 1 |
| 69 | +#define INCLUDE_xTaskGetCurrentTaskHandle 1 |
| 70 | +#define INCLUDE_uxTaskGetStackHighWaterMark 0 |
| 71 | +#define INCLUDE_xTaskGetIdleTaskHandle 0 |
| 72 | +#define INCLUDE_eTaskGetState 0 |
| 73 | +#define INCLUDE_xEventGroupSetBitFromISR 1 |
| 74 | +#define INCLUDE_xTimerPendFunctionCall 0 |
| 75 | +#define INCLUDE_xTaskAbortDelay 0 |
| 76 | +#define INCLUDE_xTaskGetHandle 0 |
| 77 | +#define INCLUDE_xTaskResumeFromISR 1 |
98 | 78 |
|
99 |
| -/* POSIX Port specific definitions. */ |
100 |
| -#define configPOSIX_STACK_SIZE ( ( unsigned short ) 8192 ) |
| 79 | +/* A header file that defines trace macro can be included here. */ |
101 | 80 |
|
102 | 81 | #endif /* FREERTOS_CONFIG_H */
|
0 commit comments