]> git.sur5r.net Git - freertos/blob - Demo/CORTEX_STM32F107_GCC_Rowley/FreeRTOSConfig.h
New STM32 demo added.
[freertos] / Demo / CORTEX_STM32F107_GCC_Rowley / FreeRTOSConfig.h
1 /*\r
2         FreeRTOS.org V5.3.0 - Copyright (C) 2003-2009 Richard Barry.\r
3 \r
4         This file is part of the FreeRTOS.org distribution.\r
5 \r
6         FreeRTOS.org is free software; you can redistribute it and/or modify it\r
7         under the terms of the GNU General Public License (version 2) as published\r
8         by the Free Software Foundation and modified by the FreeRTOS exception.\r
9         **NOTE** The exception to the GPL is included to allow you to distribute a\r
10         combined work that includes FreeRTOS.org without being obliged to provide\r
11         the source code for any proprietary components.  Alternative commercial\r
12         license and support terms are also available upon request.  See the\r
13         licensing section of http://www.FreeRTOS.org for full details.\r
14 \r
15         FreeRTOS.org is distributed in the hope that it will be useful, but WITHOUT\r
16         ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\r
17         FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for\r
18         more details.\r
19 \r
20         You should have received a copy of the GNU General Public License along\r
21         with FreeRTOS.org; if not, write to the Free Software Foundation, Inc., 59\r
22         Temple Place, Suite 330, Boston, MA  02111-1307  USA.\r
23 \r
24 \r
25         ***************************************************************************\r
26         *                                                                         *\r
27         * Get the FreeRTOS eBook!  See http://www.FreeRTOS.org/Documentation      *\r
28         *                                                                         *\r
29         * This is a concise, step by step, 'hands on' guide that describes both   *\r
30         * general multitasking concepts and FreeRTOS specifics. It presents and   *\r
31         * explains numerous examples that are written using the FreeRTOS API.     *\r
32         * Full source code for all the examples is provided in an accompanying    *\r
33         * .zip file.                                                              *\r
34         *                                                                         *\r
35         ***************************************************************************\r
36 \r
37         1 tab == 4 spaces!\r
38 \r
39         Please ensure to read the configuration and relevant port sections of the\r
40         online documentation.\r
41 \r
42         http://www.FreeRTOS.org - Documentation, latest information, license and\r
43         contact details.\r
44 \r
45         http://www.SafeRTOS.com - A version that is certified for use in safety\r
46         critical systems.\r
47 \r
48         http://www.OpenRTOS.com - Commercial support, development, porting,\r
49         licensing and training services.\r
50 */\r
51 \r
52 #ifndef FREERTOS_CONFIG_H\r
53 #define FREERTOS_CONFIG_H\r
54 \r
55 /*-----------------------------------------------------------\r
56  * Application specific definitions.\r
57  *\r
58  * These definitions should be adjusted for your particular hardware and\r
59  * application requirements.\r
60  *\r
61  * THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE\r
62  * FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE.\r
63  *\r
64  * See http://www.freertos.org/a00110.html.\r
65  *----------------------------------------------------------*/\r
66 \r
67 #define configUSE_PREEMPTION            1\r
68 #define configUSE_IDLE_HOOK                     0\r
69 #define configUSE_TICK_HOOK                     1\r
70 #define configCPU_CLOCK_HZ                      ( ( unsigned portLONG ) 62500000 )\r
71 #define configTICK_RATE_HZ                      ( ( portTickType ) 1000 )\r
72 #define configMAX_PRIORITIES            ( ( unsigned portBASE_TYPE ) 5 )\r
73 #define configMINIMAL_STACK_SIZE        ( ( unsigned portSHORT ) 128 )\r
74 #define configTOTAL_HEAP_SIZE           ( ( size_t ) ( 30 * 1024 ) )\r
75 #define configMAX_TASK_NAME_LEN         ( 16 )\r
76 #define configUSE_TRACE_FACILITY        1\r
77 #define configUSE_16_BIT_TICKS          0\r
78 #define configIDLE_SHOULD_YIELD         1\r
79 \r
80 /* Co-routine definitions. */\r
81 #define configUSE_CO_ROUTINES           0\r
82 #define configMAX_CO_ROUTINE_PRIORITIES ( 2 )\r
83 \r
84 #define configUSE_MUTEXES                               1\r
85 #define configUSE_COUNTING_SEMAPHORES   0\r
86 #define configUSE_ALTERNATIVE_API               0\r
87 #define configCHECK_FOR_STACK_OVERFLOW  2\r
88 #define configUSE_RECURSIVE_MUTEXES             1\r
89 #define configQUEUE_REGISTRY_SIZE               0\r
90 #define configGENERATE_RUN_TIME_STATS   1\r
91 \r
92 /* Set the following definitions to 1 to include the API function, or zero\r
93 to exclude the API function. */\r
94 \r
95 #define INCLUDE_vTaskPrioritySet                1\r
96 #define INCLUDE_uxTaskPriorityGet               1\r
97 #define INCLUDE_vTaskDelete                             1\r
98 #define INCLUDE_vTaskCleanUpResources   0\r
99 #define INCLUDE_vTaskSuspend                    1\r
100 #define INCLUDE_vTaskDelayUntil                 1\r
101 #define INCLUDE_vTaskDelay                              1\r
102 \r
103 /* This is the raw value as per the Cortex-M3 NVIC.  Values can be 255\r
104 (lowest) to 0 (1?) (highest). */\r
105 #define configKERNEL_INTERRUPT_PRIORITY                 255\r
106 #define configMAX_SYSCALL_INTERRUPT_PRIORITY    191 /* equivalent to 0xb0, or priority 11. */\r
107 \r
108 \r
109 /* This is the value being used as per the ST library which permits 16\r
110 priority values, 0 to 15.  This must correspond to the\r
111 configKERNEL_INTERRUPT_PRIORITY setting.  Here 15 corresponds to the lowest\r
112 NVIC value of 255. */\r
113 #define configLIBRARY_KERNEL_INTERRUPT_PRIORITY 15\r
114 \r
115 /*-----------------------------------------------------------\r
116  * Ethernet configuration.\r
117  *-----------------------------------------------------------*/\r
118 \r
119 /* MAC address configuration. */\r
120 #define configMAC_ADDR0 0x00\r
121 #define configMAC_ADDR1 0x12\r
122 #define configMAC_ADDR2 0x13\r
123 #define configMAC_ADDR3 0x10\r
124 #define configMAC_ADDR4 0x15\r
125 #define configMAC_ADDR5 0x11\r
126 \r
127 /* IP address configuration. */\r
128 #define configIP_ADDR0          172\r
129 #define configIP_ADDR1          25\r
130 #define configIP_ADDR2          218\r
131 #define configIP_ADDR3          202\r
132 \r
133 /* Netmask configuration. */\r
134 #define configNET_MASK0         255\r
135 #define configNET_MASK1         255\r
136 #define configNET_MASK2         255\r
137 #define configNET_MASK3         0\r
138 \r
139 \r
140 /*-----------------------------------------------------------\r
141  * Macros required to setup the timer for the run time stats.\r
142  *-----------------------------------------------------------*/\r
143 /* The run time stats time base just uses the existing high frequency timer\r
144 test clock.  All these macros do is clear and return the high frequency\r
145 interrupt count respectively. */\r
146 extern unsigned long ulRunTimeStatsClock;\r
147 #define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() ulRunTimeStatsClock = 0\r
148 #define portGET_RUN_TIME_COUNTER_VALUE() ulRunTimeStatsClock\r
149 \r
150 \r
151 #endif /* FREERTOS_CONFIG_H */\r
152 \r