www.freertos.org
Dependents: Nucleo freertos_test FreeRTOS_test freertos_bluetooth ... more
FreeRTOSConfig.h
00001 /* 00002 FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. 00003 All rights reserved 00004 00005 VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. 00006 00007 *************************************************************************** 00008 * * 00009 * FreeRTOS provides completely free yet professionally developed, * 00010 * robust, strictly quality controlled, supported, and cross * 00011 * platform software that has become a de facto standard. * 00012 * * 00013 * Help yourself get started quickly and support the FreeRTOS * 00014 * project by purchasing a FreeRTOS tutorial book, reference * 00015 * manual, or both from: http://www.FreeRTOS.org/Documentation * 00016 * * 00017 * Thank you! * 00018 * * 00019 *************************************************************************** 00020 00021 This file is part of the FreeRTOS distribution. 00022 00023 FreeRTOS is free software; you can redistribute it and/or modify it under 00024 the terms of the GNU General Public License (version 2) as published by the 00025 Free Software Foundation >>!AND MODIFIED BY!<< the FreeRTOS exception. 00026 00027 >>! NOTE: The modification to the GPL is included to allow you to distribute 00028 >>! a combined work that includes FreeRTOS without being obliged to provide 00029 >>! the source code for proprietary components outside of the FreeRTOS 00030 >>! kernel. 00031 00032 FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY 00033 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00034 FOR A PARTICULAR PURPOSE. Full license text is available from the following 00035 link: http://www.freertos.org/a00114.html 00036 00037 1 tab == 4 spaces! 00038 00039 *************************************************************************** 00040 * * 00041 * Having a problem? Start by reading the FAQ "My application does * 00042 * not run, what could be wrong?" * 00043 * * 00044 * http://www.FreeRTOS.org/FAQHelp.html * 00045 * * 00046 *************************************************************************** 00047 00048 http://www.FreeRTOS.org - Documentation, books, training, latest versions, 00049 license and Real Time Engineers Ltd. contact details. 00050 00051 http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products, 00052 including FreeRTOS+Trace - an indispensable productivity tool, a DOS 00053 compatible FAT file system, and our tiny thread aware UDP/IP stack. 00054 00055 http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High 00056 Integrity Systems to sell under the OpenRTOS brand. Low cost OpenRTOS 00057 licenses offer ticketed support, indemnification and middleware. 00058 00059 http://www.SafeRTOS.com - High Integrity Systems also provide a safety 00060 engineered and independently SIL3 certified version for use in safety and 00061 mission critical applications that require provable dependability. 00062 00063 1 tab == 4 spaces! 00064 */ 00065 00066 #ifndef FREERTOS_CONFIG_H 00067 #define FREERTOS_CONFIG_H 00068 00069 /*----------------------------------------------------------- 00070 * Application specific definitions. 00071 * 00072 * These definitions should be adjusted for your particular hardware and 00073 * application requirements. 00074 * 00075 * THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE 00076 * FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE. 00077 *----------------------------------------------------------*/ 00078 00079 #include <stdint.h> 00080 extern uint32_t SystemCoreClock; 00081 00082 #define configUSE_PREEMPTION 1 00083 #define configUSE_IDLE_HOOK 0 00084 #define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 ) 00085 #define configUSE_TICK_HOOK 0 00086 #define configCPU_CLOCK_HZ ( ( unsigned long ) SystemCoreClock ) 00087 #define configTICK_RATE_HZ ( ( portTickType ) 1000 ) 00088 #define configMINIMAL_STACK_SIZE ( ( unsigned short ) 80 ) 00089 #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 10 * 1024 ) ) 00090 #define configMAX_TASK_NAME_LEN ( 12 ) 00091 #define configUSE_TRACE_FACILITY 1 00092 #define configUSE_16_BIT_TICKS 0 00093 #define configIDLE_SHOULD_YIELD 0 00094 #define configUSE_CO_ROUTINES 0 00095 #define configUSE_MUTEXES 1 00096 00097 #define configMAX_CO_ROUTINE_PRIORITIES ( 2 ) 00098 00099 #define configUSE_COUNTING_SEMAPHORES 0 00100 #define configUSE_ALTERNATIVE_API 0 00101 #define configCHECK_FOR_STACK_OVERFLOW 0 00102 #define configUSE_RECURSIVE_MUTEXES 1 00103 #define configQUEUE_REGISTRY_SIZE 10 00104 #define configGENERATE_RUN_TIME_STATS 0 00105 00106 /* Set the following definitions to 1 to include the API function, or zero 00107 to exclude the API function. */ 00108 00109 #define INCLUDE_vTaskPrioritySet 1 00110 #define INCLUDE_uxTaskPriorityGet 1 00111 #define INCLUDE_vTaskDelete 1 00112 #define INCLUDE_vTaskCleanUpResources 0 00113 #define INCLUDE_vTaskSuspend 1 00114 #define INCLUDE_vTaskDelayUntil 1 00115 #define INCLUDE_vTaskDelay 1 00116 #define INCLUDE_uxTaskGetStackHighWaterMark 1 00117 00118 00119 /* Use the system definition, if there is one */ 00120 #ifdef __NVIC_PRIO_BITS 00121 #define configPRIO_BITS __NVIC_PRIO_BITS 00122 #else 00123 #define configPRIO_BITS 5 /* 32 priority levels */ 00124 #endif 00125 00126 /* The lowest priority. */ 00127 #define configKERNEL_INTERRUPT_PRIORITY ( 31 << (8 - configPRIO_BITS) ) 00128 /* Priority 5, or 160 as only the top three bits are implemented. */ 00129 /* !!!! configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to zero !!!! 00130 See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */ 00131 #define configMAX_SYSCALL_INTERRUPT_PRIORITY ( 5 << (8 - configPRIO_BITS) ) 00132 00133 /* Definitions that map the FreeRTOS port interrupt handlers to their CMSIS 00134 standard names - or at least those used in the unmodified vector table. */ 00135 #define vPortSVCHandler SVC_Handler 00136 #define xPortPendSVHandler PendSV_Handler 00137 #define xPortSysTickHandler SysTick_Handler 00138 00139 00140 #endif /* FREERTOS_CONFIG_H */
Generated on Tue Jul 12 2022 11:36:40 by
![doxygen](doxygen.png)