root/webserver/example/freeRTOS/Demo/ARM7_LPC2368_Rowley/FreeRTOSConfig.h

Revision 14, 4.6 kB (checked in by phil, 15 years ago)

added unmodified FreeRTOS package V5.4.1 with only web srv demo source for LPC2368 for CrossWorks?

Line 
1 /*
2         FreeRTOS V5.4.1 - Copyright (C) 2009 Real Time Engineers Ltd.
3
4         This file is part of the FreeRTOS distribution.
5
6         FreeRTOS is free software; you can redistribute it and/or modify it     under
7         the terms of the GNU General Public License (version 2) as published by the
8         Free Software Foundation and modified by the FreeRTOS exception.
9         **NOTE** The exception to the GPL is included to allow you to distribute a
10         combined work that includes FreeRTOS without being obliged to provide the
11         source code for proprietary components outside of the FreeRTOS kernel. 
12         Alternative commercial license and support terms are also available upon
13         request.  See the licensing section of http://www.FreeRTOS.org for full
14         license details.
15
16         FreeRTOS is distributed in the hope that it will be useful,     but WITHOUT
17         ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18         FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
19         more details.
20
21         You should have received a copy of the GNU General Public License along
22         with FreeRTOS; if not, write to the Free Software Foundation, Inc., 59
23         Temple Place, Suite 330, Boston, MA  02111-1307  USA.
24
25
26         ***************************************************************************
27         *                                                                         *
28         * Looking for a quick start?  Then check out the FreeRTOS eBook!          *
29         * See http://www.FreeRTOS.org/Documentation for details                   *
30         *                                                                         *
31         ***************************************************************************
32
33         1 tab == 4 spaces!
34
35         Please ensure to read the configuration and relevant port sections of the
36         online documentation.
37
38         http://www.FreeRTOS.org - Documentation, latest information, license and
39         contact details.
40
41         http://www.SafeRTOS.com - A version that is certified for use in safety
42         critical systems.
43
44         http://www.OpenRTOS.com - Commercial support, development, porting,
45         licensing and training services.
46 */
47
48 #ifndef FREERTOS_CONFIG_H
49 #define FREERTOS_CONFIG_H
50
51 #include <stdio.h>
52 #include <targets/LPC2368.h>
53 #define vPortYieldProcessor swi_handler
54
55 /*-----------------------------------------------------------
56  * Application specific definitions.
57  *
58  * These definitions should be adjusted for your particular hardware and
59  * application requirements.
60  *
61  * THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE
62  * FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE.
63  *
64  * See http://www.freertos.org/a00110.html.
65  *----------------------------------------------------------*/
66
67
68 /* Value to use on old rev '-' devices. */
69 //#define configPINSEL2_VALUE   0x50151105
70
71 /* Value to use on rev 'A' and newer devices. */
72 //#define configPINSEL2_VALUE   0x50150105
73
74 #ifndef configPINSEL2_VALUE
75         #error Please uncomment one of the two configPINSEL2_VALUE definitions above, depending on the revision of the LPC2000 device being used.
76 #endif
77
78 #define configUSE_PREEMPTION            1
79 #define configUSE_IDLE_HOOK         0
80 #define configUSE_TICK_HOOK         0
81 #define configCPU_CLOCK_HZ          ( ( unsigned portLONG ) 57600000 ) 
82 #define configTICK_RATE_HZ          ( ( portTickType ) 1000 )
83 #define configMAX_PRIORITIES            ( ( unsigned portBASE_TYPE ) 4 )
84 #define configMINIMAL_STACK_SIZE        ( ( unsigned portSHORT ) 120 )
85 #define configTOTAL_HEAP_SIZE           ( ( size_t ) ( 18 * 1024 ) )
86 #define configMAX_TASK_NAME_LEN         ( 16 )
87 #define configUSE_TRACE_FACILITY        1
88 #define configUSE_16_BIT_TICKS          0
89 #define configIDLE_SHOULD_YIELD         1
90
91 /* Co-routine definitions. */
92 #define configUSE_CO_ROUTINES           0
93 #define configMAX_CO_ROUTINE_PRIORITIES ( 2 )
94
95
96 /* Set the following definitions to 1 to include the API function, or zero
97 to exclude the API function. */
98
99 #define INCLUDE_vTaskPrioritySet            1
100 #define INCLUDE_uxTaskPriorityGet           1
101 #define INCLUDE_vTaskDelete                 1
102 #define INCLUDE_vTaskCleanUpResources       0
103 #define INCLUDE_vTaskSuspend                1
104 #define INCLUDE_vTaskDelayUntil             1
105 #define INCLUDE_vTaskDelay                  1
106 #define INCLUDE_xTaskGetCurrentTaskHandle       1
107
108
109 #endif /* FREERTOS_CONFIG_H */
110
111
112 #ifndef sbi
113 #define sbi(x,y)        x|=(1 << (y))
114 #endif
115
116 #ifndef cbi
117 #define cbi(x,y)        x&=~(1 << (y))
118 #endif
119
120 #ifndef tstb
121 #define tstb(x,y)       (x & (1 << (y)) ? 1 : 0)
122 #endif
123
124 #ifndef toggle
125 #define toggle(x,y)     x^=(1 << (y))
126 #endif
127
128 #ifndef BIT
129 #define BIT(x)  (1 << (x))
130
131
132 #define VICVectAddr    VICAddress
133 #define VICVectCntl4 VICVectPriority4
134 typedef struct
135 {
136         long xColumn;
137         signed char *pcMessage;
138 } xLCDMessage;
139
140 #endif
Note: See TracBrowser for help on using the browser.