Loading...
Searching...
No Matches
FreeRTOSConfig.h
1
/* USER CODE BEGIN Header */
2
/*
3
* FreeRTOS Kernel V10.3.1
4
* Portion Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
5
* Portion Copyright (C) 2019 StMicroelectronics, Inc. All Rights Reserved.
6
*
7
* Permission is hereby granted, free of charge, to any person obtaining a copy of
8
* this software and associated documentation files (the "Software"), to deal in
9
* the Software without restriction, including without limitation the rights to
10
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
11
* the Software, and to permit persons to whom the Software is furnished to do so,
12
* subject to the following conditions:
13
*
14
* The above copyright notice and this permission notice shall be included in all
15
* copies or substantial portions of the Software.
16
*
17
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
19
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
20
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
21
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
*
24
* http://www.FreeRTOS.org
25
* http://aws.amazon.com/freertos
26
*
27
* 1 tab == 4 spaces!
28
*/
29
/* USER CODE END Header */
30
31
#ifndef FREERTOS_CONFIG_H
32
#define FREERTOS_CONFIG_H
33
34
/*-----------------------------------------------------------
35
* Application specific definitions.
36
*
37
* These definitions should be adjusted for your particular hardware and
38
* application requirements.
39
*
40
* These parameters and more are described within the 'configuration' section of the
41
* FreeRTOS API documentation available on the FreeRTOS.org web site.
42
*
43
* See http://www.freertos.org/a00110.html
44
*----------------------------------------------------------*/
45
46
/* USER CODE BEGIN Includes */
47
/* Section where include file can be added */
48
/* USER CODE END Includes */
49
50
/* Ensure definitions are only used by the compiler, and not by the assembler. */
51
#if defined(__ICCARM__) || defined(__CC_ARM) || defined(__GNUC__)
52
#include <stdint.h>
53
extern
uint32_t SystemCoreClock;
54
#endif
55
#define configENABLE_FPU 1
56
#define configENABLE_MPU 0
57
58
#define configUSE_PREEMPTION 1
59
#define configSUPPORT_STATIC_ALLOCATION 0
60
#define configSUPPORT_DYNAMIC_ALLOCATION 1
61
#define configUSE_IDLE_HOOK 0
62
#define configUSE_TICK_HOOK 0
63
#define configCPU_CLOCK_HZ (SystemCoreClock)
64
#define configTICK_RATE_HZ ((TickType_t)1000)
65
#define configMAX_PRIORITIES (7)
66
#define configMINIMAL_STACK_SIZE ((uint16_t)128)
67
#define configTOTAL_HEAP_SIZE ((size_t)128768)
68
#define configMAX_TASK_NAME_LEN (16)
69
#define configUSE_16_BIT_TICKS 0
70
#define configUSE_MUTEXES 1
71
#define configQUEUE_REGISTRY_SIZE 8
72
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 1
73
#define configCHECK_FOR_STACK_OVERFLOW 0
74
#define configUSE_TIMERS 1
75
#define configTIMER_TASK_PRIORITY (configMAX_PRIORITIES - 1)
76
#define configTIMER_QUEUE_LENGTH 20
77
#define configTIMER_TASK_STACK_DEPTH 128
78
79
#ifdef TRACE
80
#define configUSE_TRACE_FACILITY 1
81
#endif
82
83
/* USER CODE BEGIN MESSAGE_BUFFER_LENGTH_TYPE */
84
/* Defaults to size_t for backward compatibility, but can be changed
85
if lengths will always be less than the number of bytes in a size_t. */
86
#define configMESSAGE_BUFFER_LENGTH_TYPE size_t
87
/* USER CODE END MESSAGE_BUFFER_LENGTH_TYPE */
88
89
/* Co-routine definitions. */
90
#define configUSE_CO_ROUTINES 0
91
#define configMAX_CO_ROUTINE_PRIORITIES (2)
92
93
/* Set the following definitions to 1 to include the API function, or zero
94
to exclude the API function. */
95
#define INCLUDE_vTaskPrioritySet 1
96
#define INCLUDE_uxTaskPriorityGet 1
97
#define INCLUDE_vTaskDelete 1
98
#define INCLUDE_vTaskCleanUpResources 0
99
#define INCLUDE_vTaskSuspend 1
100
#define INCLUDE_vTaskDelayUntil 1
101
#define INCLUDE_vTaskDelay 1
102
#define INCLUDE_xTaskAbortDelay 1
103
#define INCLUDE_xTaskGetSchedulerState 1
104
#define INCLUDE_uxTaskGetStackHighWaterMark 0
105
#define INCLUDE_xTimerPendFunctionCall 1
106
#define INCLUDE_xEventGroupSetBitFromISR 1
107
#define INCLUDE_xTaskGetHandle 1
108
109
/* Cortex-M specific definitions. */
110
#ifdef __NVIC_PRIO_BITS
111
/* __BVIC_PRIO_BITS will be specified when CMSIS is being used. */
112
#define configPRIO_BITS __NVIC_PRIO_BITS
113
#else
114
#define configPRIO_BITS 4
115
#endif
116
117
/* The lowest interrupt priority that can be used in a call to a "set priority"
118
function. */
119
#define configLIBRARY_LOWEST_INTERRUPT_PRIORITY 15
120
121
/* The highest interrupt priority that can be used by any interrupt service
122
routine that makes calls to interrupt safe FreeRTOS API functions. DO NOT CALL
123
INTERRUPT SAFE FREERTOS API FUNCTIONS FROM ANY INTERRUPT THAT HAS A HIGHER
124
PRIORITY THAN THIS! (higher priorities are lower numeric values. */
125
#define configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY 5
126
127
/* Interrupt priorities used by the kernel port layer itself. These are generic
128
to all Cortex-M ports, and do not rely on any particular library functions. */
129
#define configKERNEL_INTERRUPT_PRIORITY (configLIBRARY_LOWEST_INTERRUPT_PRIORITY << (8 - configPRIO_BITS))
130
/* !!!! configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to zero !!!!
131
See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */
132
#define configMAX_SYSCALL_INTERRUPT_PRIORITY (configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY << (8 - configPRIO_BITS))
133
134
/* Normal assert() semantics without relying on the provision of an assert.h
135
header file. */
136
/* USER CODE BEGIN 1 */
137
#define configASSERT(x) \
138
if ((x) == 0) { \
139
taskDISABLE_INTERRUPTS(); \
140
for (;;); \
141
}
142
/* USER CODE END 1 */
143
144
/* Definitions that map the FreeRTOS port interrupt handlers to their CMSIS
145
standard names. */
146
#define vPortSVCHandler SVC_Handler
147
#define xPortPendSVHandler PendSV_Handler
148
149
/* IMPORTANT: This define is commented when used with STM32Cube firmware, when the timebase source is SysTick,
150
to prevent overwriting SysTick_Handler defined within STM32Cube HAL */
151
152
#define xPortSysTickHandler SysTick_Handler
153
154
/* Section where parameter definitions can be added (for instance, to override default ones in FreeRTOS.h) */
155
#define traceISR_ENTER() ;
156
#define traceISR_EXIT() ;
157
#define traceISR_EXIT_TO_SCHEDULER() ;
158
159
/* Integrates the Tracealyzer recorder with FreeRTOS */
160
#if (configUSE_TRACE_FACILITY == 1)
161
#include "trcRecorder.h"
162
#endif
163
164
/* Note: Since FreeRTOSConfig.h is also included from some FreeRTOS assembly files,
165
depending on your IDE you may need to use a conditional include, like in the examples below.*/
166
167
/* IAR Embedded Workbench */
168
#ifndef __IASMARM__
169
#if (configUSE_TRACE_FACILITY == 1)
170
#include "trcRecorder.h"
171
#endif
172
#endif
173
/* Microchip MPLAB X IDE */
174
#ifndef __LANGUAGE_ASSEMBLY
175
#if (configUSE_TRACE_FACILITY == 1)
176
#include "trcRecorder.h"
177
#endif
178
#endif
179
180
#endif
/* FREERTOS_CONFIG_H */
Australis-Avionics
Core
Inc
rtos
FreeRTOSConfig.h
Generated by
1.13.2