23
23
* http://aws.amazon.com/freertos
24
24
*
25
25
* 1 tab == 4 spaces!
26
- */
27
-
26
+ */
28
27
29
- #ifndef FREERTOS_CONFIG_H
30
- #define FREERTOS_CONFIG_H
28
+ #ifndef FREERTOS_CONFIG_DEFAULT_H
29
+ #define FREERTOS_CONFIG_DEFAULT_H
31
30
32
31
/*-----------------------------------------------------------
33
32
* Application specific definitions.
@@ -140,28 +139,38 @@ extern char _Min_Stack_Size; /* Defined in the linker script */
140
139
*/
141
140
#define configUSE_NEWLIB_REENTRANT 1
142
141
142
+ /* Set configENABLE_MPU to 1 to enable MPU support and 0 to disable it. This is
143
+ currently used in ARMv8M ports. */
144
+ #define configENABLE_MPU 0
145
+ /* Set configENABLE_FPU to 1 to enable FPU support and 0 to disable it. This is
146
+ currently used in ARMv8M ports. */
147
+ #define configENABLE_FPU 1
148
+ /* Set configENABLE_TRUSTZONE to 1 enable TrustZone support and 0 to disable it.
149
+ This is currently used in ARMv8M ports. */
150
+ #define configENABLE_TRUSTZONE 0
151
+
143
152
/* Co-routine definitions. */
144
- #define configUSE_CO_ROUTINES 0
145
- #define configMAX_CO_ROUTINE_PRIORITIES (2)
153
+ #define configUSE_CO_ROUTINES 0
154
+ #define configMAX_CO_ROUTINE_PRIORITIES (2)
146
155
147
156
/* Software timer definitions. */
148
- #define configUSE_TIMERS 1
149
- #define configTIMER_TASK_PRIORITY (2)
150
- #define configTIMER_QUEUE_LENGTH 10
151
- #define configTIMER_TASK_STACK_DEPTH (configMINIMAL_STACK_SIZE * 2)
157
+ #define configUSE_TIMERS 1
158
+ #define configTIMER_TASK_PRIORITY (2)
159
+ #define configTIMER_QUEUE_LENGTH 10
160
+ #define configTIMER_TASK_STACK_DEPTH (configMINIMAL_STACK_SIZE * 2)
152
161
153
162
/* Set the following definitions to 1 to include the API function, or zero
154
163
to exclude the API function. */
155
- #define INCLUDE_vTaskPrioritySet 1
156
- #define INCLUDE_uxTaskPriorityGet 1
157
- #define INCLUDE_vTaskDelete 1
158
- #define INCLUDE_vTaskCleanUpResources 1
159
- #define INCLUDE_vTaskSuspend 1
160
- #define INCLUDE_vTaskDelayUntil 1
161
- #define INCLUDE_vTaskDelay 1
162
- #define INCLUDE_xTaskGetSchedulerState 1
164
+ #define INCLUDE_vTaskPrioritySet 1
165
+ #define INCLUDE_uxTaskPriorityGet 1
166
+ #define INCLUDE_vTaskDelete 1
167
+ #define INCLUDE_vTaskCleanUpResources 1
168
+ #define INCLUDE_vTaskSuspend 1
169
+ #define INCLUDE_vTaskDelayUntil 1
170
+ #define INCLUDE_vTaskDelay 1
171
+ #define INCLUDE_xTaskGetSchedulerState 1
163
172
#define INCLUDE_uxTaskGetStackHighWaterMark 1
164
- #define INCLUDE_xTaskGetIdleTaskHandle 1
173
+ #define INCLUDE_xTaskGetIdleTaskHandle 1
165
174
166
175
#if defined(configUSE_CMSIS_RTOS_V2 ) && (configUSE_CMSIS_RTOS_V2 == 1 )
167
176
#define INCLUDE_xSemaphoreGetMutexHolder 1
@@ -173,9 +182,9 @@ to exclude the API function. */
173
182
/* Cortex-M specific definitions. */
174
183
#ifdef __NVIC_PRIO_BITS
175
184
/* __BVIC_PRIO_BITS will be specified when CMSIS is being used. */
176
- #define configPRIO_BITS __NVIC_PRIO_BITS
185
+ #define configPRIO_BITS __NVIC_PRIO_BITS
177
186
#else
178
- #define configPRIO_BITS 4 /* 15 priority levels */
187
+ #define configPRIO_BITS 4 /* 15 priority levels */
179
188
#endif
180
189
181
190
/* The lowest interrupt priority that can be used in a call to a "set priority"
@@ -206,8 +215,7 @@ header file. */
206
215
207
216
/*
208
217
* IMPORTANT:
209
- * osSystickHandler is called in the core SysTick_Handler definition
210
- * and is defined as weak.
218
+ * osSystickHandler is called in the core SysTick_Handler definition and is defined as weak.
211
219
* For CMSIS-RTOSv2: osSystickHandler is defined as xPortSysTickHandler
212
220
* For CMSIS-RTOS: osSystickHandler is defined by the cmsis_os and xPortSysTickHandler
213
221
* must not be defined to prevent overwriting SysTick_Handler
@@ -217,5 +225,5 @@ header file. */
217
225
#define xPortSysTickHandler osSystickHandler
218
226
#endif
219
227
220
- #endif /* FREERTOS_CONFIG_H */
228
+ #endif /* FREERTOS_CONFIG_DEFAULT_H */
221
229
0 commit comments