]> begriffs open source - cmsis-freertos/blob - Demo/CORTEX_MB9A310_IAR_Keil/FreeRTOSConfig.h
Updated pack to FreeRTOS 10.4.4
[cmsis-freertos] / Demo / CORTEX_MB9A310_IAR_Keil / FreeRTOSConfig.h
1 /*
2  * FreeRTOS V202107.00
3  * Copyright (C) 2020 Amazon.com, Inc. or its affiliates.  All Rights Reserved.
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a copy of
6  * this software and associated documentation files (the "Software"), to deal in
7  * the Software without restriction, including without limitation the rights to
8  * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9  * the Software, and to permit persons to whom the Software is furnished to do so,
10  * subject to the following conditions:
11  *
12  * The above copyright notice and this permission notice shall be included in all
13  * copies or substantial portions of the Software.
14  *
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17  * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21  *
22  * http://www.FreeRTOS.org
23  * http://aws.amazon.com/freertos
24  *
25  * 1 tab == 4 spaces!
26  */
27
28
29 #ifndef FREERTOS_CONFIG_H
30 #define FREERTOS_CONFIG_H
31
32 /*-----------------------------------------------------------
33  * Application specific definitions.
34  *
35  * These definitions should be adjusted for your particular hardware and
36  * application requirements.
37  *
38  * THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE
39  * FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE.
40  *
41  * See http://www.freertos.org/a00110.html
42  *----------------------------------------------------------*/
43
44 /* Use a guard to ensure the following few definitions are'nt included in
45 assembly files that include this header file. */
46 #ifndef __IASMARM__
47         #include <stdint.h>
48         extern uint32_t SystemCoreClock;
49 #endif
50
51 #define configUSE_PREEMPTION                    1
52 #define configUSE_IDLE_HOOK                             1
53 #define configUSE_TICK_HOOK                             1
54 #define configCPU_CLOCK_HZ                              ( SystemCoreClock )
55 #define configTICK_RATE_HZ                              ( ( TickType_t ) 1000 )
56 #define configMAX_PRIORITIES                    ( 5 )
57 #define configMINIMAL_STACK_SIZE                ( ( unsigned short ) 90 )
58 #define configTOTAL_HEAP_SIZE                   ( ( size_t ) ( 30 * 1024 ) )
59 #define configMAX_TASK_NAME_LEN                 ( 10 )
60 #define configUSE_TRACE_FACILITY                1
61 #define configUSE_16_BIT_TICKS                  0
62 #define configIDLE_SHOULD_YIELD                 1
63 #define configUSE_MUTEXES                               1
64 #define configQUEUE_REGISTRY_SIZE               0
65 #define configGENERATE_RUN_TIME_STATS   0
66 #define configCHECK_FOR_STACK_OVERFLOW  2
67 #define configUSE_RECURSIVE_MUTEXES             1
68 #define configUSE_MALLOC_FAILED_HOOK    1
69 #define configUSE_APPLICATION_TASK_TAG  0
70 #define configUSE_COUNTING_SEMAPHORES   1
71
72 /* Co-routine definitions. */
73 #define configUSE_CO_ROUTINES           0
74 #define configMAX_CO_ROUTINE_PRIORITIES ( 2 )
75
76 /* Software timer definitions. */
77 #define configUSE_TIMERS                                1
78 #define configTIMER_TASK_PRIORITY               ( 2 )
79 #define configTIMER_QUEUE_LENGTH                10
80 #define configTIMER_TASK_STACK_DEPTH    ( configMINIMAL_STACK_SIZE * 2 )
81
82 /* Set the following definitions to 1 to include the API function, or zero
83 to exclude the API function. */
84 #define INCLUDE_vTaskPrioritySet                1
85 #define INCLUDE_uxTaskPriorityGet               1
86 #define INCLUDE_vTaskDelete                             1
87 #define INCLUDE_vTaskCleanUpResources   1
88 #define INCLUDE_vTaskSuspend                    1
89 #define INCLUDE_vTaskDelayUntil                 1
90 #define INCLUDE_vTaskDelay                              1
91
92 /* Use the system definition, if there is one */
93 #ifdef __NVIC_PRIO_BITS
94         #define configPRIO_BITS                 __NVIC_PRIO_BITS
95 #else
96         #define configPRIO_BITS                 4        /* 15 priority levels */
97 #endif
98
99 #define configLIBRARY_LOWEST_INTERRUPT_PRIORITY                 0xf
100 #define configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY    5
101
102 /* The lowest priority. */
103 #define configKERNEL_INTERRUPT_PRIORITY         ( configLIBRARY_LOWEST_INTERRUPT_PRIORITY << (8 - configPRIO_BITS) )
104 /* Priority 5, or 160 as only the top three bits are implemented. */
105 /* !!!! configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to zero !!!!
106 See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */
107 #define configMAX_SYSCALL_INTERRUPT_PRIORITY    ( configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY << (8 - configPRIO_BITS) )
108         
109 #define configASSERT( x ) if( ( x ) == 0 ) { taskDISABLE_INTERRUPTS(); for( ;; ); }     
110         
111 #define vPortSVCHandler SVC_Handler
112 #define xPortPendSVHandler PendSV_Handler
113 #define vPortSVCHandler SVC_Handler
114 #define xPortSysTickHandler SysTick_Handler
115
116 /* MAC address configuration. */
117 #define configMAC_ADDR0 0x00
118 #define configMAC_ADDR1 0x12
119 #define configMAC_ADDR2 0x13
120 #define configMAC_ADDR3 0x10
121 #define configMAC_ADDR4 0x15
122 #define configMAC_ADDR5 0x11
123
124 /* IP address configuration. */
125 #define configIP_ADDR0          192
126 #define configIP_ADDR1          168
127 #define configIP_ADDR2          0
128 #define configIP_ADDR3          200
129
130 /* Netmask configuration. */
131 #define configNET_MASK0         255
132 #define configNET_MASK1         255
133 #define configNET_MASK2         255
134 #define configNET_MASK3         0
135
136 #endif /* FREERTOS_CONFIG_H */
137