2 FreeRTOS V9.0.1 - Copyright (C) 2017 Real Time Engineers Ltd.
\r
5 VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
\r
7 This file is part of the FreeRTOS distribution.
\r
9 FreeRTOS is free software; you can redistribute it and/or modify it under
\r
10 the terms of the GNU General Public License (version 2) as published by the
\r
11 Free Software Foundation >>>> AND MODIFIED BY <<<< the FreeRTOS exception.
\r
13 ***************************************************************************
\r
14 >>! NOTE: The modification to the GPL is included to allow you to !<<
\r
15 >>! distribute a combined work that includes FreeRTOS without being !<<
\r
16 >>! obliged to provide the source code for proprietary components !<<
\r
17 >>! outside of the FreeRTOS kernel. !<<
\r
18 ***************************************************************************
\r
20 FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY
\r
21 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
\r
22 FOR A PARTICULAR PURPOSE. Full license text is available on the following
\r
23 link: http://www.freertos.org/a00114.html
\r
25 ***************************************************************************
\r
27 * FreeRTOS provides completely free yet professionally developed, *
\r
28 * robust, strictly quality controlled, supported, and cross *
\r
29 * platform software that is more than just the market leader, it *
\r
30 * is the industry's de facto standard. *
\r
32 * Help yourself get started quickly while simultaneously helping *
\r
33 * to support the FreeRTOS project by purchasing a FreeRTOS *
\r
34 * tutorial book, reference manual, or both: *
\r
35 * http://www.FreeRTOS.org/Documentation *
\r
37 ***************************************************************************
\r
39 http://www.FreeRTOS.org/FAQHelp.html - Having a problem? Start by reading
\r
40 the FAQ page "My application does not run, what could be wrong?". Have you
\r
41 defined configASSERT()?
\r
43 http://www.FreeRTOS.org/support - In return for receiving this top quality
\r
44 embedded software for free we request you assist our global community by
\r
45 participating in the support forum.
\r
47 http://www.FreeRTOS.org/training - Investing in training allows your team to
\r
48 be as productive as possible as early as possible. Now you can receive
\r
49 FreeRTOS training directly from Richard Barry, CEO of Real Time Engineers
\r
50 Ltd, and the world's leading authority on the world's leading RTOS.
\r
52 http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
\r
53 including FreeRTOS+Trace - an indispensable productivity tool, a DOS
\r
54 compatible FAT file system, and our tiny thread aware UDP/IP stack.
\r
56 http://www.FreeRTOS.org/labs - Where new FreeRTOS products go to incubate.
\r
57 Come and try FreeRTOS+TCP, our new open source TCP/IP stack for FreeRTOS.
\r
59 http://www.OpenRTOS.com - Real Time Engineers ltd. license FreeRTOS to High
\r
60 Integrity Systems ltd. to sell under the OpenRTOS brand. Low cost OpenRTOS
\r
61 licenses offer ticketed support, indemnification and commercial middleware.
\r
63 http://www.SafeRTOS.com - High Integrity Systems also provide a safety
\r
64 engineered and independently SIL3 certified version for use in safety and
\r
65 mission critical applications that require provable dependability.
\r
71 /******************************************************************************
\r
72 See http://www.freertos.org/a00110.html for an explanation of the
\r
73 definitions contained in this file.
\r
74 ******************************************************************************/
\r
76 #ifndef FREERTOS_CONFIG_H
\r
77 #define FREERTOS_CONFIG_H
\r
80 /* Set mainCREATE_SIMPLE_BLINKY_DEMO_ONLY to one to run the simple blinky demo,
\r
81 or 0 to run the more comprehensive test and demo application.
\r
83 The comprehensive demo uses FreeRTOS+CLI to create a simple command line
\r
84 interface through a UART.
\r
86 The blinky demo uses FreeRTOS's tickless idle mode to reduce power consumption.
\r
87 See the notes on the web page below regarding the difference in power saving
\r
88 that can be achieved between using the generic tickless implementation (as used
\r
89 by the blinky demo) and a tickless implementation that is tailored specifically
\r
92 See http://www.FreeRTOS.org/TI_CC3220_SimpleLink_FreeRTOS_Demo.html for
\r
94 #define configCREATE_SIMPLE_TICKLESS_DEMO 0
\r
97 /*-----------------------------------------------------------
\r
98 * Application specific definitions.
\r
100 * These definitions should be adjusted for your particular hardware and
\r
101 * application requirements.
\r
103 * THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE
\r
104 * FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE.
\r
105 * http://www.freertos.org/a00110.html
\r
106 *----------------------------------------------------------*/
\r
108 /* Constants related to the behaviour or the scheduler. */
\r
109 #define configUSE_PORT_OPTIMISED_TASK_SELECTION 1
\r
110 #define configTICK_RATE_HZ ( ( TickType_t ) 1000 )
\r
111 #define configUSE_PREEMPTION 1
\r
112 #define configUSE_TIME_SLICING 1
\r
113 #define configMAX_PRIORITIES ( 5 )
\r
114 #define configIDLE_SHOULD_YIELD 1
\r
115 #define configUSE_16_BIT_TICKS 0 /* Only for 8 and 16-bit hardware. */
\r
117 /* Constants used to specify if only static allocation is to be supported (in
\r
118 which case a heap_n.c file is not required), only dynamic allocation is to be
\r
119 supported, or if both static and dynamic allocation are supported. */
\r
120 #define configSUPPORT_STATIC_ALLOCATION 1
\r
121 #define configSUPPORT_DYNAMIC_ALLOCATION 1
\r
123 /* Constants that describe the hardware and memory usage. */
\r
124 #define configCPU_CLOCK_HZ ( ( unsigned long ) 80000000 )
\r
125 #define configMINIMAL_STACK_SIZE ( ( uint16_t ) 100 )
\r
126 #define configMAX_TASK_NAME_LEN ( 12 )
\r
128 /* Note heap_5.c is used so this only defines the part of the heap that is in
\r
129 the first block of RAM on the LPC device. See the initialisation of the heap
\r
131 #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 50 * 1024 ) )
\r
133 /* Constants that build features in or out. */
\r
134 #define configUSE_MUTEXES 1
\r
135 #define configUSE_TICKLESS_IDLE 1
\r
136 #define configUSE_APPLICATION_TASK_TAG 0
\r
137 #define configUSE_NEWLIB_REENTRANT 0
\r
138 #define configUSE_CO_ROUTINES 0
\r
139 #define configUSE_COUNTING_SEMAPHORES 1
\r
140 #define configUSE_RECURSIVE_MUTEXES 1
\r
141 #define configUSE_QUEUE_SETS 0
\r
142 #define configUSE_TASK_NOTIFICATIONS 1
\r
144 /* Constants that define which hook (callback) functions should be used. */
\r
145 #define configUSE_IDLE_HOOK 1
\r
146 #define configUSE_TICK_HOOK 1
\r
147 #define configUSE_MALLOC_FAILED_HOOK 1
\r
149 /* Constants provided for debugging and optimisation assistance. */
\r
150 #define configCHECK_FOR_STACK_OVERFLOW 2
\r
151 void vMainAssertCalled( const char *pcFileName, uint32_t ulLineNumber );
\r
152 #define configASSERT( x ) if( ( x ) == 0 ) { vMainAssertCalled( __FILE__, __LINE__ ); }
\r
153 #define configQUEUE_REGISTRY_SIZE 0
\r
155 /* Software timer definitions. */
\r
156 #define configUSE_TIMERS 1
\r
157 #define configTIMER_TASK_PRIORITY ( 3 )
\r
158 #define configTIMER_QUEUE_LENGTH 5
\r
159 #define configTIMER_TASK_STACK_DEPTH ( configMINIMAL_STACK_SIZE )
\r
161 /* Set the following definitions to 1 to include the API function, or zero
\r
162 to exclude the API function. NOTE: Setting an INCLUDE_ parameter to 0 is only
\r
163 necessary if the linker does not automatically remove functions that are not
\r
164 referenced anyway. */
\r
165 #define INCLUDE_vTaskPrioritySet 1
\r
166 #define INCLUDE_uxTaskPriorityGet 1
\r
167 #define INCLUDE_vTaskDelete 1
\r
168 #define INCLUDE_vTaskCleanUpResources 0
\r
169 #define INCLUDE_vTaskSuspend 1
\r
170 #define INCLUDE_vTaskDelayUntil 1
\r
171 #define INCLUDE_vTaskDelay 1
\r
172 #define INCLUDE_uxTaskGetStackHighWaterMark 0
\r
173 #define INCLUDE_xTaskGetIdleTaskHandle 0
\r
174 #define INCLUDE_eTaskGetState 1
\r
175 #define INCLUDE_xTaskResumeFromISR 0
\r
176 #define INCLUDE_xTaskGetCurrentTaskHandle 1
\r
177 #define INCLUDE_xTaskGetSchedulerState 0
\r
178 #define INCLUDE_xSemaphoreGetMutexHolder 0
\r
179 #define INCLUDE_xTimerPendFunctionCall 1
\r
181 /* This demo makes use of one or more example stats formatting functions. These
\r
182 format the raw data provided by the uxTaskGetSystemState() function in to human
\r
183 readable ASCII form. See the notes in the implementation of vTaskList() within
\r
184 FreeRTOS/Source/tasks.c for limitations. */
\r
185 #define configUSE_STATS_FORMATTING_FUNCTIONS 1
\r
187 /* Dimensions a buffer that can be used by the FreeRTOS+CLI command
\r
188 interpreter. See the FreeRTOS+CLI documentation for more information:
\r
189 http://www.FreeRTOS.org/FreeRTOS-Plus/FreeRTOS_Plus_CLI/ */
\r
190 #define configCOMMAND_INT_MAX_OUTPUT_SIZE 2048
\r
193 /* Cortex-M3/4 interrupt priority configuration follows...................... */
\r
195 /* Use the system definition, if there is one. */
\r
196 #ifdef __NVIC_PRIO_BITS
\r
197 #define configPRIO_BITS __NVIC_PRIO_BITS
\r
199 #define configPRIO_BITS 3 /* 8 priority levels */
\r
202 /* The lowest interrupt priority that can be used in a call to a "set priority"
\r
204 #define configLIBRARY_LOWEST_INTERRUPT_PRIORITY 0x07
\r
206 /* The highest interrupt priority that can be used by any interrupt service
\r
207 routine that makes calls to interrupt safe FreeRTOS API functions. DO NOT CALL
\r
208 INTERRUPT SAFE FREERTOS API FUNCTIONS FROM ANY INTERRUPT THAT HAS A HIGHER
\r
209 PRIORITY THAN THIS! (higher priorities are lower numeric values. */
\r
210 #define configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY 5
\r
212 /* Interrupt priorities used by the kernel port layer itself. These are generic
\r
213 to all Cortex-M ports, and do not rely on any particular library functions. */
\r
214 #define configKERNEL_INTERRUPT_PRIORITY ( configLIBRARY_LOWEST_INTERRUPT_PRIORITY << (8 - configPRIO_BITS) )
\r
215 /* !!!! configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to zero !!!!
\r
216 See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */
\r
217 #define configMAX_SYSCALL_INTERRUPT_PRIORITY ( configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY << (8 - configPRIO_BITS) )
\r
219 /* The trace facility is turned on to make some functions available for use in
\r
221 #define configUSE_TRACE_FACILITY 1
\r
223 /* Constants related to the generation of run time stats. */
\r
224 #define configGENERATE_RUN_TIME_STATS 0
\r
225 #define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS()
\r
226 #define portGET_RUN_TIME_COUNTER_VALUE() 0
\r
228 #endif /* FREERTOS_CONFIG_H */
\r