blob: 2bcb0131696b17adf44f158ca84c3a3f425cc8f0 [file] [log] [blame]
Richard Barryb6df57c2006-05-02 09:39:15 +00001/*
Richard Barry16b6baf2008-07-30 20:04:29 +00002 FreeRTOS.org V5.0.3 - Copyright (C) 2003-2008 Richard Barry.
Richard Barryb6df57c2006-05-02 09:39:15 +00003
Richard Barry946da762006-05-28 08:17:56 +00004 This file is part of the FreeRTOS.org distribution.
Richard Barryb6df57c2006-05-02 09:39:15 +00005
Richard Barry946da762006-05-28 08:17:56 +00006 FreeRTOS.org is free software; you can redistribute it and/or modify
Richard Barryb6df57c2006-05-02 09:39:15 +00007 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
Richard Barry946da762006-05-28 08:17:56 +000011 FreeRTOS.org is distributed in the hope that it will be useful,
Richard Barryb6df57c2006-05-02 09:39:15 +000012 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
Richard Barry946da762006-05-28 08:17:56 +000017 along with FreeRTOS.org; if not, write to the Free Software
Richard Barryb6df57c2006-05-02 09:39:15 +000018 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
20 A special exception to the GPL can be applied should you wish to distribute
Richard Barry946da762006-05-28 08:17:56 +000021 a combined work that includes FreeRTOS.org, without being obliged to provide
Richard Barryb6df57c2006-05-02 09:39:15 +000022 the source code for any proprietary components. See the licensing section
23 of http://www.FreeRTOS.org for full details of how and when the exception
24 can be applied.
25
Richard Barry9596b042008-03-26 13:04:38 +000026 ***************************************************************************
27 ***************************************************************************
28 * *
29 * SAVE TIME AND MONEY! We can port FreeRTOS.org to your own hardware, *
30 * and even write all or part of your application on your behalf. *
31 * See http://www.OpenRTOS.com for details of the services we provide to *
32 * expedite your project. *
33 * *
34 ***************************************************************************
35 ***************************************************************************
Richard Barry0a6d59a2007-04-01 20:47:49 +000036
Richard Barry527fb6a2008-03-25 21:22:13 +000037 Please ensure to read the configuration and relevant port sections of the
Richard Barryc86dcf72008-02-03 19:45:58 +000038 online documentation.
39
Richard Barry527fb6a2008-03-25 21:22:13 +000040 http://www.FreeRTOS.org - Documentation, latest information, license and
41 contact details.
Richard Barryc86dcf72008-02-03 19:45:58 +000042
Richard Barry527fb6a2008-03-25 21:22:13 +000043 http://www.SafeRTOS.com - A version that is certified for use in safety
44 critical systems.
Richard Barryc86dcf72008-02-03 19:45:58 +000045
Richard Barry527fb6a2008-03-25 21:22:13 +000046 http://www.OpenRTOS.com - Commercial support, development, porting,
47 licensing and training services.
Richard Barryb6df57c2006-05-02 09:39:15 +000048*/
49
50#ifndef FREERTOS_CONFIG_H
51#define FREERTOS_CONFIG_H
52
53#include <hidef.h> /* common defines and macros */
54#include "TickTimer.h"
55
56/*-----------------------------------------------------------
57 * Application specific definitions.
58 *
59 * These definitions should be adjusted for your particular hardware and
60 * application requirements.
61 *
62 * THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE
63 * FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE.
Richard Barry049459a2008-08-14 13:19:20 +000064 *
65 * See http://www.freertos.org/a00110.html.
Richard Barryb6df57c2006-05-02 09:39:15 +000066 *----------------------------------------------------------*/
67
68#define configUSE_PREEMPTION 1
69#define configUSE_IDLE_HOOK 1
70#define configUSE_TICK_HOOK 0
71#define configTICK_RATE_HZ ( ( portTickType ) 1000 )
72#define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 4 )
73#define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 70 )
74#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 2048 - 256 ) )
75#define configMAX_TASK_NAME_LEN ( 1 )
76#define configUSE_TRACE_FACILITY 0
77#define configUSE_16_BIT_TICKS 1
78#define configIDLE_SHOULD_YIELD 1
79
80/* Co-routine definitions. */
81#define configUSE_CO_ROUTINES 0
82#define configMAX_CO_ROUTINE_PRIORITIES ( 2 )
83
84/* This parameter is normally required in order to set the RTOS tick timer.
85This port is a bit different in that hardware setup uses the code generated by
86the Processor Expert, making this definition obsolete.
87
88#define configCPU_CLOCK_HZ ( ( unsigned portLONG ) 24000000 )
89*/
90
91
92/* Set the following definitions to 1 to include the API function, or zero
93to exclude the API function. */
94
95#define INCLUDE_vTaskPrioritySet 1
96#define INCLUDE_uxTaskPriorityGet 1
97#define INCLUDE_vTaskDelete 0
98#define INCLUDE_vTaskCleanUpResources 0
99#define INCLUDE_vTaskSuspend 1
100#define INCLUDE_vTaskDelayUntil 1
101#define INCLUDE_vTaskDelay 1
102
103
104
105
106
107#endif /* FREERTOS_CONFIG_H */