blob: d171e466b6e9da387048b9ec72f841acca82561c [file] [log] [blame]
Richard Barryc59af802008-10-23 11:08:14 +00001/*
Richard Barry83686002009-07-07 09:29:47 +00002 FreeRTOS.org V5.4.0 - Copyright (C) 2003-2009 Richard Barry.
Richard Barryc59af802008-10-23 11:08:14 +00003
4 This file is part of the FreeRTOS.org distribution.
5
Richard Barryc0126512009-05-30 15:56:05 +00006 FreeRTOS.org is free software; you can redistribute it and/or modify it
Richard Barry2f40ad72009-03-14 19:20:12 +00007 under the terms of the GNU General Public License (version 2) as published
8 by the Free Software Foundation and modified by the FreeRTOS exception.
Richard Barryc0126512009-05-30 15:56:05 +00009 **NOTE** The exception to the GPL is included to allow you to distribute a
10 combined work that includes FreeRTOS.org without being obliged to provide
11 the source code for any proprietary components. Alternative commercial
12 license and support terms are also available upon request. See the
13 licensing section of http://www.FreeRTOS.org for full details.
Richard Barryc59af802008-10-23 11:08:14 +000014
Richard Barry2f40ad72009-03-14 19:20:12 +000015 FreeRTOS.org is distributed in the hope that it will be useful, but WITHOUT
Richard Barryc0126512009-05-30 15:56:05 +000016 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
Richard Barry2f40ad72009-03-14 19:20:12 +000018 more details.
Richard Barryc59af802008-10-23 11:08:14 +000019
Richard Barryc0126512009-05-30 15:56:05 +000020 You should have received a copy of the GNU General Public License along
21 with FreeRTOS.org; if not, write to the Free Software Foundation, Inc., 59
Richard Barry2f40ad72009-03-14 19:20:12 +000022 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
Richard Barryc59af802008-10-23 11:08:14 +000023
Richard Barry2f40ad72009-03-14 19:20:12 +000024
25 ***************************************************************************
26 * *
27 * Get the FreeRTOS eBook! See http://www.FreeRTOS.org/Documentation *
Richard Barry52ba0e62009-02-09 20:21:35 +000028 * *
29 * This is a concise, step by step, 'hands on' guide that describes both *
30 * general multitasking concepts and FreeRTOS specifics. It presents and *
31 * explains numerous examples that are written using the FreeRTOS API. *
32 * Full source code for all the examples is provided in an accompanying *
33 * .zip file. *
Richard Barry2f40ad72009-03-14 19:20:12 +000034 * *
35 ***************************************************************************
36
37 1 tab == 4 spaces!
Richard Barryc59af802008-10-23 11:08:14 +000038
39 Please ensure to read the configuration and relevant port sections of the
40 online documentation.
41
Richard Barry2f40ad72009-03-14 19:20:12 +000042 http://www.FreeRTOS.org - Documentation, latest information, license and
Richard Barryc59af802008-10-23 11:08:14 +000043 contact details.
44
Richard Barry2f40ad72009-03-14 19:20:12 +000045 http://www.SafeRTOS.com - A version that is certified for use in safety
Richard Barryc59af802008-10-23 11:08:14 +000046 critical systems.
47
Richard Barry2f40ad72009-03-14 19:20:12 +000048 http://www.OpenRTOS.com - Commercial support, development, porting,
Richard Barryc59af802008-10-23 11:08:14 +000049 licensing and training services.
50*/
51
52#ifndef FREERTOS_CONFIG_H
53#define FREERTOS_CONFIG_H
54
55#include <lpc21xx.h>
56
57/*-----------------------------------------------------------
58 * Application specific definitions.
59 *
60 * These definitions should be adjusted for your particular hardware and
61 * application requirements.
62 *
63 * THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE
64 * FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE.
65 *
66 * See http://www.freertos.org/a00110.html.
67 *----------------------------------------------------------*/
68
69#define configUSE_PREEMPTION 1
70#define configUSE_IDLE_HOOK 0
71#define configUSE_TICK_HOOK 0
72#define configCPU_CLOCK_HZ ( ( unsigned portLONG ) 60000000 ) /* =12.0MHz xtal multiplied by 5 using the PLL. */
73#define configTICK_RATE_HZ ( ( portTickType ) 1000 )
74#define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 )
75#define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 100 )
76#define configTOTAL_HEAP_SIZE ( ( size_t ) 13 * 1024 )
77#define configMAX_TASK_NAME_LEN ( 16 )
78#define configUSE_TRACE_FACILITY 0
79#define configUSE_16_BIT_TICKS 0
80#define configIDLE_SHOULD_YIELD 1
81
Richard Barry515cd422009-04-27 09:15:19 +000082#define configQUEUE_REGISTRY_SIZE 0
83
Richard Barryc59af802008-10-23 11:08:14 +000084/* Co-routine definitions. */
85#define configUSE_CO_ROUTINES 0
86#define configMAX_CO_ROUTINE_PRIORITIES ( 2 )
87
88/* Set the following definitions to 1 to include the API function, or zero
89to exclude the API function. */
90
91#define INCLUDE_vTaskPrioritySet 1
92#define INCLUDE_uxTaskPriorityGet 1
93#define INCLUDE_vTaskDelete 1
94#define INCLUDE_vTaskCleanUpResources 0
95#define INCLUDE_vTaskSuspend 1
96#define INCLUDE_vTaskDelayUntil 1
97#define INCLUDE_vTaskDelay 1
98
99
100
101#endif /* FREERTOS_CONFIG_H */