2323 * http://aws.amazon.com/freertos
2424 *
2525 * 1 tab == 4 spaces!
26- */
27-
26+ */
2827
29- #ifndef FREERTOS_CONFIG_H
30- #define FREERTOS_CONFIG_H
28+ #ifndef FREERTOS_CONFIG_DEFAULT_H
29+ #define FREERTOS_CONFIG_DEFAULT_H
3130
3231/*-----------------------------------------------------------
3332 * Application specific definitions.
@@ -140,28 +139,38 @@ extern char _Min_Stack_Size; /* Defined in the linker script */
140139 */
141140#define configUSE_NEWLIB_REENTRANT 1
142141
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+
143152/* 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)
146155
147156/* 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)
152161
153162/* Set the following definitions to 1 to include the API function, or zero
154163to 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
163172#define INCLUDE_uxTaskGetStackHighWaterMark 1
164- #define INCLUDE_xTaskGetIdleTaskHandle 1
173+ #define INCLUDE_xTaskGetIdleTaskHandle 1
165174
166175#if defined(configUSE_CMSIS_RTOS_V2 ) && (configUSE_CMSIS_RTOS_V2 == 1 )
167176#define INCLUDE_xSemaphoreGetMutexHolder 1
@@ -173,9 +182,9 @@ to exclude the API function. */
173182/* Cortex-M specific definitions. */
174183#ifdef __NVIC_PRIO_BITS
175184 /* __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
177186#else
178- #define configPRIO_BITS 4 /* 15 priority levels */
187+ #define configPRIO_BITS 4 /* 15 priority levels */
179188#endif
180189
181190/* The lowest interrupt priority that can be used in a call to a "set priority"
@@ -206,8 +215,7 @@ header file. */
206215
207216/*
208217 * 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.
211219 * For CMSIS-RTOSv2: osSystickHandler is defined as xPortSysTickHandler
212220 * For CMSIS-RTOS: osSystickHandler is defined by the cmsis_os and xPortSysTickHandler
213221 * must not be defined to prevent overwriting SysTick_Handler
@@ -217,5 +225,5 @@ header file. */
217225#define xPortSysTickHandler osSystickHandler
218226#endif
219227
220- #endif /* FREERTOS_CONFIG_H */
228+ #endif /* FREERTOS_CONFIG_DEFAULT_H */
221229
0 commit comments