Richard Barry | b6df57c | 2006-05-02 09:39:15 +0000 | [diff] [blame] | 1 | /*
|
Richard Barry | 16b6baf | 2008-07-30 20:04:29 +0000 | [diff] [blame] | 2 | FreeRTOS.org V5.0.3 - Copyright (C) 2003-2008 Richard Barry.
|
Richard Barry | b6df57c | 2006-05-02 09:39:15 +0000 | [diff] [blame] | 3 |
|
Richard Barry | 946da76 | 2006-05-28 08:17:56 +0000 | [diff] [blame] | 4 | This file is part of the FreeRTOS.org distribution.
|
Richard Barry | b6df57c | 2006-05-02 09:39:15 +0000 | [diff] [blame] | 5 |
|
Richard Barry | 946da76 | 2006-05-28 08:17:56 +0000 | [diff] [blame] | 6 | FreeRTOS.org is free software; you can redistribute it and/or modify
|
Richard Barry | b6df57c | 2006-05-02 09:39:15 +0000 | [diff] [blame] | 7 | 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 Barry | 946da76 | 2006-05-28 08:17:56 +0000 | [diff] [blame] | 11 | FreeRTOS.org is distributed in the hope that it will be useful,
|
Richard Barry | b6df57c | 2006-05-02 09:39:15 +0000 | [diff] [blame] | 12 | 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 Barry | 946da76 | 2006-05-28 08:17:56 +0000 | [diff] [blame] | 17 | along with FreeRTOS.org; if not, write to the Free Software
|
Richard Barry | b6df57c | 2006-05-02 09:39:15 +0000 | [diff] [blame] | 18 | 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 Barry | 946da76 | 2006-05-28 08:17:56 +0000 | [diff] [blame] | 21 | a combined work that includes FreeRTOS.org, without being obliged to provide
|
Richard Barry | b6df57c | 2006-05-02 09:39:15 +0000 | [diff] [blame] | 22 | 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 Barry | 9596b04 | 2008-03-26 13:04:38 +0000 | [diff] [blame] | 26 | ***************************************************************************
|
| 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 Barry | 0a6d59a | 2007-04-01 20:47:49 +0000 | [diff] [blame] | 36 |
|
Richard Barry | 527fb6a | 2008-03-25 21:22:13 +0000 | [diff] [blame] | 37 | Please ensure to read the configuration and relevant port sections of the
|
Richard Barry | c86dcf7 | 2008-02-03 19:45:58 +0000 | [diff] [blame] | 38 | online documentation.
|
| 39 |
|
Richard Barry | 527fb6a | 2008-03-25 21:22:13 +0000 | [diff] [blame] | 40 | http://www.FreeRTOS.org - Documentation, latest information, license and
|
| 41 | contact details.
|
Richard Barry | c86dcf7 | 2008-02-03 19:45:58 +0000 | [diff] [blame] | 42 |
|
Richard Barry | 527fb6a | 2008-03-25 21:22:13 +0000 | [diff] [blame] | 43 | http://www.SafeRTOS.com - A version that is certified for use in safety
|
| 44 | critical systems.
|
Richard Barry | c86dcf7 | 2008-02-03 19:45:58 +0000 | [diff] [blame] | 45 |
|
Richard Barry | 527fb6a | 2008-03-25 21:22:13 +0000 | [diff] [blame] | 46 | http://www.OpenRTOS.com - Commercial support, development, porting,
|
| 47 | licensing and training services.
|
Richard Barry | b6df57c | 2006-05-02 09:39:15 +0000 | [diff] [blame] | 48 | */
|
| 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 Barry | 049459a | 2008-08-14 13:19:20 +0000 | [diff] [blame^] | 64 | *
|
| 65 | * See http://www.freertos.org/a00110.html.
|
Richard Barry | b6df57c | 2006-05-02 09:39:15 +0000 | [diff] [blame] | 66 | *----------------------------------------------------------*/
|
| 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.
|
| 85 | This port is a bit different in that hardware setup uses the code generated by
|
| 86 | the 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
|
| 93 | to 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 */
|