Webserver+3d print
ftp_client_demo/src/FreeRTOSConfig.h@0:8918a71cdbe9, 2017-02-04 (annotated)
- Committer:
- Sergunb
- Date:
- Sat Feb 04 18:15:49 2017 +0000
- Revision:
- 0:8918a71cdbe9
nothing else
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Sergunb | 0:8918a71cdbe9 | 1 | /* |
Sergunb | 0:8918a71cdbe9 | 2 | FreeRTOS V6.0.1 - Copyright (C) 2009 Real Time Engineers Ltd. |
Sergunb | 0:8918a71cdbe9 | 3 | |
Sergunb | 0:8918a71cdbe9 | 4 | *************************************************************************** |
Sergunb | 0:8918a71cdbe9 | 5 | * * |
Sergunb | 0:8918a71cdbe9 | 6 | * If you are: * |
Sergunb | 0:8918a71cdbe9 | 7 | * * |
Sergunb | 0:8918a71cdbe9 | 8 | * + New to FreeRTOS, * |
Sergunb | 0:8918a71cdbe9 | 9 | * + Wanting to learn FreeRTOS or multitasking in general quickly * |
Sergunb | 0:8918a71cdbe9 | 10 | * + Looking for basic training, * |
Sergunb | 0:8918a71cdbe9 | 11 | * + Wanting to improve your FreeRTOS skills and productivity * |
Sergunb | 0:8918a71cdbe9 | 12 | * * |
Sergunb | 0:8918a71cdbe9 | 13 | * then take a look at the FreeRTOS eBook * |
Sergunb | 0:8918a71cdbe9 | 14 | * * |
Sergunb | 0:8918a71cdbe9 | 15 | * "Using the FreeRTOS Real Time Kernel - a Practical Guide" * |
Sergunb | 0:8918a71cdbe9 | 16 | * http://www.FreeRTOS.org/Documentation * |
Sergunb | 0:8918a71cdbe9 | 17 | * * |
Sergunb | 0:8918a71cdbe9 | 18 | * A pdf reference manual is also available. Both are usually delivered * |
Sergunb | 0:8918a71cdbe9 | 19 | * to your inbox within 20 minutes to two hours when purchased between 8am * |
Sergunb | 0:8918a71cdbe9 | 20 | * and 8pm GMT (although please allow up to 24 hours in case of * |
Sergunb | 0:8918a71cdbe9 | 21 | * exceptional circumstances). Thank you for your support! * |
Sergunb | 0:8918a71cdbe9 | 22 | * * |
Sergunb | 0:8918a71cdbe9 | 23 | *************************************************************************** |
Sergunb | 0:8918a71cdbe9 | 24 | |
Sergunb | 0:8918a71cdbe9 | 25 | This file is part of the FreeRTOS distribution. |
Sergunb | 0:8918a71cdbe9 | 26 | |
Sergunb | 0:8918a71cdbe9 | 27 | FreeRTOS is free software; you can redistribute it and/or modify it under |
Sergunb | 0:8918a71cdbe9 | 28 | the terms of the GNU General Public License (version 2) as published by the |
Sergunb | 0:8918a71cdbe9 | 29 | Free Software Foundation AND MODIFIED BY the FreeRTOS exception. |
Sergunb | 0:8918a71cdbe9 | 30 | ***NOTE*** The exception to the GPL is included to allow you to distribute |
Sergunb | 0:8918a71cdbe9 | 31 | a combined work that includes FreeRTOS without being obliged to provide the |
Sergunb | 0:8918a71cdbe9 | 32 | source code for proprietary components outside of the FreeRTOS kernel. |
Sergunb | 0:8918a71cdbe9 | 33 | FreeRTOS is distributed in the hope that it will be useful, but WITHOUT |
Sergunb | 0:8918a71cdbe9 | 34 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
Sergunb | 0:8918a71cdbe9 | 35 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
Sergunb | 0:8918a71cdbe9 | 36 | more details. You should have received a copy of the GNU General Public |
Sergunb | 0:8918a71cdbe9 | 37 | License and the FreeRTOS license exception along with FreeRTOS; if not it |
Sergunb | 0:8918a71cdbe9 | 38 | can be viewed here: http://www.freertos.org/a00114.html and also obtained |
Sergunb | 0:8918a71cdbe9 | 39 | by writing to Richard Barry, contact details for whom are available on the |
Sergunb | 0:8918a71cdbe9 | 40 | FreeRTOS WEB site. |
Sergunb | 0:8918a71cdbe9 | 41 | |
Sergunb | 0:8918a71cdbe9 | 42 | 1 tab == 4 spaces! |
Sergunb | 0:8918a71cdbe9 | 43 | |
Sergunb | 0:8918a71cdbe9 | 44 | http://www.FreeRTOS.org - Documentation, latest information, license and |
Sergunb | 0:8918a71cdbe9 | 45 | contact details. |
Sergunb | 0:8918a71cdbe9 | 46 | |
Sergunb | 0:8918a71cdbe9 | 47 | http://www.SafeRTOS.com - A version that is certified for use in safety |
Sergunb | 0:8918a71cdbe9 | 48 | critical systems. |
Sergunb | 0:8918a71cdbe9 | 49 | |
Sergunb | 0:8918a71cdbe9 | 50 | http://www.OpenRTOS.com - Commercial support, development, porting, |
Sergunb | 0:8918a71cdbe9 | 51 | licensing and training services. |
Sergunb | 0:8918a71cdbe9 | 52 | */ |
Sergunb | 0:8918a71cdbe9 | 53 | |
Sergunb | 0:8918a71cdbe9 | 54 | #ifndef FREERTOS_CONFIG_H |
Sergunb | 0:8918a71cdbe9 | 55 | #define FREERTOS_CONFIG_H |
Sergunb | 0:8918a71cdbe9 | 56 | |
Sergunb | 0:8918a71cdbe9 | 57 | //Keil MDK-ARM, IAR EWARM or GCC compiler? |
Sergunb | 0:8918a71cdbe9 | 58 | #if (defined(__CC_ARM) || defined(__ICCARM__) || defined(__GNUC__)) |
Sergunb | 0:8918a71cdbe9 | 59 | |
Sergunb | 0:8918a71cdbe9 | 60 | #include <stdint.h> |
Sergunb | 0:8918a71cdbe9 | 61 | extern uint32_t SystemCoreClock; |
Sergunb | 0:8918a71cdbe9 | 62 | |
Sergunb | 0:8918a71cdbe9 | 63 | #endif |
Sergunb | 0:8918a71cdbe9 | 64 | |
Sergunb | 0:8918a71cdbe9 | 65 | /*----------------------------------------------------------- |
Sergunb | 0:8918a71cdbe9 | 66 | * Application specific definitions. |
Sergunb | 0:8918a71cdbe9 | 67 | * |
Sergunb | 0:8918a71cdbe9 | 68 | * These definitions should be adjusted for your particular hardware and |
Sergunb | 0:8918a71cdbe9 | 69 | * application requirements. |
Sergunb | 0:8918a71cdbe9 | 70 | * |
Sergunb | 0:8918a71cdbe9 | 71 | * THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE |
Sergunb | 0:8918a71cdbe9 | 72 | * FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE. |
Sergunb | 0:8918a71cdbe9 | 73 | * |
Sergunb | 0:8918a71cdbe9 | 74 | * See http://www.freertos.org/a00110.html. |
Sergunb | 0:8918a71cdbe9 | 75 | *----------------------------------------------------------*/ |
Sergunb | 0:8918a71cdbe9 | 76 | |
Sergunb | 0:8918a71cdbe9 | 77 | #define configUSE_PREEMPTION 1 |
Sergunb | 0:8918a71cdbe9 | 78 | #define configUSE_IDLE_HOOK 0 |
Sergunb | 0:8918a71cdbe9 | 79 | #define configUSE_TICK_HOOK 0 |
Sergunb | 0:8918a71cdbe9 | 80 | #define configCPU_CLOCK_HZ ( SystemCoreClock ) |
Sergunb | 0:8918a71cdbe9 | 81 | #define configTICK_RATE_HZ ( ( portTickType ) 1000 ) |
Sergunb | 0:8918a71cdbe9 | 82 | #define configMAX_PRIORITIES ( 5 ) |
Sergunb | 0:8918a71cdbe9 | 83 | #define configMINIMAL_STACK_SIZE ( ( unsigned short ) 400 ) |
Sergunb | 0:8918a71cdbe9 | 84 | #define configMAX_TASK_NAME_LEN ( 16 ) |
Sergunb | 0:8918a71cdbe9 | 85 | #define configUSE_16_BIT_TICKS 0 |
Sergunb | 0:8918a71cdbe9 | 86 | #define configIDLE_SHOULD_YIELD 1 |
Sergunb | 0:8918a71cdbe9 | 87 | #define configUSE_APPLICATION_TASK_TAG 1 |
Sergunb | 0:8918a71cdbe9 | 88 | #define configUSE_MUTEXES 1 |
Sergunb | 0:8918a71cdbe9 | 89 | #define configUSE_COUNTING_SEMAPHORES 1 |
Sergunb | 0:8918a71cdbe9 | 90 | |
Sergunb | 0:8918a71cdbe9 | 91 | #define configCHECK_FOR_STACK_OVERFLOW 0 |
Sergunb | 0:8918a71cdbe9 | 92 | #define configGENERATE_RUN_TIME_STATS 0 |
Sergunb | 0:8918a71cdbe9 | 93 | //#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS init_us_timer |
Sergunb | 0:8918a71cdbe9 | 94 | //#define portGET_RUN_TIME_COUNTER_VALUE get_us_time |
Sergunb | 0:8918a71cdbe9 | 95 | |
Sergunb | 0:8918a71cdbe9 | 96 | /* Co-routine definitions. */ |
Sergunb | 0:8918a71cdbe9 | 97 | #define configUSE_CO_ROUTINES 0 |
Sergunb | 0:8918a71cdbe9 | 98 | #define configMAX_CO_ROUTINE_PRIORITIES ( 2 ) |
Sergunb | 0:8918a71cdbe9 | 99 | |
Sergunb | 0:8918a71cdbe9 | 100 | /* Set the following definitions to 1 to include the API function, or zero |
Sergunb | 0:8918a71cdbe9 | 101 | to exclude the API function. */ |
Sergunb | 0:8918a71cdbe9 | 102 | |
Sergunb | 0:8918a71cdbe9 | 103 | #define INCLUDE_vTaskPrioritySet 1 |
Sergunb | 0:8918a71cdbe9 | 104 | #define INCLUDE_uxTaskPriorityGet 1 |
Sergunb | 0:8918a71cdbe9 | 105 | #define INCLUDE_vTaskDelete 1 |
Sergunb | 0:8918a71cdbe9 | 106 | #define INCLUDE_vTaskCleanUpResources 1 |
Sergunb | 0:8918a71cdbe9 | 107 | #define INCLUDE_vTaskSuspend 1 |
Sergunb | 0:8918a71cdbe9 | 108 | #define INCLUDE_vTaskDelayUntil 1 |
Sergunb | 0:8918a71cdbe9 | 109 | #define INCLUDE_vTaskDelay 1 |
Sergunb | 0:8918a71cdbe9 | 110 | #define INCLUDE_uxTaskGetStackHighWaterMark 1 |
Sergunb | 0:8918a71cdbe9 | 111 | #define INCLUDE_xTaskGetIdleTaskHandle 1 |
Sergunb | 0:8918a71cdbe9 | 112 | #define INCLUDE_xTaskGetSchedulerState 1 |
Sergunb | 0:8918a71cdbe9 | 113 | |
Sergunb | 0:8918a71cdbe9 | 114 | /* This is the raw value as per the Cortex-M3 NVIC. Values can be 255 |
Sergunb | 0:8918a71cdbe9 | 115 | (lowest) to 0 (1?) (highest). */ |
Sergunb | 0:8918a71cdbe9 | 116 | #define configKERNEL_INTERRUPT_PRIORITY 255 |
Sergunb | 0:8918a71cdbe9 | 117 | #define configMAX_SYSCALL_INTERRUPT_PRIORITY 191 /* equivalent to 0xb0, or priority 11. */ |
Sergunb | 0:8918a71cdbe9 | 118 | |
Sergunb | 0:8918a71cdbe9 | 119 | /* This is the value being used as per the ST library which permits 16 |
Sergunb | 0:8918a71cdbe9 | 120 | priority values, 0 to 15. This must correspond to the |
Sergunb | 0:8918a71cdbe9 | 121 | configKERNEL_INTERRUPT_PRIORITY setting. Here 15 corresponds to the lowest |
Sergunb | 0:8918a71cdbe9 | 122 | NVIC value of 255. */ |
Sergunb | 0:8918a71cdbe9 | 123 | #define configLIBRARY_KERNEL_INTERRUPT_PRIORITY 15 |
Sergunb | 0:8918a71cdbe9 | 124 | |
Sergunb | 0:8918a71cdbe9 | 125 | /* Redefine functions names to match the standard peripheral library */ |
Sergunb | 0:8918a71cdbe9 | 126 | //#define xPortSysTickHandler SysTick_Handler |
Sergunb | 0:8918a71cdbe9 | 127 | #define xPortPendSVHandler PendSV_Handler |
Sergunb | 0:8918a71cdbe9 | 128 | #define vPortSVCHandler SVC_Handler |
Sergunb | 0:8918a71cdbe9 | 129 | |
Sergunb | 0:8918a71cdbe9 | 130 | #endif /* FREERTOS_CONFIG_H */ |
Sergunb | 0:8918a71cdbe9 | 131 | |
Sergunb | 0:8918a71cdbe9 | 132 |