]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/ColdFire_MCF52221_CodeWarrior/sources/FreeRTOSConfig.h
Add FreeRTOS-Plus directory.
[freertos] / FreeRTOS / Demo / ColdFire_MCF52221_CodeWarrior / sources / FreeRTOSConfig.h
1 /*\r
2     FreeRTOS V7.1.1 - Copyright (C) 2012 Real Time Engineers Ltd.\r
3         \r
4 \r
5     ***************************************************************************\r
6      *                                                                       *\r
7      *    FreeRTOS tutorial books are available in pdf and paperback.        *\r
8      *    Complete, revised, and edited pdf reference manuals are also       *\r
9      *    available.                                                         *\r
10      *                                                                       *\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
17      *                                                                       *\r
18      *    >>> See http://www.FreeRTOS.org/Documentation for details. <<<     *\r
19      *                                                                       *\r
20      *    Thank you for using FreeRTOS, and thank you for your support!      *\r
21      *                                                                       *\r
22     ***************************************************************************\r
23 \r
24 \r
25     This file is part of the FreeRTOS distribution.\r
26 \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
40     FreeRTOS WEB site.\r
41 \r
42     1 tab == 4 spaces!\r
43     \r
44     ***************************************************************************\r
45      *                                                                       *\r
46      *    Having a problem?  Start by reading the FAQ "My application does   *\r
47      *    not run, what could be wrong?                                      *\r
48      *                                                                       *\r
49      *    http://www.FreeRTOS.org/FAQHelp.html                               *\r
50      *                                                                       *\r
51     ***************************************************************************\r
52 \r
53     \r
54     http://www.FreeRTOS.org - Documentation, training, latest information, \r
55     license and contact details.\r
56     \r
57     http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,\r
58     including FreeRTOS+Trace - an indispensable productivity tool.\r
59 \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
65 */\r
66 \r
67 /* CodeWarrior often thinks it knows better than you which files you want to \r
68 build - and changes the port.c and portasm.S files included in the project from\r
69 the ColdFire V1 versions to the x86 versions.  If you get lots of errors output\r
70 when either file is compiled then delete the files from the project and then\r
71 add back in the port.c and portasm.S files that are located in the \r
72 FreeRTOS\Source\portable\GCC\ColdFire_V2 directory.  Remove the line below\r
73 before compiling. */\r
74 \r
75 #error Read the comment above this line, then delete this error statement!\r
76 \r
77 \r
78 #ifndef FREERTOS_CONFIG_H\r
79 #define FREERTOS_CONFIG_H\r
80 \r
81 #include "support_common.h"\r
82 \r
83 /*-----------------------------------------------------------\r
84  * Application specific definitions.\r
85  *\r
86  * These definitions should be adjusted for your particular hardware and\r
87  * application requirements.\r
88  *\r
89  * THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE\r
90  * FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE. \r
91  *\r
92  * See http://www.freertos.org/a00110.html.\r
93  *----------------------------------------------------------*/\r
94 \r
95 #define configUSE_PREEMPTION                    1\r
96 #define configUSE_IDLE_HOOK                             1\r
97 #define configUSE_TICK_HOOK                             0\r
98 #define configCPU_CLOCK_HZ                              ( ( unsigned long ) 80000000 )\r
99 #define configTICK_RATE_HZ                              ( ( portTickType ) 100 )\r
100 #define configMINIMAL_STACK_SIZE                ( ( unsigned short ) 100 )\r
101 #define configTOTAL_HEAP_SIZE                   ( ( size_t ) ( 15000 ) )\r
102 #define configMAX_TASK_NAME_LEN                 ( 12 )\r
103 #define configUSE_TRACE_FACILITY                1\r
104 #define configUSE_16_BIT_TICKS                  0\r
105 #define configIDLE_SHOULD_YIELD                 0\r
106 #define configUSE_CO_ROUTINES                   1\r
107 #define configUSE_MUTEXES                               1\r
108 #define configCHECK_FOR_STACK_OVERFLOW  2\r
109 #define configUSE_RECURSIVE_MUTEXES             1\r
110 #define configQUEUE_REGISTRY_SIZE               0\r
111 #define configUSE_COUNTING_SEMAPHORES   0\r
112 \r
113 #define configMAX_PRIORITIES            ( ( unsigned portBASE_TYPE ) 6 )\r
114 #define configMAX_CO_ROUTINE_PRIORITIES ( 2 )\r
115 \r
116 /* Set the following definitions to 1 to include the API function, or zero\r
117 to exclude the API function. */\r
118 \r
119 #define INCLUDE_vTaskPrioritySet                        1\r
120 #define INCLUDE_uxTaskPriorityGet                       1\r
121 #define INCLUDE_vTaskDelete                                     1\r
122 #define INCLUDE_vTaskCleanUpResources           0\r
123 #define INCLUDE_vTaskSuspend                            1\r
124 #define INCLUDE_vTaskDelayUntil                         1\r
125 #define INCLUDE_vTaskDelay                                      1\r
126 #define INCLUDE_uxTaskGetStackHighWaterMark     1\r
127 \r
128 #define configYIELD_INTERRUPT_VECTOR                    16UL\r
129 #define configKERNEL_INTERRUPT_PRIORITY                 1\r
130 #define configMAX_SYSCALL_INTERRUPT_PRIORITY    4\r
131 \r
132 void vApplicationSetupInterrupts( void );\r
133 \r
134 /* Ethernet configuration. */\r
135 #define configMAC_0     0x00\r
136 #define configMAC_1     0x04\r
137 #define configMAC_2     0x9F\r
138 #define configMAC_3     0x00\r
139 #define configMAC_4     0xAB\r
140 #define configMAC_5     0x2B\r
141 \r
142 #define configIP_ADDR0  192\r
143 #define configIP_ADDR1  168\r
144 #define configIP_ADDR2  0\r
145 #define configIP_ADDR3  11\r
146 \r
147 #define configGW_ADDR0  172\r
148 #define configGW_ADDR1  25\r
149 #define configGW_ADDR2  218\r
150 #define configGW_ADDR3  3\r
151 \r
152 #define configNET_MASK0 255\r
153 #define configNET_MASK1 255\r
154 #define configNET_MASK2 255\r
155 #define configNET_MASK3 0\r
156 \r
157 #define configNUM_FEC_TX_BUFFERS        2\r
158 #define configNUM_FEC_RX_BUFFERS        4\r
159 #define configFEC_BUFFER_SIZE           1520\r
160 #define configUSE_PROMISCUOUS_MODE      0\r
161 #define configETHERNET_INPUT_TASK_STACK_SIZE ( 320 )\r
162 #define configETHERNET_INPUT_TASK_PRIORITY ( configMAX_PRIORITIES - 1 )\r
163 \r
164 #define configPHY_ADDRESS       1\r
165 \r
166 #if ( configFEC_BUFFER_SIZE & 0x0F ) != 0\r
167         #error configFEC_BUFFER_SIZE must be a multiple of 16.\r
168 #endif\r
169 \r
170 #endif /* FREERTOS_CONFIG_H */\r