uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
FreeRTOSConfig.h
Go to the documentation of this file.
1 /*
2  FreeRTOS V7.5.2 - Copyright (C) 2013 Real Time Engineers Ltd.
3 
4  VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
5 
6  ***************************************************************************
7  * *
8  * FreeRTOS provides completely free yet professionally developed, *
9  * robust, strictly quality controlled, supported, and cross *
10  * platform software that has become a de facto standard. *
11  * *
12  * Help yourself get started quickly and support the FreeRTOS *
13  * project by purchasing a FreeRTOS tutorial book, reference *
14  * manual, or both from: http://www.FreeRTOS.org/Documentation *
15  * *
16  * Thank you! *
17  * *
18  ***************************************************************************
19 
20  This file is part of the FreeRTOS distribution.
21 
22  FreeRTOS is free software; you can redistribute it and/or modify it under
23  the terms of the GNU General Public License (version 2) as published by the
24  Free Software Foundation >>!AND MODIFIED BY!<< the FreeRTOS exception.
25 
26  >>! NOTE: The modification to the GPL is included to allow you to distribute
27  >>! a combined work that includes FreeRTOS without being obliged to provide
28  >>! the source code for proprietary components outside of the FreeRTOS
29  >>! kernel.
30 
31  FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY
32  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
33  FOR A PARTICULAR PURPOSE. Full license text is available from the following
34  link: http://www.freertos.org/a00114.html
35 
36  1 tab == 4 spaces!
37 
38  ***************************************************************************
39  * *
40  * Having a problem? Start by reading the FAQ "My application does *
41  * not run, what could be wrong?" *
42  * *
43  * http://www.FreeRTOS.org/FAQHelp.html *
44  * *
45  ***************************************************************************
46 
47  http://www.FreeRTOS.org - Documentation, books, training, latest versions,
48  license and Real Time Engineers Ltd. contact details.
49 
50  http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
51  including FreeRTOS+Trace - an indispensable productivity tool, a DOS
52  compatible FAT file system, and our tiny thread aware UDP/IP stack.
53 
54  http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High
55  Integrity Systems to sell under the OpenRTOS brand. Low cost OpenRTOS
56  licenses offer ticketed support, indemnification and middleware.
57 
58  http://www.SafeRTOS.com - High Integrity Systems also provide a safety
59  engineered and independently SIL3 certified version for use in safety and
60  mission critical applications that require provable dependability.
61 
62  1 tab == 4 spaces!
63 */
64 
65 #ifndef FREERTOS_CONFIG_H
66 #define FREERTOS_CONFIG_H
67 
68 /* Library includes. */
69 #include "stm32f10x.h"
70 
71 /*-----------------------------------------------------------
72  * Application specific definitions.
73  *
74  * These definitions should be adjusted for your particular hardware and
75  * application requirements.
76  *
77  * THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE
78  * FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE.
79  *
80  * See http://www.freertos.org/a00110.html.
81  *----------------------------------------------------------*/
82 
83 #define configUSE_PREEMPTION 1
84 #define configUSE_IDLE_HOOK 0
85 #define configUSE_TICK_HOOK 1
86 #define configCPU_CLOCK_HZ ( ( unsigned long ) 72000000 )
87 #define configTICK_RATE_HZ ( ( portTickType ) 1000 )
88 #define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 )
89 #define configMINIMAL_STACK_SIZE ( ( unsigned short ) 128 )
90 #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 17 * 1024 ) )
91 #define configMAX_TASK_NAME_LEN ( 16 )
92 #define configUSE_TRACE_FACILITY 0
93 #define configUSE_16_BIT_TICKS 0
94 #define configIDLE_SHOULD_YIELD 1
95 #define configUSE_MUTEXES 1
96 #define configUSE_RECURSIVE_MUTEXES 1
97 #define configUSE_NEWLIB_REENTRANT 1
98 
99 /* Co-routine definitions. */
100 #define configUSE_CO_ROUTINES 0
101 #define configMAX_CO_ROUTINE_PRIORITIES ( 2 )
102 
103 /* Set the following definitions to 1 to include the API function, or zero
104 to exclude the API function. */
105 
106 #define INCLUDE_vTaskPrioritySet 1
107 #define INCLUDE_uxTaskPriorityGet 1
108 #define INCLUDE_vTaskDelete 1
109 #define INCLUDE_vTaskCleanUpResources 0
110 #define INCLUDE_vTaskSuspend 1
111 #define INCLUDE_vTaskDelayUntil 1
112 #define INCLUDE_vTaskDelay 1
113 
114 /* This is the raw value as per the Cortex-M3 NVIC. Values can be 255
115 (lowest) to 0 (1?) (highest). */
116 #define configKERNEL_INTERRUPT_PRIORITY 255
117 /* !!!! configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to zero !!!!
118 See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */
119 #define configMAX_SYSCALL_INTERRUPT_PRIORITY 191 /* equivalent to 0xb0, or priority 11. */
120 
121 
122 /* This is the value being used as per the ST library which permits 16
123 priority values, 0 to 15. This must correspond to the
124 configKERNEL_INTERRUPT_PRIORITY setting. Here 15 corresponds to the lowest
125 NVIC value of 255. */
126 #define configLIBRARY_KERNEL_INTERRUPT_PRIORITY 15
127 
128 #endif /* FREERTOS_CONFIG_H */