2 FreeRTOS V7.2.0 - Copyright (C) 2012 Real Time Engineers Ltd.
\r
5 ***************************************************************************
\r
7 * FreeRTOS tutorial books are available in pdf and paperback. *
\r
8 * Complete, revised, and edited pdf reference manuals are also *
\r
11 * Purchasing FreeRTOS documentation will not only help you, by *
\r
12 * ensuring you get running as quickly as possible and with an *
\r
13 * in-depth knowledge of how to use FreeRTOS, it will also help *
\r
14 * the FreeRTOS project to continue with its mission of providing *
\r
15 * professional grade, cross platform, de facto standard solutions *
\r
16 * for microcontrollers - completely free of charge! *
\r
18 * >>> See http://www.FreeRTOS.org/Documentation for details. <<< *
\r
20 * Thank you for using FreeRTOS, and thank you for your support! *
\r
22 ***************************************************************************
\r
25 This file is part of the FreeRTOS distribution.
\r
27 FreeRTOS is free software; you can redistribute it and/or modify it under
\r
28 the terms of the GNU General Public License (version 2) as published by the
\r
29 Free Software Foundation AND MODIFIED BY the FreeRTOS exception.
\r
30 >>>NOTE<<< The modification to the GPL is included to allow you to
\r
31 distribute a combined work that includes FreeRTOS without being obliged to
\r
32 provide the source code for proprietary components outside of the FreeRTOS
\r
33 kernel. FreeRTOS is distributed in the hope that it will be useful, but
\r
34 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
\r
35 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
\r
36 more details. You should have received a copy of the GNU General Public
\r
37 License and the FreeRTOS license exception along with FreeRTOS; if not it
\r
38 can be viewed here: http://www.freertos.org/a00114.html and also obtained
\r
39 by writing to Richard Barry, contact details for whom are available on the
\r
44 ***************************************************************************
\r
46 * Having a problem? Start by reading the FAQ "My application does *
\r
47 * not run, what could be wrong? *
\r
49 * http://www.FreeRTOS.org/FAQHelp.html *
\r
51 ***************************************************************************
\r
54 http://www.FreeRTOS.org - Documentation, training, latest information,
\r
55 license and contact details.
\r
57 http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
\r
58 including FreeRTOS+Trace - an indispensable productivity tool.
\r
60 Real Time Engineers ltd license FreeRTOS to High Integrity Systems, who sell
\r
61 the code with commercial support, indemnification, and middleware, under
\r
62 the OpenRTOS brand: http://www.OpenRTOS.com. High Integrity Systems also
\r
63 provide a safety engineered and independently SIL3 certified version under
\r
64 the SafeRTOS brand: http://www.SafeRTOS.com.
\r
67 #ifndef FREERTOS_CONFIG_H
\r
68 #define FREERTOS_CONFIG_H
\r
70 /*-----------------------------------------------------------
\r
71 * Application specific definitions.
\r
73 * These definitions should be adjusted for your particular hardware and
\r
74 * application requirements.
\r
76 * THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE
\r
77 * FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE.
\r
79 * See http://www.freertos.org/a00110.html.
\r
80 *----------------------------------------------------------*/
\r
82 #define configUSE_PREEMPTION 1
\r
83 #define configUSE_IDLE_HOOK 0
\r
84 #define configUSE_TICK_HOOK 1
\r
85 #define configCPU_CLOCK_HZ ( 50000000UL )
\r
86 #define configTICK_RATE_HZ ( ( portTickType ) 1000 )
\r
87 #define configMINIMAL_STACK_SIZE ( ( unsigned short ) 80 )
\r
88 #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 24000 ) )
\r
89 #define configMAX_TASK_NAME_LEN ( 12 )
\r
90 #define configUSE_TRACE_FACILITY 1
\r
91 #define configUSE_16_BIT_TICKS 0
\r
92 #define configIDLE_SHOULD_YIELD 0
\r
93 #define configUSE_CO_ROUTINES 0
\r
94 #define configUSE_MUTEXES 1
\r
95 #define configCHECK_FOR_STACK_OVERFLOW 2
\r
96 #define configUSE_RECURSIVE_MUTEXES 1
\r
97 #define configQUEUE_REGISTRY_SIZE 10
\r
98 #define configGENERATE_RUN_TIME_STATS 1
\r
99 #define configUSE_MALLOC_FAILED_HOOK 1
\r
101 #define configMAX_PRIORITIES ( 5UL )
\r
102 #define configMAX_CO_ROUTINE_PRIORITIES ( 2 )
\r
104 /* Set the following definitions to 1 to include the API function, or zero
\r
105 to exclude the API function. */
\r
107 #define INCLUDE_vTaskPrioritySet 1
\r
108 #define INCLUDE_uxTaskPriorityGet 1
\r
109 #define INCLUDE_vTaskDelete 1
\r
110 #define INCLUDE_vTaskCleanUpResources 0
\r
111 #define INCLUDE_vTaskSuspend 1
\r
112 #define INCLUDE_vTaskDelayUntil 1
\r
113 #define INCLUDE_vTaskDelay 1
\r
114 #define INCLUDE_uxTaskGetStackHighWaterMark 1
\r
118 #define configKERNEL_INTERRUPT_PRIORITY ( ( unsigned char ) 7 << ( unsigned char ) 5 ) /* Priority 7, or 255 as only the top three bits are implemented. This is the lowest priority. */
\r
119 /* !!!! configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to zero !!!!
\r
120 See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */
\r
121 #define configMAX_SYSCALL_INTERRUPT_PRIORITY ( ( unsigned char ) 5 << ( unsigned char ) 5 ) /* Priority 5, or 160 as only the top three bits are implemented. */
\r
123 extern volatile unsigned long ulHighFrequencyTimerTicks;
\r
124 /* There is already a high frequency timer running - just reset its count back
\r
126 #define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() ( ulHighFrequencyTimerTicks = 0UL )
\r
127 #define portGET_RUN_TIME_COUNTER_VALUE() ulHighFrequencyTimerTicks
\r
129 /* Use Cortex-M3 optimised task selection rather than the generic C code
\r
131 #define configUSE_PORT_OPTIMISED_TASK_SELECTION 1
\r
133 #endif /* FREERTOS_CONFIG_H */
\r