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
68 #ifndef FREERTOS_CONFIG_H
\r
69 #define FREERTOS_CONFIG_H
\r
72 * The following #error directive is to remind users that a batch file must be
\r
73 * executed prior to this project being built. Once it has been executed
\r
74 * remove the #error line below.
\r
76 #error Ensure CreateProjectDirectoryStructure.bat has been executed before building. See comment immediately above.
\r
78 /*-----------------------------------------------------------
\r
79 * Application specific definitions.
\r
81 * These definitions should be adjusted for your particular hardware and
\r
82 * application requirements.
\r
84 * THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE
\r
85 * FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE.
\r
87 * See http://www.freertos.org/a00110.html.
\r
88 *----------------------------------------------------------*/
\r
91 extern uint32_t SystemCoreClock;
\r
93 #define configUSE_PREEMPTION 1
\r
94 #define configUSE_IDLE_HOOK 0
\r
95 #define configUSE_TICK_HOOK 0
\r
96 #define configCPU_CLOCK_HZ ( SystemCoreClock )
\r
97 #define configTICK_RATE_HZ ( ( portTickType ) 1000 )
\r
98 #define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 )
\r
99 #define configMINIMAL_STACK_SIZE ( ( unsigned short ) 130 )
\r
100 #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 40960 ) )
\r
101 #define configMAX_TASK_NAME_LEN ( 10 )
\r
102 #define configUSE_TRACE_FACILITY 0
\r
103 #define configUSE_16_BIT_TICKS 0
\r
104 #define configIDLE_SHOULD_YIELD 1
\r
105 #define configUSE_MUTEXES 1
\r
106 #define configQUEUE_REGISTRY_SIZE 0
\r
107 #define configCHECK_FOR_STACK_OVERFLOW 2
\r
108 #define configUSE_RECURSIVE_MUTEXES 1
\r
109 #define configUSE_MALLOC_FAILED_HOOK 1
\r
110 #define configUSE_APPLICATION_TASK_TAG 0
\r
111 #define configUSE_COUNTING_SEMAPHORES 1
\r
112 #define configGENERATE_RUN_TIME_STATS 0
\r
114 /* Co-routine definitions. */
\r
115 #define configUSE_CO_ROUTINES 0
\r
116 #define configMAX_CO_ROUTINE_PRIORITIES ( 2 )
\r
118 /* Software timer definitions. */
\r
119 #define configUSE_TIMERS 1
\r
120 #define configTIMER_TASK_PRIORITY ( 2 )
\r
121 #define configTIMER_QUEUE_LENGTH 5
\r
122 #define configTIMER_TASK_STACK_DEPTH ( configMINIMAL_STACK_SIZE * 2 )
\r
124 /* Set the following definitions to 1 to include the API function, or zero
\r
125 to exclude the API function. */
\r
126 #define INCLUDE_vTaskPrioritySet 1
\r
127 #define INCLUDE_uxTaskPriorityGet 1
\r
128 #define INCLUDE_vTaskDelete 1
\r
129 #define INCLUDE_vTaskCleanUpResources 1
\r
130 #define INCLUDE_vTaskSuspend 1
\r
131 #define INCLUDE_vTaskDelayUntil 1
\r
132 #define INCLUDE_vTaskDelay 1
\r
134 /* Cortex-M specific definitions. */
\r
135 #ifdef __NVIC_PRIO_BITS
\r
136 /* __BVIC_PRIO_BITS will be specified when CMSIS is being used. */
\r
137 #define configPRIO_BITS __NVIC_PRIO_BITS
\r
139 #define configPRIO_BITS 4 /* 15 priority levels */
\r
142 /* The lowest interrupt priority that can be used in a call to a "set priority"
\r
144 #define configLIBRARY_LOWEST_INTERRUPT_PRIORITY 0x0f
\r
146 /* The highest interrupt priority that can be used by any interrupt service
\r
147 routine that makes calls to interrupt safe FreeRTOS API functions. DO NOT CALL
\r
148 INTERRUPT SAFE FREERTOS API FUNCTIONS FROM ANY INTERRUPT THAT HAS A HIGHER
\r
149 PRIORITY THAN THIS! (higher priorities are lower numeric values. */
\r
150 #define configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY 10
\r
152 /* Interrupt priorities used by the kernel port layer itself. These are generic
\r
153 to all Cortex-M ports, and do not rely on any particular library functions. */
\r
154 #define configKERNEL_INTERRUPT_PRIORITY ( configLIBRARY_LOWEST_INTERRUPT_PRIORITY << (8 - configPRIO_BITS) )
\r
155 /* !!!! configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to zero !!!!
\r
156 See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */
\r
157 #define configMAX_SYSCALL_INTERRUPT_PRIORITY ( configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY << (8 - configPRIO_BITS) )
\r
159 /* Normal assert() semantics without relying on the provision of an assert.h
\r
161 #define configASSERT( x ) if( ( x ) == 0 ) { taskDISABLE_INTERRUPTS(); for( ;; ); }
\r
163 /* Definitions that map the FreeRTOS port interrupt handlers to their CMSIS
\r
165 #define vPortSVCHandler SVC_Handler
\r
166 #define xPortPendSVHandler PendSV_Handler
\r
167 #define xPortSysTickHandler SysTick_Handler
\r
169 #endif /* FREERTOS_CONFIG_H */
\r