FreeRTOS Tetris
FreeRTOSConfig.h
1 /*
2  FreeRTOS.org V5.4.2 - Copyright (C) 2003-2009 Richard Barry.
3 
4  This file is part of the FreeRTOS.org distribution.
5 
6  FreeRTOS.org is free software; you can redistribute it and/or modify it
7  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.
9 
10  FreeRTOS.org is distributed in the hope that it will be useful, but WITHOUT
11  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13  more details.
14 
15  You should have received a copy of the GNU General Public License along
16  with FreeRTOS.org; if not, write to the Free Software Foundation, Inc., 59
17  Temple Place, Suite 330, Boston, MA 02111-1307 USA.
18 
19  A special exception to the GPL is included to allow you to distribute a
20  combined work that includes FreeRTOS.org without being obliged to provide
21  the source code for any proprietary components. See the licensing section
22  of http://www.FreeRTOS.org for full details.
23 
24 
25  ***************************************************************************
26  * *
27  * Get the FreeRTOS eBook! See http://www.FreeRTOS.org/Documentation *
28  * *
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. *
34  * *
35  ***************************************************************************
36 
37  1 tab == 4 spaces!
38 
39  Please ensure to read the configuration and relevant port sections of the
40  online documentation.
41 
42  http://www.FreeRTOS.org - Documentation, latest information, license and
43  contact details.
44 
45  http://www.SafeRTOS.com - A version that is certified for use in safety
46  critical systems.
47 
48  http://www.OpenRTOS.com - Commercial support, development, porting,
49  licensing and training services.
50  */
51 
52 #ifndef FREERTOS_CONFIG_H
53 #define FREERTOS_CONFIG_H
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 #include <stdint.h>
68 
76 #define configUSE_PREEMPTION 1
77 #define configUSE_IDLE_HOOK 1
78 #define configUSE_TICK_HOOK 0
79 #define configTICK_RATE_HZ ( ( TickType_t ) 1000 )
80 #define configMINIMAL_STACK_SIZE ( ( unsigned short ) 4 )
81 #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 32 * 1024 ) )
82 #define configMAX_TASK_NAME_LEN ( 16 )
83 #define configUSE_TRACE_FACILITY 1
84 #define configUSE_STATS_FORMATTING_FUNCTIONS 1
85 #define configGENERATE_RUN_TIME_STATS 1
86 #define configUSE_16_BIT_TICKS 0
87 #define configIDLE_SHOULD_YIELD 1
88 #define configUSE_CO_ROUTINES 1
89 #define configUSE_MUTEXES 1
90 #define configUSE_TASK_NOTIFICATIONS 1
91 #define configUSE_COUNTING_SEMAPHORES 1
92 #define configUSE_ALTERNATIVE_API 0
93 #define configUSE_RECURSIVE_MUTEXES 1
94 #define configCHECK_FOR_STACK_OVERFLOW 0
95 
96 #define configUSE_APPLICATION_TASK_TAG 1
97 #define configQUEUE_REGISTRY_SIZE 0
98 #define configMAX_SYSCALL_INTERRUPT_PRIORITY 1
99 
100 #define configMAX_PRIORITIES ( 10 )
101 #define configMAX_CO_ROUTINE_PRIORITIES ( 2 )
102 
103 /* Set the following definitions to 1 to include the API function, or zero
104  to exclude the API function. */
105 
106 #define INCLUDE_vTaskPrioritySet 1
107 #define INCLUDE_uxTaskPriorityGet 1
108 #define INCLUDE_vTaskDelete 1
109 #define INCLUDE_vTaskCleanUpResources 1
110 #define INCLUDE_vTaskSuspend 1
111 #define INCLUDE_vTaskDelayUntil 1
112 #define INCLUDE_vTaskDelay 1
113 #define INCLUDE_uxTaskGetStackHighWaterMark 0
114 #define INCLUDE_xTaskGetSchedulerState 1
115 
116 extern void vMainQueueSendPassed(void);
117 #define traceQUEUE_SEND( pxQueue ) vMainQueueSendPassed()
118 
119 #define configTIMER_SERVICE_TASK_NAME "Tmr Svc"
120 #define configTIMER_TASK_PRIORITY (configMAX_PRIORITIES - 1)
122 #define configTIMER_TASK_STACK_DEPTH (configMINIMAL_STACK_SIZE*2)
124 #define configTIMER_QUEUE_LENGTH 10
126 
128 
129 #endif /* FREERTOS_CONFIG_H */