FreeRTOS Emulator with SDL2 Based Graphics and Input Library  1.0
A POSIX wrapper to run FreeRTOS on an x86 machine with some basic input and output libraries aimed at making teaching FreeRTOS simpler.
FreeRTOSConfig.h
Go to the documentation of this file.
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 
69 #define configUSE_PREEMPTION 1
70 #define configUSE_IDLE_HOOK 1
71 #define configUSE_TICK_HOOK 0
72 #define configTICK_RATE_HZ ( ( TickType_t ) 1000 )
73 #define configMINIMAL_STACK_SIZE ( ( unsigned short ) 4 ) /* This can be made smaller if required. */
74 #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 32 * 1024 ) )
75 #define configMAX_TASK_NAME_LEN ( 16 )
76 #define configUSE_TRACE_FACILITY 1
77 #define configUSE_STATS_FORMATTING_FUNCTIONS 1
78 #define configGENERATE_RUN_TIME_STATS 1
79 #define configUSE_16_BIT_TICKS 0
80 #define configIDLE_SHOULD_YIELD 1
81 #define configUSE_CO_ROUTINES 1
82 #define configUSE_MUTEXES 1
83 #define configUSE_TASK_NOTIFICATIONS 1
84 #define configUSE_COUNTING_SEMAPHORES 1
85 #define configUSE_ALTERNATIVE_API 0
86 #define configUSE_RECURSIVE_MUTEXES 1
87 #define configCHECK_FOR_STACK_OVERFLOW 0 /* Do not use this option on the PC port. */
88 #define configUSE_APPLICATION_TASK_TAG 1
89 #define configQUEUE_REGISTRY_SIZE 0
90 #define configMAX_SYSCALL_INTERRUPT_PRIORITY 1
91 
92 #define configMAX_PRIORITIES ( 10 )
93 #define configMAX_CO_ROUTINE_PRIORITIES ( 2 )
94 
95 /* Set the following definitions to 1 to include the API function, or zero
96  to exclude the API function. */
97 
98 #define INCLUDE_vTaskPrioritySet 1
99 #define INCLUDE_uxTaskPriorityGet 1
100 #define INCLUDE_vTaskDelete 1
101 #define INCLUDE_vTaskCleanUpResources 1
102 #define INCLUDE_vTaskSuspend 1
103 #define INCLUDE_vTaskDelayUntil 1
104 #define INCLUDE_vTaskDelay 1
105 #define INCLUDE_uxTaskGetStackHighWaterMark 0 /* Do not use this option on the PC port. */
106 #define INCLUDE_xTaskGetSchedulerState 1
107 
108 extern void vMainQueueSendPassed(void);
109 #define traceQUEUE_SEND( pxQueue ) vMainQueueSendPassed()
110 
111 #define configGENERATE_RUN_TIME_STATS 1
112 
113 #endif /* FREERTOS_CONFIG_H */
void vMainQueueSendPassed(void)