Webserver+3d print

Dependents:   Nucleo

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers FreeRTOSConfig.h Source File

FreeRTOSConfig.h

00001 /*
00002     FreeRTOS V6.0.1 - Copyright (C) 2009 Real Time Engineers Ltd.
00003 
00004     ***************************************************************************
00005     *                                                                         *
00006     * If you are:                                                             *
00007     *                                                                         *
00008     *    + New to FreeRTOS,                                                   *
00009     *    + Wanting to learn FreeRTOS or multitasking in general quickly       *
00010     *    + Looking for basic training,                                        *
00011     *    + Wanting to improve your FreeRTOS skills and productivity           *
00012     *                                                                         *
00013     * then take a look at the FreeRTOS eBook                                  *
00014     *                                                                         *
00015     *        "Using the FreeRTOS Real Time Kernel - a Practical Guide"        *
00016     *                  http://www.FreeRTOS.org/Documentation                  *
00017     *                                                                         *
00018     * A pdf reference manual is also available.  Both are usually delivered   *
00019     * to your inbox within 20 minutes to two hours when purchased between 8am *
00020     * and 8pm GMT (although please allow up to 24 hours in case of            *
00021     * exceptional circumstances).  Thank you for your support!                *
00022     *                                                                         *
00023     ***************************************************************************
00024 
00025     This file is part of the FreeRTOS distribution.
00026 
00027     FreeRTOS is free software; you can redistribute it and/or modify it under
00028     the terms of the GNU General Public License (version 2) as published by the
00029     Free Software Foundation AND MODIFIED BY the FreeRTOS exception.
00030     ***NOTE*** The exception to the GPL is included to allow you to distribute
00031     a combined work that includes FreeRTOS without being obliged to provide the
00032     source code for proprietary components outside of the FreeRTOS kernel.
00033     FreeRTOS is distributed in the hope that it will be useful, but WITHOUT
00034     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00035     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
00036     more details. You should have received a copy of the GNU General Public
00037     License and the FreeRTOS license exception along with FreeRTOS; if not it
00038     can be viewed here: http://www.freertos.org/a00114.html and also obtained
00039     by writing to Richard Barry, contact details for whom are available on the
00040     FreeRTOS WEB site.
00041 
00042     1 tab == 4 spaces!
00043 
00044     http://www.FreeRTOS.org - Documentation, latest information, license and
00045     contact details.
00046 
00047     http://www.SafeRTOS.com - A version that is certified for use in safety
00048     critical systems.
00049 
00050     http://www.OpenRTOS.com - Commercial support, development, porting,
00051     licensing and training services.
00052 */
00053 
00054 #ifndef FREERTOS_CONFIG_H
00055 #define FREERTOS_CONFIG_H
00056 
00057 //Keil MDK-ARM, IAR EWARM or GCC compiler?
00058 #if (defined(__CC_ARM) || defined(__ICCARM__) || defined(__GNUC__))
00059 
00060 #include <stdint.h>
00061 extern uint32_t SystemCoreClock;
00062 
00063 #endif
00064 
00065 /*-----------------------------------------------------------
00066  * Application specific definitions.
00067  *
00068  * These definitions should be adjusted for your particular hardware and
00069  * application requirements.
00070  *
00071  * THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE
00072  * FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE.
00073  *
00074  * See http://www.freertos.org/a00110.html.
00075  *----------------------------------------------------------*/
00076 
00077 #define configUSE_PREEMPTION        1
00078 #define configUSE_IDLE_HOOK         0
00079 #define configUSE_TICK_HOOK         0
00080 #define configCPU_CLOCK_HZ          ( SystemCoreClock )
00081 #define configTICK_RATE_HZ          ( ( portTickType ) 1000 )
00082 #define configMAX_PRIORITIES        ( 5 )
00083 #define configMINIMAL_STACK_SIZE    ( ( unsigned short ) 400 )
00084 #define configMAX_TASK_NAME_LEN     ( 16 )
00085 #define configUSE_16_BIT_TICKS      0
00086 #define configIDLE_SHOULD_YIELD     1
00087 #define configUSE_APPLICATION_TASK_TAG      1
00088 #define configUSE_MUTEXES               1
00089 #define configUSE_COUNTING_SEMAPHORES 1
00090 
00091 #define configCHECK_FOR_STACK_OVERFLOW  0
00092 #define configGENERATE_RUN_TIME_STATS               0
00093 //#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS      init_us_timer
00094 //#define portGET_RUN_TIME_COUNTER_VALUE              get_us_time
00095 
00096 /* Co-routine definitions. */
00097 #define configUSE_CO_ROUTINES       0
00098 #define configMAX_CO_ROUTINE_PRIORITIES ( 2 )
00099 
00100 /* Set the following definitions to 1 to include the API function, or zero
00101 to exclude the API function. */
00102 
00103 #define INCLUDE_vTaskPrioritySet        1
00104 #define INCLUDE_uxTaskPriorityGet       1
00105 #define INCLUDE_vTaskDelete             1
00106 #define INCLUDE_vTaskCleanUpResources   1
00107 #define INCLUDE_vTaskSuspend            1
00108 #define INCLUDE_vTaskDelayUntil         1
00109 #define INCLUDE_vTaskDelay              1
00110 #define INCLUDE_uxTaskGetStackHighWaterMark     1
00111 #define INCLUDE_xTaskGetIdleTaskHandle  1
00112 #define INCLUDE_xTaskGetSchedulerState 1
00113 
00114 /* This is the raw value as per the Cortex-M3 NVIC.  Values can be 255
00115 (lowest) to 0 (1?) (highest). */
00116 #define configKERNEL_INTERRUPT_PRIORITY         255
00117 #define configMAX_SYSCALL_INTERRUPT_PRIORITY    191 /* equivalent to 0xb0, or priority 11. */
00118 
00119 /* This is the value being used as per the ST library which permits 16
00120 priority values, 0 to 15.  This must correspond to the
00121 configKERNEL_INTERRUPT_PRIORITY setting.  Here 15 corresponds to the lowest
00122 NVIC value of 255. */
00123 #define configLIBRARY_KERNEL_INTERRUPT_PRIORITY 15
00124 
00125 /* Redefine functions names to match the standard peripheral library */
00126 //#define xPortSysTickHandler     SysTick_Handler
00127 #define xPortPendSVHandler      PendSV_Handler
00128 #define vPortSVCHandler         SVC_Handler
00129 
00130 #endif /* FREERTOS_CONFIG_H */
00131 
00132