Prusa MINI Firmware overview
Main Page
Modules
Classes
Files
File List
File Members
FreeRTOSConfig.h
Go to the documentation of this file.
1
/* USER CODE BEGIN Header */
2
/*
3
FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.
4
All rights reserved
5
6
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
7
8
This file is part of the FreeRTOS distribution.
9
10
FreeRTOS is free software; you can redistribute it and/or modify it under
11
the terms of the GNU General Public License (version 2) as published by the
12
Free Software Foundation >>!AND MODIFIED BY!<< the FreeRTOS exception.
13
14
***************************************************************************
15
>>! NOTE: The modification to the GPL is included to allow you to !<<
16
>>! distribute a combined work that includes FreeRTOS without being !<<
17
>>! obliged to provide the source code for proprietary components !<<
18
>>! outside of the FreeRTOS kernel. !<<
19
***************************************************************************
20
21
FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY
22
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
23
FOR A PARTICULAR PURPOSE. Full license text is available on the following
24
link: http://www.freertos.org/a00114.html
25
26
***************************************************************************
27
* *
28
* FreeRTOS provides completely free yet professionally developed, *
29
* robust, strictly quality controlled, supported, and cross *
30
* platform software that is more than just the market leader, it *
31
* is the industry's de facto standard. *
32
* *
33
* Help yourself get started quickly while simultaneously helping *
34
* to support the FreeRTOS project by purchasing a FreeRTOS *
35
* tutorial book, reference manual, or both: *
36
* http://www.FreeRTOS.org/Documentation *
37
* *
38
***************************************************************************
39
40
http://www.FreeRTOS.org/FAQHelp.html - Having a problem? Start by reading
41
the FAQ page "My application does not run, what could be wrong?". Have you
42
defined configASSERT()?
43
44
http://www.FreeRTOS.org/support - In return for receiving this top quality
45
embedded software for free we request you assist our global community by
46
participating in the support forum.
47
48
http://www.FreeRTOS.org/training - Investing in training allows your team to
49
be as productive as possible as early as possible. Now you can receive
50
FreeRTOS training directly from Richard Barry, CEO of Real Time Engineers
51
Ltd, and the world's leading authority on the world's leading RTOS.
52
53
http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
54
including FreeRTOS+Trace - an indispensable productivity tool, a DOS
55
compatible FAT file system, and our tiny thread aware UDP/IP stack.
56
57
http://www.FreeRTOS.org/labs - Where new FreeRTOS products go to incubate.
58
Come and try FreeRTOS+TCP, our new open source TCP/IP stack for FreeRTOS.
59
60
http://www.OpenRTOS.com - Real Time Engineers ltd. license FreeRTOS to High
61
Integrity Systems ltd. to sell under the OpenRTOS brand. Low cost OpenRTOS
62
licenses offer ticketed support, indemnification and commercial middleware.
63
64
http://www.SafeRTOS.com - High Integrity Systems also provide a safety
65
engineered and independently SIL3 certified version for use in safety and
66
mission critical applications that require provable dependability.
67
68
1 tab == 4 spaces!
69
*/
70
/* USER CODE END Header */
71
72
#ifndef FREERTOS_CONFIG_H
73
#define FREERTOS_CONFIG_H
74
75
/*-----------------------------------------------------------
76
* Application specific definitions.
77
*
78
* These definitions should be adjusted for your particular hardware and
79
* application requirements.
80
*
81
* THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE
82
* FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE.
83
*
84
* See http://www.freertos.org/a00110.html.
85
*----------------------------------------------------------*/
86
87
/* USER CODE BEGIN Includes */
88
/* Section where include file can be added */
89
/* USER CODE END Includes */
90
91
/* Ensure stdint is only used by the compiler, and not the assembler. */
92
#if defined(__ICCARM__) || defined(__CC_ARM) || defined(__GNUC__)
93
#include <stdint.h>
94
extern
uint32_t
SystemCoreClock
;
95
#endif
96
97
#define configUSE_PREEMPTION 1
98
#define configSUPPORT_STATIC_ALLOCATION 0
99
#define configSUPPORT_DYNAMIC_ALLOCATION 1
100
#define configUSE_IDLE_HOOK 0
101
#define configUSE_TICK_HOOK 0
102
#define configCPU_CLOCK_HZ (SystemCoreClock)
103
#define configTICK_RATE_HZ ((TickType_t)1000)
104
#define configMAX_PRIORITIES (7)
105
#define configMINIMAL_STACK_SIZE ((uint16_t)128)
106
#define configTOTAL_HEAP_SIZE ((size_t)81920)
107
#define configMAX_TASK_NAME_LEN (16)
108
#define configUSE_16_BIT_TICKS 0
109
#define configUSE_MUTEXES 1
110
#define configQUEUE_REGISTRY_SIZE 8
111
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 1
112
113
/* Co-routine definitions. */
114
#define configUSE_CO_ROUTINES 0
115
#define configMAX_CO_ROUTINE_PRIORITIES (2)
116
117
/* Set the following definitions to 1 to include the API function, or zero
118
to exclude the API function. */
119
#define INCLUDE_vTaskPrioritySet 1
120
#define INCLUDE_uxTaskPriorityGet 1
121
#define INCLUDE_vTaskDelete 1
122
#define INCLUDE_vTaskCleanUpResources 0
123
#define INCLUDE_vTaskSuspend 1
124
#define INCLUDE_vTaskDelayUntil 0
125
#define INCLUDE_vTaskDelay 1
126
#define INCLUDE_xTaskGetSchedulerState 1
127
128
/* Cortex-M specific definitions. */
129
#ifdef __NVIC_PRIO_BITS
130
/* __BVIC_PRIO_BITS will be specified when CMSIS is being used. */
131
#define configPRIO_BITS __NVIC_PRIO_BITS
132
#else
133
#define configPRIO_BITS 4
134
#endif
135
136
/* The lowest interrupt priority that can be used in a call to a "set priority"
137
function. */
138
#define configLIBRARY_LOWEST_INTERRUPT_PRIORITY 15
139
140
/* The highest interrupt priority that can be used by any interrupt service
141
routine that makes calls to interrupt safe FreeRTOS API functions. DO NOT CALL
142
INTERRUPT SAFE FREERTOS API FUNCTIONS FROM ANY INTERRUPT THAT HAS A HIGHER
143
PRIORITY THAN THIS! (higher priorities are lower numeric values. */
144
#define configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY 5
145
146
/* Interrupt priorities used by the kernel port layer itself. These are generic
147
to all Cortex-M ports, and do not rely on any particular library functions. */
148
#define configKERNEL_INTERRUPT_PRIORITY (configLIBRARY_LOWEST_INTERRUPT_PRIORITY << (8 - configPRIO_BITS))
149
/* !!!! configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to zero !!!!
150
See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */
151
#define configMAX_SYSCALL_INTERRUPT_PRIORITY (configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY << (8 - configPRIO_BITS))
152
153
/* Normal assert() semantics without relying on the provision of an assert.h
154
header file. */
155
/* USER CODE BEGIN 1 */
156
#define configASSERT(x) \
157
if ((x) == 0) { \
158
taskDISABLE_INTERRUPTS(); \
159
for (;;) \
160
; \
161
}
162
/* USER CODE END 1 */
163
164
/* Definitions that map the FreeRTOS port interrupt handlers to their CMSIS
165
standard names. */
166
#define vPortSVCHandler SVC_Handler
167
#define xPortPendSVHandler PendSV_Handler
168
169
/* IMPORTANT: This define is commented when used with STM32Cube firmware, when timebase is systick,
170
to prevent overwriting SysTick_Handler defined within STM32Cube HAL */
171
#define xPortSysTickHandler SysTick_Handler
172
173
/* USER CODE BEGIN Defines */
174
/* Section where parameter definitions can be added (for instance, to override default ones in FreeRTOS.h) */
175
/* USER CODE END Defines */
176
177
#endif
/* FREERTOS_CONFIG_H */
SystemCoreClock
#define SystemCoreClock
Definition:
HAL.h:27
Prusa-Firmware-Buddy-Private1
src
guiapi
include
FreeRTOSConfig.h
Generated by
1.8.16