]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/CORTEX_A5_SAMA5D4x_EK_IAR/FreeRTOSConfig.h
Update version numbers in preparation for V8.2.0 release candidate 1.
[freertos] / FreeRTOS / Demo / CORTEX_A5_SAMA5D4x_EK_IAR / FreeRTOSConfig.h
1 /*\r
2     FreeRTOS V8.2.0rc1 - Copyright (C) 2014 Real Time Engineers Ltd.\r
3     All rights reserved\r
4 \r
5     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
6 \r
7     This file is part of the FreeRTOS distribution.\r
8 \r
9     FreeRTOS is free software; you can redistribute it and/or modify it under\r
10     the terms of the GNU General Public License (version 2) as published by the\r
11     Free Software Foundation >>!AND MODIFIED BY!<< the FreeRTOS exception.\r
12 \r
13     >>!   NOTE: The modification to the GPL is included to allow you to     !<<\r
14     >>!   distribute a combined work that includes FreeRTOS without being   !<<\r
15     >>!   obliged to provide the source code for proprietary components     !<<\r
16     >>!   outside of the FreeRTOS kernel.                                   !<<\r
17 \r
18     FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY\r
19     WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS\r
20     FOR A PARTICULAR PURPOSE.  Full license text is available on the following\r
21     link: http://www.freertos.org/a00114.html\r
22 \r
23     1 tab == 4 spaces!\r
24 \r
25     ***************************************************************************\r
26      *                                                                       *\r
27      *    Having a problem?  Start by reading the FAQ "My application does   *\r
28      *    not run, what could be wrong?".  Have you defined configASSERT()?  *\r
29      *                                                                       *\r
30      *    http://www.FreeRTOS.org/FAQHelp.html                               *\r
31      *                                                                       *\r
32     ***************************************************************************\r
33 \r
34     ***************************************************************************\r
35      *                                                                       *\r
36      *    FreeRTOS provides completely free yet professionally developed,    *\r
37      *    robust, strictly quality controlled, supported, and cross          *\r
38      *    platform software that is more than just the market leader, it     *\r
39      *    is the industry's de facto standard.                               *\r
40      *                                                                       *\r
41      *    Help yourself get started quickly while simultaneously helping     *\r
42      *    to support the FreeRTOS project by purchasing a FreeRTOS           *\r
43      *    tutorial book, reference manual, or both:                          *\r
44      *    http://www.FreeRTOS.org/Documentation                              *\r
45      *                                                                       *\r
46     ***************************************************************************\r
47 \r
48     ***************************************************************************\r
49      *                                                                       *\r
50      *   Investing in training allows your team to be as productive as       *\r
51      *   possible as early as possible, lowering your overall development    *\r
52      *   cost, and enabling you to bring a more robust product to market     *\r
53      *   earlier than would otherwise be possible.  Richard Barry is both    *\r
54      *   the architect and key author of FreeRTOS, and so also the world's   *\r
55      *   leading authority on what is the world's most popular real time     *\r
56      *   kernel for deeply embedded MCU designs.  Obtaining your training    *\r
57      *   from Richard ensures your team will gain directly from his in-depth *\r
58      *   product knowledge and years of usage experience.  Contact Real Time *\r
59      *   Engineers Ltd to enquire about the FreeRTOS Masterclass, presented  *\r
60      *   by Richard Barry:  http://www.FreeRTOS.org/contact\r
61      *                                                                       *\r
62     ***************************************************************************\r
63 \r
64     ***************************************************************************\r
65      *                                                                       *\r
66      *    You are receiving this top quality software for free.  Please play *\r
67      *    fair and reciprocate by reporting any suspected issues and         *\r
68      *    participating in the community forum:                              *\r
69      *    http://www.FreeRTOS.org/support                                    *\r
70      *                                                                       *\r
71      *    Thank you!                                                         *\r
72      *                                                                       *\r
73     ***************************************************************************\r
74 \r
75     http://www.FreeRTOS.org - Documentation, books, training, latest versions,\r
76     license and Real Time Engineers Ltd. contact details.\r
77 \r
78     http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,\r
79     including FreeRTOS+Trace - an indispensable productivity tool, a DOS\r
80     compatible FAT file system, and our tiny thread aware UDP/IP stack.\r
81 \r
82     http://www.FreeRTOS.org/labs - Where new FreeRTOS products go to incubate.\r
83     Come and try FreeRTOS+TCP, our new open source TCP/IP stack for FreeRTOS.\r
84 \r
85     http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High\r
86     Integrity Systems ltd. to sell under the OpenRTOS brand.  Low cost OpenRTOS\r
87     licenses offer ticketed support, indemnification and commercial middleware.\r
88 \r
89     http://www.SafeRTOS.com - High Integrity Systems also provide a safety\r
90     engineered and independently SIL3 certified version for use in safety and\r
91     mission critical applications that require provable dependability.\r
92 \r
93     1 tab == 4 spaces!\r
94 */\r
95 \r
96 #ifndef FREERTOS_CONFIG_H\r
97 #define FREERTOS_CONFIG_H\r
98 \r
99 /*-----------------------------------------------------------\r
100  * Application specific definitions.\r
101  *\r
102  * These definitions should be adjusted for your particular hardware and\r
103  * application requirements.\r
104  *\r
105  * THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE\r
106  * FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE.\r
107  *\r
108  * See http://www.freertos.org/a00110.html.\r
109  *----------------------------------------------------------*/\r
110 \r
111 #define configCPU_CLOCK_HZ                                              /* Not used in this port as the value comes from the Atmel libraries. */\r
112 #define configUSE_PORT_OPTIMISED_TASK_SELECTION 1\r
113 #define configUSE_TICKLESS_IDLE                                 0\r
114 #define configTICK_RATE_HZ                                              ( ( TickType_t ) 1000 )\r
115 #define configUSE_PREEMPTION                                    1\r
116 #define configUSE_IDLE_HOOK                                             1\r
117 #define configUSE_TICK_HOOK                                             1\r
118 #define configMAX_PRIORITIES                                    ( 5 )\r
119 #define configMINIMAL_STACK_SIZE                                ( ( unsigned short ) 120 )\r
120 #define configTOTAL_HEAP_SIZE                                   ( ( size_t ) ( 38 * 1024 ) )\r
121 #define configMAX_TASK_NAME_LEN                                 ( 10 )\r
122 #define configUSE_TRACE_FACILITY                                1\r
123 #define configUSE_16_BIT_TICKS                                  0\r
124 #define configIDLE_SHOULD_YIELD                                 1\r
125 #define configUSE_MUTEXES                                               1\r
126 #define configQUEUE_REGISTRY_SIZE                               8\r
127 #define configCHECK_FOR_STACK_OVERFLOW                  2\r
128 #define configUSE_RECURSIVE_MUTEXES                             1\r
129 #define configUSE_MALLOC_FAILED_HOOK                    1\r
130 #define configUSE_APPLICATION_TASK_TAG                  0\r
131 #define configUSE_COUNTING_SEMAPHORES                   1\r
132 \r
133 /* Co-routine definitions. */\r
134 #define configUSE_CO_ROUTINES                                   0\r
135 #define configMAX_CO_ROUTINE_PRIORITIES                 ( 2 )\r
136 \r
137 /* Software timer definitions. */\r
138 #define configUSE_TIMERS                                                1\r
139 #define configTIMER_TASK_PRIORITY                               ( configMAX_PRIORITIES - 1 )\r
140 #define configTIMER_QUEUE_LENGTH                                5\r
141 #define configTIMER_TASK_STACK_DEPTH                    ( configMINIMAL_STACK_SIZE * 2 )\r
142 \r
143 /* Set the following definitions to 1 to include the API function, or zero\r
144 to exclude the API function. */\r
145 #define INCLUDE_vTaskPrioritySet                                1\r
146 #define INCLUDE_uxTaskPriorityGet                               1\r
147 #define INCLUDE_vTaskDelete                                             1\r
148 #define INCLUDE_vTaskCleanUpResources                   1\r
149 #define INCLUDE_vTaskSuspend                                    1\r
150 #define INCLUDE_vTaskDelayUntil                                 1\r
151 #define INCLUDE_vTaskDelay                                              1\r
152 #define INCLUDE_eTaskGetState                                   1\r
153 #define INCLUDE_xEventGroupSetBitFromISR                1\r
154 #define INCLUDE_xTimerPendFunctionCall                  1\r
155 \r
156 /* This demo makes use of one or more example stats formatting functions.  These\r
157 format the raw data provided by the uxTaskGetSystemState() function in to human\r
158 readable ASCII form.  See the notes in the implementation of vTaskList() within\r
159 FreeRTOS/Source/tasks.c for limitations. */\r
160 #define configUSE_STATS_FORMATTING_FUNCTIONS    1\r
161 \r
162 /* Cortex-A specific setting:  FPU has 32 (rather than 16) d registers.  See:\r
163 http://www.FreeRTOS.org/Using-FreeRTOS-on-Cortex-A-MPUs-without-a-GIC.html */\r
164 #define configFPU_D32   1\r
165 \r
166 /* Cortex-A specific setting:  The address of the register within the interrupt\r
167 controller from which the address of the current interrupt's handling function\r
168 can be obtained.  See:\r
169 http://www.FreeRTOS.org/Using-FreeRTOS-on-Cortex-A-MPUs-without-a-GIC.html */\r
170 #define configINTERRUPT_VECTOR_ADDRESS  0xFC06E010UL\r
171 \r
172 /* Cortex-A specific setting:  The address of End of Interrupt register within\r
173 the interrupt controller.  See:\r
174 http://www.FreeRTOS.org/Using-FreeRTOS-on-Cortex-A-MPUs-without-a-GIC.html */\r
175 #define configEOI_ADDRESS       0xFC06E038UL\r
176 \r
177 /* Cortex-A specific setting: configCLEAR_TICK_INTERRUPT() is a macro that is\r
178 called by the RTOS kernel's tick handler to clear the source of the tick\r
179 interrupt.  See:\r
180 http://www.FreeRTOS.org/Using-FreeRTOS-on-Cortex-A-MPUs-without-a-GIC.html */\r
181 #define configCLEAR_TICK_INTERRUPT() ( void ) ( *( ( volatile uint32_t * ) 0xFC068638UL ) ) /* Read PIT_PIVR to clear interrupt. */\r
182 \r
183 /* Prevent C code being included in assembly files when the IAR compiler is\r
184 used. */\r
185 #ifndef __IASMARM__\r
186 \r
187         /* The interrupt nesting test creates a 20KHz timer.  For convenience the\r
188         20KHz timer is also used to generate the run time stats time base, removing\r
189         the need to use a separate timer for that purpose.  The 20KHz timer\r
190         increments ulHighFrequencyTimerCounts, which is used as the time base.\r
191         Therefore the following macro is not implemented. */\r
192         #define configGENERATE_RUN_TIME_STATS   1\r
193         extern volatile uint32_t ulHighFrequencyTimerCounts;\r
194         #define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS()\r
195         #define portGET_RUN_TIME_COUNTER_VALUE() ulHighFrequencyTimerCounts\r
196 \r
197         /* The size of the global output buffer that is available for use when there\r
198         are multiple command interpreters running at once (for example, one on a UART\r
199         and one on TCP/IP).  This is done to prevent an output buffer being defined by\r
200         each implementation - which would waste RAM.  In this case, there is only one\r
201         command interpreter running. */\r
202         #define configCOMMAND_INT_MAX_OUTPUT_SIZE 3000\r
203 \r
204         /* Normal assert() semantics without relying on the provision of an assert.h\r
205         header file. */\r
206         void vAssertCalled( const char * pcFile, unsigned long ulLine );\r
207         #define configASSERT( x ) if( ( x ) == 0 ) vAssertCalled( __FILE__, __LINE__ );\r
208 \r
209 \r
210 \r
211         /****** Hardware specific settings. *******************************************/\r
212 \r
213         /*\r
214          * The application must provide a function that configures a peripheral to\r
215          * create the FreeRTOS tick interrupt, then define configSETUP_TICK_INTERRUPT()\r
216          * in FreeRTOSConfig.h to call the function.  FreeRTOS_Tick_Handler() must\r
217          * be installed as the peripheral's interrupt handler.\r
218          */\r
219         void vConfigureTickInterrupt( void );\r
220         #define configSETUP_TICK_INTERRUPT() vConfigureTickInterrupt()\r
221 \r
222 #endif /* __IASMARM__ */\r
223 \r
224 #endif /* FREERTOS_CONFIG_H */\r
225 \r